From: Nora Sun on 27 Mar 2010 05:17 "Bruno Luong" <b.luong(a)fogale.findmycountry> wrote in message <hohrjp$b0t$1(a)fred.mathworks.com>... > "su su" <nursutun(a)yahoo.com> wrote in message <hohkc3$nrd$1(a)fred.mathworks.com>... > > Hi all, > > I am completely over because of my GUi, I prepared a Gui for my thesis which includes several evaulation. First, it starts with load (*.grd) data and after the function save it (.mat) data. But I didnt solve how can I call the file again for the later applications in the same gui with no changing in coding (file of data.mat), ın my code I call the data file by a fixed name (as written in the gui .m file_such as, in coding gui, I use (mate.grd) and then again in coding I call it with the same name for using somewhere in code). How can I convert the files as 'default' name and how can I change the names before using them later evaulations? > > I am really so disapponted and I really have any idea how can I fix this problem. > > Thanks in advance > > Nora > > Don't hardcode the file name, put in string variable > > filename = 'data.grd' > data = load(filename) > > data = ... > filename ='data.mat' > save(filename, 'data'); > > Bruno Thanks alot to your replies. They helped me so much, Nora
First
|
Prev
|
Pages: 1 2 Prev: Reading subset from text file Next: optimization using lagrange multiplier method |