2020年12月21日星期一

How can I create a new matrix from the data of two vectors, extracting the number of columns and rows from those two vectors in MATLAB?

Hiiii everyone!!!!

I hope this message finds you well and healthy.

I am writing because I would like to ask for help with this.

Please take a look at this cell vector x = {[2 3], 0, [1 2 3], [2 2 -3]}

So I need to extract the matrix from that, I tried to use cell2mat, but it did not work.

I should obtain a beautiful:

0 3 0

0 -3 0

But I am only obtaining a weird:

 2     3     0     1     2     3  

Could you please guide me a little bit?

https://stackoverflow.com/questions/65402675/how-can-i-create-a-new-matrix-from-the-data-of-two-vectors-extracting-the-numbe December 22, 2020 at 10:54AM

没有评论:

发表评论