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

Re: Reference excel data into MathCAD 14?

$
0
0

Daniel Sochor wrote:

 

Is there a way to read create a single vector in a single line similar to the way you have done this with readexcel but instead with readfile?

Not exactly. But you sure can use READFILE to read a complete Excel table, not just a single cell. Behaviour of READFILE is different for xls and xlsx files!

 

M:=READFILE("Flex_Shear.xls","Excel")

 

reads the complete Table in the Mathcad matrix M and you have to use submatrix() to access the ranges you want. I think there is no way to do it as comfortable as its possible with READEXCEL(). I am not sure but I think its always the forst sheet in the file which is read and it seems there is no option for chosing a different sheet.

 

M:=READFILE("Flex_Shear,xls","Excel",2) reads the whole table beginning with row number 2 (e.g. omitting a row header) . If used with a 2007 xlsx file you just get the second row!

 

M:=READFILE("Flex_Shear,xls","Excel",2,3) reads the whole table omitting the first row and the first two columns. For an xlsx file you jet get element C2 (row 2, column 3).


Viewing all articles
Browse latest Browse all 11560

Trending Articles



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