Quantcast
Channel: PTC Community: Message List
Viewing all articles
Browse latest Browse all 11712

Re: Can Mathcad work on simple 2 dimesion matrix calucation, such as import/export *.txt file, and basic matrix caculation? I can not find it in guide?

$
0
0

Hi,

 

I've just put a simple worksheet together that will show some of the capability that you want.  The image below shows a part of the worksheet.  I've only got Mathcad 14, but the general principle should apply to Mathcad Prime if that is what you have (if you have a full version of Mathcad Prime, you should also have a version of Mathcad 15 which will run the attached worksheet directly or convert it to Prime for you).

 

You can find help on the constructs I've used by searching for determinant, matrix inverse, and index in Help.   Alternatively, read the Getting Started and Vectors and Matrices sections of Help.  Also look up File Input and File Output, plus the File Access functions (you can save to and read Excel worksheets).

 

The advantage of Matlab is that it keeps the "code" nearer to the mathematical notation, making it easier to check.  If you have an example of Matlab code, then somebody can possibly have a look at doing a like-for-like conversion (given Matlab is also a matrix-based programming language).   If you have test data, then that

 

Stuart

 

collab - 15 03 03 Matlab to Mathcad 001.JPG


Viewing all articles
Browse latest Browse all 11712

Trending Articles