how to plot a single axis graph
显示 更早的评论
y =100*(0.02+x)^0.2
回答(1 个)
Walter Roberson
2020-4-27
1 个投票
Vectorize your code by using .^ instead of ^
You can either define an anonymous function for the calculation, and use fplot() with that, OR you can define x as a list of particular values, and calculate y from there, and plot(x,y)
类别
在 帮助中心 和 File Exchange 中查找有关 2-D and 3-D Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!