Math function and plotting

Hi,
I'm trying to plot that function y. I have matrix 1x11 x, then I think I should have 1x11 y. But I don't know why I only have one value of y. Please tell me why I'm wrong. Thank you.

Respuestas (1)

James Tursa
James Tursa el 5 de Mzo. de 2020

1 voto

You need to change that matrix divide operator / to an element-wise divide operator ./ with the dot.

La pregunta está cerrada.

Preguntada:

el 5 de Mzo. de 2020

Cerrada:

el 20 de Ag. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by