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.

 채택된 답변

per isakson
per isakson 2014년 4월 24일
편집: per isakson 2014년 4월 24일

2 개 추천

>> 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

Sebastiano delre
Sebastiano delre 2014년 4월 24일
I have restarted matlab and now it works fine...
Sebastiano delre
Sebastiano delre 2014년 4월 24일
Thank you!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기

질문:

2014년 4월 24일

댓글:

2014년 4월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by