plotting a function and values from a table

8 ビュー (過去 30 日間)
Freja
Freja 2023 年 3 月 10 日
回答済み: Adam Danz 2023 年 3 月 10 日
Im not really sure where to go from what I've done so far , but how do I plot the actual line's equation in since I've only used the data from the table so far?
  1 件のコメント
Dyuman Joshi
Dyuman Joshi 2023 年 3 月 10 日
編集済み: Dyuman Joshi 2023 年 3 月 10 日
You have done the second part of the question correctly, though you need to add labels and the title.
For the first part, define x (hint - colon, : ), then define y as per the formula and plot x vs y.

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

回答 (1 件)

Adam Danz
Adam Danz 2023 年 3 月 10 日
> how do I plot the actual line's equation?
The assignment is to plot the line at intervals of 0.001pi between 0 and 0.2pi, not to plot the line's equation. The first step is to compute t(s) at the specified intervals and then to compute y for each t(s).
Then you can add your existing code to add the overlay.

カテゴリ

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