Graphing the sine graph

4 ビュー (過去 30 日間)
Dakalo
Dakalo 2024 年 2 月 29 日
コメント済み: Les Beckham 2024 年 2 月 29 日
Hey Guys, I am currently learning how to use Matlab and I have a problem that I am struggling with. I am struggling to graph the function y = sin^2(t) on the interval t ∈ [0,2π]. Can you please help me this?
  5 件のコメント
Dakalo
Dakalo 2024 年 2 月 29 日
@Sam Chak Okay thank you. I will make use of it.
Les Beckham
Les Beckham 2024 年 2 月 29 日
If you are just getting started with Matlab, I would highly recommend that you take a couple of hours to go through the free online tutorial: Matlab Onramp

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

採用された回答

Alexander
Alexander 2024 年 2 月 29 日
t = linspace(0,2*pi,1000);
y = sin(t).^2;
plot(t,y);
  5 件のコメント
Alexander
Alexander 2024 年 2 月 29 日
Cheers
Sam Chak
Sam Chak 2024 年 2 月 29 日
@Dakalo, Can you enter the code (click this icon ) and run it here (click this icon )?
A grey field will appear so that you can type out the plotting code. You should also learn about labeling and display trick for repeating decimals such as .

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInstall Products についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by