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

Re: Stripping Units from Mathcad variables (e.g., for export to csv files)

$
0
0

But using the Excel component doesn't export the data to a file.

You could use the output of the component just to strip the units and then write the unitless data via WRITEEXCEl or WRITECSV, but that would be like taking a sledgehammer to crack a nut compared to simply dividing by the unit.

Of course you could double cick the component and manually chose "save file"  from within Excel, but that wouldn't be automatic and a bit awkward, too.

 

So I guess dividing the matrix which should be written to a file by the desired unit will be the best approach.

1.png

 

If you use a matrix with elements of different dimensions in Prime, you will have to vectorize the division.

2.png


Viewing all articles
Browse latest Browse all 11979

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>