MATLAB Answers

cell2mat Error :using cat Dimensions of arrays being concatenated are not consistent.

25 views (last 30 days)
Hello,
I have a cell array which is as follows:
I am using
P2 = cell2mat(Numerical_FourierForce{1,1})
and I get this error:
Error using cat
Dimensions of arrays being concatenated are not consistent.
Is there any way to avoid this error?
Because in the picture, I have some cells with 0 and some with two values, these values are forces in x and y and zero is for both of them.
Is ther any way, I could convert them into ordinary array?

  0 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!