I'm gathering information from calculations performed on some data and stored into arrays. I also have some info about these data coming from a text file which now and then contains strings.
The strings from the text files got saved into a {} cell array of strings such as:
strings={'s1' 's2' 's3'};
a=[1 2 3]
What the strings and arrays contain is generated based on a few conditionals from the data present in the text file as well as some data I have in matlab through a loop doing things like that:
srings{e}=blablahFromSomewhere{e}
a(e)=otherNumericalBlahBlahFromSomwehre(e+6)
Ultimately I want to joint this into a table. I would normally do this:
T=[a(:) strings(:)]
But I'm facing the following error:
Error using horzcat
Dimensions of matrices being concatenated are not consistent.
Can anyone help? I don't really want to transform the strings into integers because the content of the string is handier to have in the output in running the analysis.
Thanks :)