Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

reassigning value to a variable

$
0
0
Hi,

I have created a variable within a loop:

HName=strcat(FirstLetter, SecondLetter)
HName=AA

I have a value:
DominanceHierarchy(i,ii)
DominanceHierarchy=99

I want to assign this value to the variable that I created such that
   AA=99;

I can't simply do

strcat(FirstLetter, SecondLetter)=DominanceHierarchy as the variable "AA" is then not associated with the value of 99.

Any suggestions?

Viewing all articles
Browse latest Browse all 19628

Latest Images

Trending Articles



Latest Images