From: umut arioz on
I am transforming my m file for compliant to the embedded matlab function. but I didnot solve that error messages :

t=0:comp_range*comp_ratio/comp_range:comp_range*comp_ratio;
message : Operands must be constants.

"but these operands are inputs of the block and this is the real time application, so they must change. "

and

k.01;
y = fft(bp_sound_mix((k:k+499),:),4096);
message: could not determine the size of this expression (k:k+499)

"I didnot understand the message logic"

so what can I do for that messages ?

thanks
From: Michael Hosea on
Instead of

k:k+499

use

k + (0:499)

--
Mike

"umut arioz" <john.doe.nospam(a)mathworks.com> wrote in message
news:hh7mmi$k0m$1(a)fred.mathworks.com...
>I am transforming my m file for compliant to the embedded matlab function.
>but I didnot solve that error messages :
> t=0:comp_range*comp_ratio/comp_range:comp_range*comp_ratio;
> message : Operands must be constants.
>
> "but these operands are inputs of the block and this is the real time
> application, so they must change. "
>
> and
> k.01;
> y = fft(bp_sound_mix((k:k+499),:),4096);
> message: could not determine the size of this expression (k:k+499)
>
> "I didnot understand the message logic"
>
> so what can I do for that messages ?
>
> thanks