Current location - Quotes Website - Signature design - How to create symbol matrix in matlab
How to create symbol matrix in matlab
I don't know if the symbols you want, such as X 1, X2, X3, ..., are definite symbols or other symbols.

If these symbols are known, their order is the same. The following procedure can be used.

clc

X=[X 1

X2

X3

X4

X5

X6……】;

I=input ('Please enter the value of I:');

X=X( 1, 1:I);

The x obtained from sentence% is the first column to the I-th column of the first row in the original X matrix.