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
Solved! Go to Solution.
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
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
Yes give me a few minutes to fire up a laptop
Hi,
Cannot do Prime 7 did try?
Cheers
Terry
I tried, but I got an error message. Done with a newer version
@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)
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.
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
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.
Hi,
Here is a version that should open on Prime 7
Cheers
Terry
@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.
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
Hi Terry, that's it!
Thanks so much.
Regards
Michael