473,320 Members | 1,991 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Matlab "textread" with skip function

Hi, I have a problem about using "textread"command to read a text file. Please see the text file below:

PATH PLOT
Time : 2.000000e+000
Pres : 0.000000e+000

Curve 1
X : Arc Length
Y : Comp 22 of Cauchy Stress

Node X Y
----------------------------------------
2754 0.000000e+000 5.968384e-002
2755 9.694445e-004 5.976861e-002
2756 1.918333e-003 6.001359e-002
2757 2.846667e-003 6.040800e-002
2758 3.754444e-003 6.094981e-002
2759 4.641667e-003 6.163800e-002

I only would like to have values of X and Y. How can I skip unwanted texts or symbles by using "textread"?

thank you for anyone's help

Jay
May 15 '07 #1
1 3493
AdrianH
1,251 Expert 1GB
Hi, I have a problem about using "textread"command to read a text file. Please see the text file below:

PATH PLOT
Time : 2.000000e+000
Pres : 0.000000e+000

Curve 1
X : Arc Length
Y : Comp 22 of Cauchy Stress

Node X Y
----------------------------------------
2754 0.000000e+000 5.968384e-002
2755 9.694445e-004 5.976861e-002
2756 1.918333e-003 6.001359e-002
2757 2.846667e-003 6.040800e-002
2758 3.754444e-003 6.094981e-002
2759 4.641667e-003 6.163800e-002

I only would like to have values of X and Y. How can I skip unwanted texts or symbles by using "textread"?

thank you for anyone's help

Jay
Sorry, is this question related to C/C++? If so, I see nothing here to show that.

Please restate you question.

Thanks,


Adrian
May 17 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: les_ander | last post by:
Hi, matlab has a useful function called "textread" which I am trying to reproduce in python. two inputs: filename, format (%s for string, %d for integers, etc and arbitary delimiters) ...
4
by: fafy | last post by:
Hello everybody, I'm looking for a way for parsing strings. I' ve something like this: TOTAL C00 L240 WH00 WPI00 WEI00 WPL00 TDM15359 TEMP49.76 PDIR65535 PREF65535 I28RD65535 TOTAL...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.