how to plot x axis equal spaced ?
显示 更早的评论
given x=[0.1,1,10,100], the corresponding y=[1,2,3,4,5] how to make the x-y plot x axis equal spaced? Thanks
回答(1 个)
Wayne King
2012-2-10
Since this sounds very much like a homework problem, I don't want to simply show the code, but look at your x-vector
x = [0.1 1 10 100];
what do all those numbers have in common? What do you have to raise 10 to get the first element, the second, etc.
1 个评论
Shahmeer Baweja
2021-12-5
Powers of ten. Now, can we know the code?
类别
在 帮助中心 和 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!