Matlab won't plot my function
2 views (last 30 days)
Show older comments
Rachel Berger
on 6 Dec 2015
Commented: Rachel Berger
on 6 Dec 2015
Hi there, I'm trying to plot this function in matlab, but the plot shows up blank. The workspace says y=1.524 which confuses me. Any ideas?
t=0:0.1:1;
y=(2*t+1)/(t.^2+1);
plot(t,y)
0 Comments
Accepted Answer
Walter Roberson
on 6 Dec 2015
Edited: Walter Roberson
on 6 Dec 2015
t=0:0.1:1;
y=(2*t+1) ./ (t.^2+1);
plot(t,y)
More Answers (0)
See Also
Categories
Find more on Interactive Control and Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!