Can someone help me with the code to plot this
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
Can someone tell me how to plot this function on matlab. Every time I input the function and try plotting, the graph does not look right.

2 件のコメント
John D'Errico
2017 年 7 月 6 日
Show what you tried. Otherwise, you are just asking us to do your homework for you.
Ziv Melamed
2017 年 7 月 6 日
編集済み: Walter Roberson
2017 年 7 月 6 日
回答 (1 件)
Walter Roberson
2017 年 7 月 6 日
x = linspace(0,1);
4 件のコメント
Ziv Melamed
2017 年 7 月 6 日
Walter Roberson
2017 年 7 月 6 日
You missed a .^2 inside the exp()
Les Beckham
2017 年 7 月 7 日
You should check your parentheses also. As written, you are taking the square root of the entire expression instead of just the sin^2(x) portion.
Walter Roberson
2017 年 7 月 7 日
Good catch, Les.
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!