I have two matrices that depend on the choice, there will be some other calculations. For example, suppose:
A = 8 9 3 9 6 5 2 1 9
and
B = 11 9 11 8 2 2 2 8 9 8 11 5 1 9 1 11 11 10 5 4 6 9 11 8 1
Now I would choose one of them as the new matirix
C = A; C = B;
If I use the following if condition, I will have an error.
if C==A %do some computation else if C == B %do some other computation else %print an error
Since the dimension of the matrices is not equal, then I have an error. Could you tell me how I could formulate this correctly?
user4128379
source share