Unexpected Matlab Expression ?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Natalie Brehaut
le 11 Sep 2017
Commenté : Jose Marques
le 11 Sep 2017
I am new to coding and am unsure why my code does not work it says "Unexpected MATLAB expression" for the 3 in my code.
This is my code E(x)= [-1 1] 3 . * exp (1) . ^ ((-x)./4)
Any help is appreciated
4 commentaires
Réponse acceptée
Jose Marques
le 11 Sep 2017
Natalie, try this:
E= [-1 1] * 3 *( exp (1) .^ ((-x)/4))
E will be a matrix 1x2 that first element is positive value and second will be the negative value
7 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Characters and Strings dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!