HOW TO PLOT A GRAPH WITH A FUNCTION AND A CONSTANT

19 ビュー (過去 30 日間)
SAM
SAM 2022 年 5 月 31 日
コメント済み: Rik 2022 年 6 月 3 日
Can anybody please help me draw this graph using matlab to look like the figure shown bellow.
Dw<1.1 THEN Hu=cos(Dw)
Dw>1.1 Hu=.45
  1 件のコメント
Rik
Rik 2022 年 6 月 3 日
I recovered the removed content from the Google cache (something which anyone can do). Editing away your question is very rude. Someone spent time reading your question, understanding your issue, figuring out the solution, and writing an answer. Now you repay that kindness by ensuring that the next person with a similar question can't benefit from this answer.
An archive of this page will be available on the Wayback Machine

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

回答 (1 件)

Star Strider
Star Strider 2022 年 5 月 31 日
I believe the 0.45 value should actually be 0.35
syms t
Dw = 1.1;
Hu1 = cos(Dw*t)
Hu1 = 
Hu2 = 0.35;
figure
fplot(Hu1,[0 1.1])
hold on
fplot(Hu2, [1.1 2])
hold off
grid
ylim([0 1])
There are also other ways to do this, perhaps using the piecewise function.
.

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by