Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Help with plotting a function

1 visualización (últimos 30 días)
Brianna Selles
Brianna Selles el 1 de Sept. de 2019
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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 comentario
Brianna Selles
Brianna Selles el 1 de Sept. de 2019
I used the code but now the table, x and y labels are not populating. Help?

Respuestas (1)

madhan ravi
madhan ravi el 1 de Sept. de 2019
Editada: madhan ravi el 1 de Sept. de 2019
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 comentarios
madhan ravi
madhan ravi el 1 de Sept. de 2019
Thank you sir Walter :)
Brianna Selles
Brianna Selles el 1 de Sept. de 2019
Thanks guys!

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by