From: Adam Chapman on 29 Jul 2010 03:58 I'm making a graphical interface for a Simulink model, where the user is to define a large number of parameters for different vehicle configurations. Instead of saving a whole simulink model for every parameter set entered, Im going to save the user's parameters in .mat file. I just wonder if it's possible to define my own file extension, so that other irrelevant .mat files don't confuse the user when they're loading their old parameter sets? The workaround is to just ensure the parameter .mat files are saved in an exclusive directory, but i just wondered.
From: Rune Allnor on 29 Jul 2010 06:05 On 29 Jul, 09:58, Adam Chapman <adamchapman1...(a)hotmail.co.uk> wrote: > I'm making a graphical interface for a Simulink model, where the user > is to define a large number of parameters for different vehicle > configurations. > > Instead of saving a whole simulink model for every parameter set > entered, Im going to save the user's parameters in .mat file. > > I just wonder if it's possible to define my own file extension, so > that other irrelevant .mat files don't confuse the user when they're > loading their old parameter sets? > > The workaround is to just ensure the parameter .mat files are saved in > an exclusive directory, but i just wondered. This is a stupid way to do thongs. Find out what you *really* are trying to do, and ask how to achieve that. Rune
From: Bruno Luong on 29 Jul 2010 07:30 Adam Chapman <adamchapman1985(a)hotmail.co.uk> wrote in message <4badcfee-4a26-4151-b72b-6f8bd17ecc4e(a)m1g2000yqo.googlegroups.com>... > I'm making a graphical interface for a Simulink model, where the user > is to define a large number of parameters for different vehicle > configurations. > > Instead of saving a whole simulink model for every parameter set > entered, Im going to save the user's parameters in .mat file. > > I just wonder if it's possible to define my own file extension, so > that other irrelevant .mat files don't confuse the user when they're > loading their old parameter sets? > > The workaround is to just ensure the parameter .mat files are saved in > an exclusive directory, but i just wondered. You might of course save using any file extension you prefer. When loading, use '-mat' option in load command to force the MAT file format. Bruno
|
Pages: 1 Prev: What are the limitations of hinfsyn? Next: Problem with parfor |