Change the value of independent variables to solve the dependent variable equation
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Deepro Bardhan
il 29 Lug 2021
Commentato: Deepro Bardhan
il 31 Lug 2021
x=0:0.5:4*pi;
y=sin(x)+cos(x);
display(y);
In the above example the y(x) is given . Now i want to use y(Ax) in other equations (where A is some constant or variable) without hampering the original x values.
Please tell me how to do it.
0 Commenti
Risposta accettata
Più risposte (1)
KSSV
il 29 Lug 2021
x=0:0.5:4*pi;
y=sin(x)+cos(x);
xi = x(2)*rand ;
yi = interp1(x,y,xi) ;
plot(x,y,'r',xi,yi,'*b')
Vedere anche
Categorie
Scopri di più su Multirate Signal Processing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!