|
"Ahmed Ismail" <ahmed.ismailm@gmail.com> wrote in message <he99jm$mi3$1@fred.mathworks.com>...
> Hello!
>
> i want to change the parameters of From Multimedia File block from code
> the parameter i want to change: File Name
> bock name: From Multimedia File
> Model name: test
>
> and when i try to change from the command line:
> set_param('test/From Multimedia File','FileName','C:\Users\Ahmed\Documents\Project\samples 0 9\5_5.mp3')
>
> i got the following message:
> ??? From Multimedia File block (mask) does not have a parameter named 'FileName'.
>
> Although i got the parameter FileName from the help of Matlab
>
> I hope if someone could help me with this problem as i am new with Matlab
>
> Thank you
use get_param(<Your blk here>,'maskparameters') to get the list of mask parameters, their names may differ from what you find on the mask GUI.
If you're still stuck, get_param(<Your blk here>,'objectparameters') shows the full monty, then you have to fish for what you need.
HTH
Riccardo
|