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: Problem with apostrophe
Replies: 1   Last Post: Apr 6, 2012 8:49 AM

Advanced Search

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

Posts: 6
Registered: 4/3/12
Problem with apostrophe
Posted: Apr 6, 2012 6:47 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello,
I have a problem with this function (that is included in a FOR cycle with i=1:100)

img=dicomread(['img',int2str(i)]);

that function works perfectly!!
but I need to specify the file path in this way:

dicomread(c:\Users\fel\['img',int2str(i)]);

it doesn't work!!! I think that's a problem with the apostrophe... but i don't know... i try also:
dicomread('c:\Users\fel\['img',int2str(i)]');

but it doesn't work!!
Do you have the answer??
Thank you very much



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.