Plot function y=(sin(x))/x for pi/100<=x<=10pi using increments of pi/100

76 ビュー (過去 30 日間)
How do we write in this on MATLAB?
  1 件のコメント
Muhamad Khaleesh Mirza
Muhamad Khaleesh Mirza 2022 年 9 月 8 日
How to Plot the function y=10 sin (π t) between -π<x< π

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

採用された回答

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021 年 3 月 27 日
編集済み: Sulaymon Eshkabilov 2021 年 3 月 27 日
% Start rightaway by defining the variable x and compute it
x = pi/100:pi/100:10*pi;
y = sin(x)./x;
% plot
plot(x, y) % You may need to adjust plotted data line type, color, marker type, etc.

その他の回答 (1 件)

Jan
Jan 2021 年 3 月 27 日
編集済み: Jan 2021 年 3 月 28 日
"pi/100<=x<=10pi using increments of pi/100"
x = pi/100:pi/100:10*pi;
The rest is trivial. Please try it. In case of problems post your code and an explanation of the errors.
If you want to divide one vector by another one elementwise, use ./ instead of /
Did ypou read Matlab's Onramp already?
  3 件のコメント
Alexander Ashari
Alexander Ashari 2021 年 3 月 27 日
is it ./ or .\ ?
Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021 年 3 月 27 日
./ % Elementwise

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

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by