Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: How to Select Entire Row From Excel File Uisng Prompt?
Replies: 11   Last Post: Nov 23, 2012 5:52 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Phil Goddard

Posts: 348
Registered: 1/27/12
Re: How to Select Entire Row From Excel File Uisng Prompt?
Posted: Nov 18, 2012 10:43 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I'm confused by your terminology.
I don't see anywhere in your code (or any reason in your description) why you are "... pass that into ColumA ..."
Nor "(this is what I pass to the InputBox)" -- surely you are reading from the InputBox not passing anything into it.

If you mean that you are just wanting to compare a number(date?) that a user enters to the values(dates) in the first column of the spreadsheet and then extract the corresponding row, then why not either,

a) read the first column into MATLAB; determine which element (and hence row) corresponds to the value entered by the user; then use my previous code to read the specified row.

or

b) read everything from the specified sheet into MATLAB; then determine which row you want and extract it from the whole matrix that was read in.

Phil.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.