plot not displaying figure

1 ビュー (過去 30 日間)
Opariuc Andrei
Opariuc Andrei 2021 年 1 月 18 日
コメント済み: Opariuc Andrei 2021 年 1 月 19 日
how can i plot func between the interval below , i don't have an image of the function anymore but the exact way the function was given was sin(3*x^2) , i'm not receiving any errors just a blank figure
x=-23:.1:23;
func=sin(3*x.^2);
plot(x,func);grid on;axis tight;
  1 件のコメント
Bob Thompson
Bob Thompson 2021 年 1 月 18 日
The code you posted worked fine for me. Is there some additional code you have with this? Perhaps the issues lies there.

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

採用された回答

madhan ravi
madhan ravi 2021 年 1 月 18 日
shg % at the end perhaps?
  5 件のコメント
Opariuc Andrei
Opariuc Andrei 2021 年 1 月 19 日
ok so i moved the subplot 2 lines up and put it before the plot and got it to work
x=-23:.1:23;
func=sin(3*x.^2);
subplot(2,2,1);
plot(x,func);grid on;axis tight;
title('func=sin(3*x^2)');

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

その他の回答 (0 件)

タグ

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by