Is there a matrix which can be alphanumeric?
8 views (last 30 days)
I am trying to make a matrix like
The first column is going to be concatenated string where the first alphabet is the counter of the for loop and the alphabet 'n'
For ex: for coun = 1:1:10
code will go here
should give output for coun = 3 as:
and then I need to put this along with a new matrix j which is
The order of the final matrix is decided by the matrix j as it has the same number of rows as the number of rows of the matrix j.
So the final output is:
Cris LaPierre on 11 Nov 2020
A matrix cannot contain mixed data types. It's possible to create a string array that does what you want, but everything will have to be strings.
a = string(ones(4,1)*3)+"n";
b = [-1 2 1 3]';
If instead you want to mix data types, you could use a table.