cancel
Showing results for
Did you mean:
cancel
Showing results 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

5-Regular Member

## Pseudoinverse Matrix

Hello,

Do any of you have a script for calculating a pseudoinverse matrix nxm?

I found a script here, but it is written in Mathcad 15 and unfortunately I don't have a licence to convert it to prime.

Thanks

Michael

ACCEPTED SOLUTION

Accepted Solutions
5-Regular Member
(To:Werner_E)

Hello all,

Secondly, I must apologise because my problem is a little more complex than I expected. Because now I have the problem that I need to calculate the norm of a non-quadratic matrix and I have realised that this is also not available as a predefined function.

Anyway, in the end, I have to calculate the condition of a non-square matrix. Do you have a script for that availible too?

Best regards and many thanks

Michael

13 REPLIES 13
21-Topaz I
(To:Michael2)

Hi

Prime 10 version below

Cheers

Terry

5-Regular Member
(To:terryhendicott)

Hi Terry,

thanks very much for your quick reply, I'm amazed. Unfortunately I'm currently working with Prime 7 Our IT doesn't has updated to 10.

Are you able to provide this in 7?

Regards

Michael

21-Topaz I
(To:Michael2)

Yes give me a few minutes to fire up a laptop

21-Topaz I
(To:terryhendicott)

Hi,

Cannot do Prime 7 did try?

Cheers

Terry

5-Regular Member
(To:terryhendicott)

I tried, but I got an error message. Done with a newer version

25-Diamond I
(To:Michael2)

@Michael2 wrote:

Hello,

Do any of you have a script for calculating a pseudoinverse matrix nxm?

I found a script here, but it is written in Mathcad 15 and unfortunately I don't have a licence to convert it to prime.

Thanks

Michael

If you don't have a licence to convert it means that you are using the free Express version of Prime and are past the trial period.

In this case the converted sheet won't help as programming is disabled in Express.

For calculating the pseudoinverse you may use the built-in function "geninv". Its not a premium function and works in Express as well.

In case you are just curious here is a screenshot of the original file (btw, setting ORIGIN:=0 at the end would not be necessary at all)

EDIT: Wasn't aware that it still would work, but it did, so find attached the file converted to Prime 6. You should be able to open it with Prime 7.

5-Regular Member
(To:Werner_E)

Hello Werner,

I don't work with an express version. The mcd converter button is not "active".  I thought you needed a MC 15 version for the converter from prime to work. If this is not the case I will ask my administrator to install the MCD converter.

Thanks very much for your help

Michael

25-Diamond I
(To:Michael2)

I think that starting with Prime 7 the installation was self-contained in the sense that no extra installation of MC15 was necessary to do the conversions.

But when you install Prime the check box to install the converter as well must be actively checked, its not checked by default.
You always can rerun the installer to add the converter to your installation if it wasn't done in the first place.

21-Topaz I
(To:Werner_E)

Hi,

Here is a version that should open on Prime 7

Cheers

Terry

25-Diamond I
(To:terryhendicott)

@terryhendicott wrote:

Hi,

Here is a version that should open on Prime 7

Cheers

Terry

Thanks, I guess the Prime 6 version I posted earlier should  work in P7 as well.
I did not expected it to work but gave it a try and found that the P6 converter still works OK even though newer Prime versions were installed.

5-Regular Member
(To:Werner_E)

Hello all,

Secondly, I must apologise because my problem is a little more complex than I expected. Because now I have the problem that I need to calculate the norm of a non-quadratic matrix and I have realised that this is also not available as a predefined function.

Anyway, in the end, I have to calculate the condition of a non-square matrix. Do you have a script for that availible too?

Best regards and many thanks

Michael

21-Topaz I
(To:Michael2)

5-Regular Member
(To:Michael2)

Hi Terry, that's it!

Thanks so much.

Regards

Michael

Announcements

Top Tags