cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Reading ground motion data from txt file

ksharma-2
2-Explorer

Reading ground motion data from txt file

Hello

I want to import the ground motion data from txt file. I have to escape first few lines of text in txt file then, read only the numeric value.

Could you guide me how can I do it?

Regards,

Keshab

4 REPLIES 4

You can use the following built-in functions:

  • READPRN("file") - returns an array containing the contents of the ASCII file;
  • READFILE("file", "type", [colwidths], [rows], [cols], [emptyfill]) - returns an array containing the data in file.

You can find more information about the work of these functions in the "Mathcad Help" file (key F1😞

Pic_1.png

P.S. For the future - for new questions create a new discussion please.

adar
7-Bedrock
(To:ksharma-2)

Go to insert>component>import wizard

choose delimited text in the box and browse for your text file. you will see choices for starting row, range of columns and rows to read and so on. once all you want is selected, you come out of the box and give a name to the data.

amit

I think there is no inset tab/menu in MathCAD Prime 3.0

Announcements

Top Tags