Quantcast
Channel: PTC Community : Discussion List - PTC Mathcad
Viewing all articles
Browse latest Browse all 2936

How do I convert matrix or column from string to number?

$
0
0

OK, I successfully imported .csv file into Mathcad Prime using READCSV.

My .csv file contains a table, one column are dates and another are numbers, there also a spurious empty columns.

I have no idea how to deal with dates, but my primary interest is second column with numbers.

But problem is, Prime interprets the whole csv table as matrix of string values, despite of numbers on second column are well-formed.

 

I tried str2num function, but it refuses to do the job, probably due non-scalar input. How do I pre-process this column to finally start my real calculations?

 

As a bound, could anyone please advise on dates in the following format: "2010-06-26",...

 

Thank you.


Viewing all articles
Browse latest Browse all 2936

Trending Articles



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