cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Translate the entire conversation x

Matrix specification number of rows and Columns in Mathcad Prime

Herakovich
3-Newcomer

Matrix specification number of rows and Columns in Mathcad Prime

In Mathcad Prime how  do I specify that I want to establish a matrix that has 2 columns and 91 rows?

4 REPLIES 4

Capture.JPG

Capture2.JPG

Terry's is the simplest method.  However, Express users might find the following helpful if they want to create a zero matrix of arbitrary size.

 

2025 11 08 A.png

 

Stuart

Werner_E
25-Diamond I
(To:Herakovich)


@Herakovich wrote:

In Mathcad Prime how  do I specify that I want to establish a matrix that has 2 columns and 91 rows?


You can't create a 91 x 2 matrix with empty placeholders directly via the menu. You may have already noticed that via the menu you can just create a 12x12 matrix at max.

On the other hand - who wants to fill in more than 144 numbers by hand? So its not a big loss we can't create larger matrices that way.

But if you really need that many empty placeholders you sure can create them manually as its very easy to add additional columns and rows to an existing matrix. This is one of the few advantages of Prime over Mathcad as manipulating matrices really is much easer than it used to be - with the exception of scrolling in larger matrices (this is really implemented in an unusable way in Prime). You may have already noticed the buttons for adding rows and columns in the menu ribbon - even easier to use are the keyboard shortcuts Shift+Enter to add rows and Shift-Space to add columns.

That way you sure can also create matrices with 92 rows consisting of empty placeholder, if thats what you need.

 

To create a matrix with all zeros as Terry had shown you simply have to assign the element in the last row and last column a value (maybe zero as well).

Stuart showed other methods to achieve the same effect.

 

To create a matrix with random numbers you could also use the "matrix" function

Werner_E_0-1762626005152.png

 

Or fill the matrix row for row with consecutive numbers

Werner_E_1-1762626119243.png

 

And of course you always can resort to classical use a program with nested loops to do the job

Werner_E_2-1762626183146.png

 

If you have any specific need and can't find out how to do it, you'll have to explain be more specific what you are trying to achieve.

 

StuartBruff
23-Emerald IV
(To:Werner_E)

And for those watching in Mathcad Express:

 

2025 11 08 B.png

 

And a brief explanation of how matint works.

 

2025 11 08 C.png

 

Stuart

Announcements

Top Tags