exponential function remove the error of division

1 visualización (últimos 30 días)
abdul rehman
abdul rehman el 6 de Mayo de 2021
Comentada: KSSV el 6 de Mayo de 2021
help me to remove this error
X1=30;
Y1=20;
X = 0:150;
Y = Y1*exp(30/(X.^0.5));
plot(X,Y)
Error using /
Matrix dimensions must agree.

Respuestas (1)

KSSV
KSSV el 6 de Mayo de 2021
X1=30;
Y1=20;
X = 0:150;
Y = Y1*exp(30./(X.^0.5));
plot(X,Y)
Use element by element division.... ./
  2 comentarios
abdul rehman
abdul rehman el 6 de Mayo de 2021
thank you so much
KSSV
KSSV el 6 de Mayo de 2021
Thanks is accepting/ voting the answer. :)

Iniciar sesión para comentar.

Categorías

Más información sobre Mathematics en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by