Skip to main content
1-Visitor
August 28, 2014
Solved

RE: define the column and rows in a matrix

  • August 28, 2014
  • 34 replies
  • 14965 views

Is there a way of defining the number of matrix rows and columns just by say setting up a function? i.e. if I want a 5x5 matrix I can just type 5 and 5 in two functions and the matrix will auto generate

Best answer by RichardJ

Does this do what you want?

34 replies

1-Visitor
August 28, 2014

If you are referring to a matrix with empty placeholders, unfortunately not.

gbradley1-VisitorAuthor
1-Visitor
August 28, 2014

yes, then you can enter your data. is the only way to add or delete lines is by clicking on the matrix tab again? if so thats pretty poor

25-Diamond I
August 28, 2014

So you are referring to Prime??

Try Shift-Enter and/or Shift-Tab to add rows and columns. (one of the very few things which are more convenient in Prime than in Mathcad).

25-Diamond I
August 28, 2014

Gareth Bradley wrote:

Is there a way of defining the number of matrix rows and columns just by say setting up a function? i.e. if I want a 5x5 matrix I can just type 5 and 5 in two functions and the matrix will auto generate

Sure you can do that. But what do you mean with "just type 5 and 5 in two functions"?

Could it be that the command "matrix" is what you are looking for?

Otherwise you will have to provide an example of what exactly you are after.

gbradley1-VisitorAuthor
1-Visitor
August 28, 2014

As attached.

25-Diamond I
August 28, 2014

Gareth Bradley wrote:

As attached.

So this seems to be Mathcad 15 or below?

And what exactly is it want you want to do? Obviously you know how to create a matrix with empty placeholders by typing Ctrl-M and you can add or delete rows and columns via Ctrl-M, too.

As Michael already said its not possible to create a matrix with empty placeholders via a command in a program and I honestly can't see any benefit if we would be able to do so.

But you can easily create any type of matrix using a function filled with any values you wish.