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
Wayne King 2012 年 2 月 10 日

0 投票

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
Shahmeer Baweja 2021 年 12 月 5 日
Powers of ten. Now, can we know the code?

サインインしてコメントする。

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

タグ

質問済み:

Jin
2012 年 2 月 9 日

コメント済み:

2021 年 12 月 5 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by