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