Skip to main content
1-Visitor
November 23, 2022
Question

Problem to solve

  • November 23, 2022
  • 2 replies
  • 3160 views

Hello, I need some help solving this problem:

Given matrix A(n,m). find the row with the most negative elements and replace it with the row with the largest element of the matrix.

 

Thanks!

2 replies

14-Alexandrite
November 23, 2022

I am sure people can help but what is your 1st attempt? Posting it could be useful

1-Visitor
November 23, 2022

BB_10497234_0-1669214192965.png

BB_10497234_1-1669214201388.png

i tried this sollution but its too long anyone can size it down ? 😄

 

1-Visitor
November 23, 2022

got the awnser wich is correct but too long or there is another way of doing it?

BB_10497234_2-1669214297122.png

 

23-Emerald IV
November 23, 2022

You post this in a Mathcad forum, although it looks like you're using Smath studio...

Anyway, A Mathcad Prime program to do what you want is:

LucMeekes_0-1669215660887.png

A Prime 8 file is attached.

 

Success!
Luc

1-Visitor
November 23, 2022

Thank you u did it what was written but way to advanced is it possible maybe to do with if's/else 😄 i believe u can just do with  1 or 2 cykles but i have no idea how.