Info
此问题已关闭。 请重新打开它进行编辑或回答。
Help with plotting a function
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
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
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
