Re: load mat file programatically



paul <paultoti@xxxxxxxxxxx> writes:

> Hi Dan
>
> May you tell me why I shouldn't eval().
> If not using eval, what other command I should use instead.

load(fname);

vs

eval(['load ' fname ';']);

It's more readable, it's more compilable, it's more efficient. Did I
mention it's more readable?


--
Peter Boettcher <boettcher@xxxxxxxxxx>
MIT Lincoln Laboratory
MATLAB FAQ: http://www.mit.edu/~pwb/cssm/
.



Relevant Pages

  • Re: hypenation
    ... But normally folks put the entire \hyphenation command in a file and ... Dan ... Prev by Date: ...
    (comp.text.tex)
  • Re: RUN with parameters?
    ... Of course you can pass parameters on the command line. ... always passed as strings. ... Dan ... Prev by Date: ...
    (microsoft.public.fox.programmer.exchange)
  • Top property for multiple columns?
    ... Is it possible to use some sort of Top property or another command to ... Dan ... Prev by Date: ...
    (microsoft.public.access.queries)
  • Re: cant delete a row?
    ... > you saying it is another spid doing exactly the same command? ... Prev by Date: ...
    (microsoft.public.sqlserver.replication)
  • A question about a bash command
    ... I am looking for a command to do the following: ... I tried echo, but ... Paul ... Prev by Date: ...
    (Fedora)