Re: using "eval" with strings from a cell array



In article <fntspc$v38$1@xxxxxxxxxxxxxxxxx>,
=?UTF-8?B?TWljaGFlbCBSwppvZXNjaA==?= <mr_78-25@xxxxxx> wrote:

eval('string' cell_array(1))

returns these error:

Undefined function or method 'eval' for input arguments of type 'cell'

Any ideas how to change a single cell to a ordinary string?

cell_array{1} instead of cell_array(1)


But I'm not able to access these filenames with the eval function to
alter them before saving again.

It seems unlikely to me that you need to use eval to do what
you want to do. For example, if you wanted to change the extension
on each filename to 'xls', you could use

for K=1:length(cell_array)
cell_array{K} = [cell_array{K}(1:end-3) 'xls'];
end
--
This is a Usenet signature block. Please do not quote it when replying
to one of my postings.
http://en.wikipedia.org/wiki/Signature_block
.



Relevant Pages

  • Re: Trying to pass structure array to function
    ... to the bare minimum, however, has advantages other than just saving ... be it due to silent naming issues, just focusing on the problem area ... the text you're replying to. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Saving to CD-R
    ... will then alter them and send them back. ... documents they save as read only and will not then allow alterations. ... How do I stop them from saving as read only? ... an e-mail attachment as they do not yet have e-mail. ...
    (microsoft.public.word.docmanagement)
  • Word alters open file to Read-Only
    ... Quite often, as I am working on a DOCX file, after saving the file 5-6 times, ... the file mysteriously becomes Read-Only and I am required to alter the ... Is there any fix for this? ...
    (microsoft.public.word.application.errors)
  • Re: How can I invoke the File System Dialog box
    ... > coding the location for saving the file I will like to use the file ... Lucas Tam ... Please delete "REMOVE" from the e-mail address when replying. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Correct Bible Study
    ... People in charge in this forum can alter the words in the postings. ...
    (soc.culture.singapore)

Loading