Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Help with plotting a function

1 回表示 (過去 30 日間)
Brianna Selles
Brianna Selles 2019 年 9 月 1 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I need to plot the function y = √(sin(x^2)) over the domain [2.75, 3] but when i try entering the code it does not work for me. It tells me "Not enough input arguments". I've tried almost everything to do this problem. Please help. Here is what I have:
x=[2.75, 3]
y=sqrt(sin*(x^2))
plot(x,y)
title = ('This is all the things')
xlabel=('This is the bottom')
ylabel=('This is the side')
  1 件のコメント
Brianna Selles
Brianna Selles 2019 年 9 月 1 日
I used the code but now the table, x and y labels are not populating. Help?

回答 (1 件)

madhan ravi
madhan ravi 2019 年 9 月 1 日
編集済み: madhan ravi 2019 年 9 月 1 日
x=linspace(2.75, 3,1000)
y=sqrt(sin(x.^2)) % have a look here
plot(x,y)
title('This is all the things')
xlabel('This is the bottom')
ylabel('This is the side')
doc linspace
  8 件のコメント
madhan ravi
madhan ravi 2019 年 9 月 1 日
Thank you sir Walter :)
Brianna Selles
Brianna Selles 2019 年 9 月 1 日
Thanks guys!

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by