Code Comments
Programming Forum and web based access to our favorite programming groups.Hi, I want to create a dialog box, to load a txt-file with measurement data into my m-file. Before, the command was: load FX1.txt -ascii; Now I want to create something like: [FileName,PathName] = uigetfile(...) with, for example, m1 as FileName. But the variable I create does not content the measurement data, but only the name (m1 = FX1.txt). How can I load the data using a dialog box? Thanks very much Milan
Post Follow-up to this messageMilan wrote: > > > Hi, > I want to create a dialog box, to load a txt-file with measurement > data into my m-file. Before, the command was: > load FX1.txt -ascii; > > Now I want to create something like: > [FileName,PathName] = uigetfile(...) > with, for example, m1 as FileName. But the variable I create does > not > content the measurement data, but only the name (m1 = FX1.txt). > How can I load the data using a dialog box? > Try FX1 = load([PathName filesep FileName],'-ascii'); after checking that FileName is not empty (ESC in the dialog) Marcel > Thanks very much > Milan
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.