cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.
  • See how to access JMP Marketplace - and - find, create & share add-ins to extend your JMP. Watch video.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
PriorChinchilla
New Member

JSL Error When Requesting Number of Columns in a Matrix

I have the following data table:

PriorChinchilla_0-1785071340790.png

I imported this data table into a JSL matrix

Data1 = Data Table( Current Data Table() ) << Get All Columns As Matrix;

This produced the following matrix named Data 1 :

[ 23 24 25 26, 

22 23 . ., 

23 22 . .]

I requested the number of columns in this matrix:

c = ncol(Data1);

This generated the following error message:

Cannot set value for the column 'C' because the row number (0) is not valid. in access or evaluation of 'Assign' , :c =  /*###*/N Col( Data1 ) /*###*/

I would appreciate any help understanding the error message and/or how to get the number of columns in Data1.

Thank you.

0 REPLIES 0

Recommended Articles