Retrieving one row of text.

1 Ansicht (letzte 30 Tage)
Thomas
Thomas am 9 Dez. 2012
Hello,
I have a simple TAB delimited .txt file of the following:
DATE U6RATE U3RATE
1995-01-01 10.2 5.6
1995-02-01 9.9 5.4
1995-03-01 9.9 5.4
My first goal is to have the user input the date in the form: YYYY-MM-01m then retrieve the entire line which leads up to plotting a simple bar plot, U6RATE vs. U3RATE.
I have this so far:
%%choice function
YearPick = {'Please enter a year (YYYY-MM-01): '};
YP = inputdlg(YearPick);
YP = YP{1}
So I've turned it into a char type, but this is where I am stuck. Any help would be appreciated.
  1 Kommentar
per isakson
per isakson am 9 Dez. 2012
Bearbeitet: per isakson am 9 Dez. 2012
Three columns and one header line?
DATE U6RATE U3RATE
1995-01-01 10.2 5.6
1995-02-01 9.9 5.4
1995-03-01 9.9 5.4
Then you want to select an interval in time - not just one row?
"simple bar plot, U6RATE vs. U3RATE". Wouldn't a scatterplot be better?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Discrete Data Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by