开发者

Matlab big matrix

开发者 https://www.devze.com 2023-01-05 04:58 出处:网络
I\'m trying to use matlab for the first time but I\'m having a problem because the matrix I\'m using is too big, I think.. I command I\'m trying is:

I'm trying to use matlab for the first time but I'm having a problem because the matrix I'm using is too big, I think.. I command I'm trying is:

m=[1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;169201]7;531456;1692017;1692017;1692017;16920开发者_JAVA百科17;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017]

And I'm getting the following error: Error: Unexpected MATLAB expression.

Does anyone have a solution for this?

Thanks in advance !


That matrix is tiny :-) Matlab can handle millions of elements per matrix.

However, on the second line, you have an extra bracket that ruins things:

...17;1692017;169201 ] 7;5...

Get rid of it, and you'll be fine!


Seems like you are trying to do a matrix, but typing its code wrongly. First, the ; separates lines; if you want to separaate columns in a row you have to use a space.

And you have two closing ], while you have only one opening [ which is clearly incorrect

0

精彩评论

暂无评论...
验证码 换一张
取 消