Skip to main content
Best answer by Michael2

Hello all,

Firstly, thank you for your prompt reply and your determined endeavour to help me.

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

2 replies

21-Topaz II
August 8, 2024

Hi

Prime 10 version below

Cheers

Terry

Michael212-AmethystAuthor
12-Amethyst
August 8, 2024

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 II
August 8, 2024

Yes give me a few minutes to fire up a laptop

25-Diamond I
August 8, 2024

@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.

 

https://community.ptc.com/t5/Mathcad/Programming-example/td-p/229552 

 

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)

Werner_E_1-1723127171649.png

 

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.

 

Michael212-AmethystAuthor
12-Amethyst
August 8, 2024

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
August 8, 2024

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.