Created
September 9, 2022 11:36
-
-
Save Gedankenn/facb98779148de147695a06c9dbf5242 to your computer and use it in GitHub Desktop.
create reference functions for control systems
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def cria_func(x,x2,A1,A2,intervalo): | |
passo = ((x-x2)) | |
a = (A1-A2)/passo | |
b = A2-a*x2 | |
vet = [] | |
for k in np.arange(x,x2,intervalo): | |
vet.append(a*(k)+b) | |
return vet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment