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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Select data in a matrix

ptc-6727461
1-Newbie

Select data in a matrix

Hi. Let's say that I have a 4x4 matrix and i need to select the terms that are optained by crossing out the first column and the second row. I tried with submatrix function but i could not cross out the second row(my matrix is 4x3 and i want it to be 3x3). How do i do it correctly? I'm completly new to MathCad so be patient with me.

Thank you

4 REPLIES 4
MikeArmstrong
5-Regular Member
(To:ptc-6727461)

Submatrix should work.

MikeArmstrong
5-Regular Member
(To:ptc-6727461)

Have a look below.

Clipboard01.jpg

Submatrix is useful but you have to distinguish three cases (first, last or middle row/column) which makes it a bit unhandy to program. Using a simple loop might look bold but does the job pretty well.

The attached utility function might come handy

1.png

MikeArmstrong
5-Regular Member
(To:Werner_E)

Nice function.

Top Tags