Inline to Anonymous Function
Ältere Kommentare anzeigen
How can I use anonymous functions to make this plot?
clear all;clc;
x =inline('5*sin(2*pi*1*t).*exp(-.4*t)','t');
t = (-10:.01:10);
plot(t,x(t));
xlabel ('t (seconds)');
ylabel ('Ámplitude');
Akzeptierte Antwort
Weitere Antworten (1)
Fangjun Jiang
am 3 Sep. 2020
x =@(t) 5*sin(2*pi*1*t).*exp(-.4*t)'
1 Kommentar
Russell Buttriss
am 3 Sep. 2020
Kategorien
Mehr zu Function Creation finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!