Monday, October 14, 2013

Flatten a square matrix in Mathcad

Mathcad is awful,

If you like me are being forced to use Mathcad after several blissful years of Mathematica then you get very sad very fast.

Here is a function to flatten a square array of square arrays in Mathcad (click to pop)


It could be extended to non-square arrays by adding a few more arguments. The advantage over the stuff on this page (current top google hit : http://communities.ptc.com/thread/38326 ) is no if-else statements and it works on matrices, not just vectors. Note the ORIGIN is set to 0

More importantly the whole mess can be avoided with creative use of the augment and stack function for array building

1 comment:

Crackglobal said...




I read this article! I hope you will continue to have such articles to share with everyone! thank you! You can Visit my website
ptc-mathcad-crack
endnote-crack
god-of-war-4-full-download
windows-11-crack
window-12-pro-crack
windows-10-pro-activator