I'm trying to figure out something, but I'm stuck.
Here's what I'm trying to do : I have two matrices, one named data, which contains multiple columns of SPICE results, and the other named labels, which contains the title of each row. Here's an example, for the sake of clarity :
Now, I would like to create a new matrix (column vector) for each column of my data, and name these matrices by their corresponding labels.
Say : time = data(:,1), vin = data(:,2), etc.
I tried : labels(1) = data(:,1). But it only associates time with the 1st value of data(:,1)
So, to recapitulate, my question is : How can I use the string in labels(1) to define a new variable?
An analogy with bash would be : $(labels(1)) = data(:,1), the use of a command substitution. I can't find any equivalent in Octave / Matlab.
Thanks to anyone who can enlighten me on this matter!