hobbit02
Marine/Ocean
- Jun 17, 2002
- 9
Hi there,
I know this may be a trivial question, but I am having trouble solving this.
I need to enter a file name from keyboard while matlab is running a script. I have been trying CASEREAD, UIGETFILE and others similar.
I can enter the name correctly, but under the assigned name it is stored only the used string, not the file itself.
for example, if I use
[name path]=uigetfile
to enter from the keyboard "sales.txt"
and then use
load(name)
the file "sales.txt" is loaded, but if I then use
size(name)
it gives me the size of the string used to name the matrix, not the size of the matrix itself, which is what I need to know.
Hope you can help me.
Thanks a million.
I know this may be a trivial question, but I am having trouble solving this.
I need to enter a file name from keyboard while matlab is running a script. I have been trying CASEREAD, UIGETFILE and others similar.
I can enter the name correctly, but under the assigned name it is stored only the used string, not the file itself.
for example, if I use
[name path]=uigetfile
to enter from the keyboard "sales.txt"
and then use
load(name)
the file "sales.txt" is loaded, but if I then use
size(name)
it gives me the size of the string used to name the matrix, not the size of the matrix itself, which is what I need to know.
Hope you can help me.
Thanks a million.