1

It seems much more clearer that be asked; but I could not find it by my first searches.

Does anyone know how to find size of an array in Mupad session of Matlab?

M := [12 , 21, 432]:
size(M):
length(M):

None of them works well for me.

hossayni
  • 465
  • 1
  • 3
  • 16

2 Answers2

2

The command is nops(M) in mupad

Mathematica graphics

Mathematica graphics

Nasser
  • 12,849
  • 6
  • 52
  • 104
  • This seems similar to MATLAB's `numel()` What about the size of a matrix in more than one dimension, as is given by the MATLAB function `size()`? – Ingo Schalk-Schupp May 27 '15 at 09:29
0

EDIT: my bad I wasn't able to get it at first attempt, but I accidentally came across the proper method to obtain what OP asked for. The method is:

linalg::matdim(A)

From manual:

linalg::matdim(A) returns the dimension of the matrix A, i.e., the number of rows and columns of A.

Antek
  • 721
  • 1
  • 4
  • 27