genvarname -> Index exceeds matrix dimensions.

2 views (last 30 days)
Hi everyone~
I have a quite stupid question here.
genvarname doesn't work here, like this:
>> vname = genvarname ('aaa') Index exceeds matrix dimensions.
Can anyone let me know what the problem is? Thank you~
  1 Comment
Jim Hokanson
Jim Hokanson on 8 Jul 2013
Edited: Jim Hokanson on 8 Jul 2013
What is the output from:
which genvarname
?

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 8 Jul 2013
You have defined a variable named genvarname
  1 Comment
Yuji Zhang
Yuji Zhang on 8 Jul 2013
Hi Walter~ me Thanks for helping~ Yes, I found I defined a variable named genvarname when I was testing the syntax. Matlab doesn't report it as a conflict...
Thank you very much~

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!