Effacer les filtres
Effacer les filtres

the exp function does not work

12 vues (au cours des 30 derniers jours)
Sebastiano delre
Sebastiano delre le 24 Avr 2014
It may look like a simple problem but I cannot get my way through. When using exp(2), I get an "Index exceeds matrix dimensions" error. I have always used the exp function, why now I get this error?
Thank you for your help, Alessio.

Réponse acceptée

per isakson
per isakson le 24 Avr 2014
Modifié(e) : per isakson le 24 Avr 2014
>> exp(2)
ans =
7.3891
I guess exp is "shadowed" on your system. Run
>> which exp
built-in (C:\Program Files\MATLAB\R2013a\toolbox\matlab\elfun\@double\exp) % double
What do you get?
  2 commentaires
Sebastiano delre
Sebastiano delre le 24 Avr 2014
I have restarted matlab and now it works fine...
Sebastiano delre
Sebastiano delre le 24 Avr 2014
Thank you!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Matrix Indexing 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!

Translated by