フィルターのクリア

I'm trying to plot these points, please help?

4 ビュー (過去 30 日間)
Daniel Batts
Daniel Batts 2019 年 3 月 20 日
コメント済み: Kevin Phung 2019 年 3 月 20 日
x(10-110) increments of 1
y=(W*L)*(sqrt((h^2)+(x^2)))/(h*x) (for every x value between 10-110)
W=500
L=120
h=50
Everytime I tried plotting x and y not all the y values from the formula would show on the graph, along with there being no line to show the change of Y/X.

採用された回答

Kevin Phung
Kevin Phung 2019 年 3 月 20 日
編集済み: Kevin Phung 2019 年 3 月 20 日
x=10:1:110;
W=500;
L=120;
h=50;
y=(W*L)*(sqrt((h^2)+(x.^2)))./(h.*x) ;
figure
plot(x,y)
things to note:
  • define the variables BEFORE evaluating them in an equation.
  • dot operator for element wise multiplication / division
  2 件のコメント
Daniel Batts
Daniel Batts 2019 年 3 月 20 日
Thank you, really appericate it.
Kevin Phung
Kevin Phung 2019 年 3 月 20 日
happy to help!

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

その他の回答 (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