From: Ferhan Yousufzai on
Hi all..
here is the problem, i try to run a simple simulink model e.g abc from a matlab m file, the model is supposed to return a value to workspace stored in the array "err"
here is the simplified m file

sim('abc');
err

when i execute this, matlab comes up with an error that err is un-defined. so please tell me how do i get use this "err" value in my .m file??
From: Ferhan Yousufzai on
"Ferhan Yousufzai" <furhaan(a)live.com> wrote in message <hqovkq$b9k$1(a)fred.mathworks.com>...
> Hi all..
> here is the problem, i try to run a simple simulink model e.g abc from a matlab m file, the model is supposed to return a value to workspace stored in the array "err"
> here is the simplified m file
>
> sim('abc');
> err
>
> when i execute this, matlab comes up with an error that err is un-defined. so please tell me how do i get use this "err" value in my .m file??

------------------------
problem solved, i declared err as global
 | 
Pages: 1
Prev: basics
Next: How to split with multiple criterion