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
In Mathcad Prime how do I specify that I want to establish a matrix that has 2 columns and 91 rows?
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.
Stuart
@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
Or fill the matrix row for row with consecutive numbers
And of course you always can resort to classical use a program with nested loops to do the job
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.
And for those watching in Mathcad Express:
And a brief explanation of how matint works.
Stuart
