Help regarding plotting of graphs

1 回表示 (過去 30 日間)
Amy Topaz
Amy Topaz 2022 年 3 月 8 日
回答済み: Star Strider 2022 年 3 月 8 日
I need to plot points from 10^1 to 10^99 with a scale of 1000.
I am new to matlab. So, I know that we plot using linspace. How to do this?
%Like below?
y = linspace(10^/1, 10^99, 1000);

採用された回答

Star Strider
Star Strider 2022 年 3 月 8 日
With those ranges and magnitudes, the logspace funciton would be the better option —
t = logspace(1, 99, 1000);
y = exp(-1E-49*t).*sin(2*pi*t*0.001/numel(t));
figure
plot(t,y)
grid
figure
semilogx(t,y)
grid
.

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by