Thread Subject: a problem in using the set_param()

Subject: a problem in using the set_param()

From: Ahmed Ismail

Date: 21 Nov, 2009 17:56:06

Message: 1 of 2

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

Subject: a problem in using the set_param()

From: riccardo

Date: 23 Nov, 2009 09:51:03

Message: 2 of 2

"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

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
set_param Ahmed Ismail 21 Nov, 2009 12:59:07
from multimedia... Ahmed Ismail 21 Nov, 2009 12:59:07
rssFeed for this Thread

Contact us at files@mathworks.com