The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: How to use imported text?
Replies: 1   Last Post: Mar 16, 2013 6:10 PM

Advanced Search

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

Posts: 2
Registered: 6/4/12
How to use imported text?
Posted: Mar 16, 2013 6:06 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I imported an Excel file with text. I named this data data_with_text. When I use
>> word1=data_with_text(1,1)
I get:
word1 = 'ABC'

Ideally I could run something like this:
>> if word1=='ABC'

However, this does not work and I get this error,
Undefined function 'eq' for input arguments of type 'cell'.
which I presume comes from the apostrophes because word1='ABC' and not plain ABC without the apostophes

Is there any way around this?

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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.