Inputs must be a scalar and a square matrix

1 vue (au cours des 30 derniers jours)
titasari rahmawati
titasari rahmawati le 9 Mai 2019
function y=fungsi2(x)
y=exp(1)^(-2*x)*(sin(3*x));
end
Error:
Optimization running.
Error running optimization.
Inputs must be a scalar and a square matrix.
Please help me friends...
  5 commentaires
Walter Roberson
Walter Roberson le 9 Mai 2019
I am going to guess that you need
y = exp(-2*x(1)) .* sin(3*x(2));
titasari rahmawati
titasari rahmawati le 9 Mai 2019
thats work.
Thanks a lot friend...

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by