i have write a wcdma mobile link in matlab,each block with seperate m-
file ,i am new in simulink and i should change it into simulink,most
of inputs and outputs are matrices (1xn),i have read s-function
help ,but i couldn't undrestand alot,i will be pleased if you suggest
any link or pdf attached for me to start,
I am not sure as to which version of MATLAB you are
using. However, if you happen to lay your hands on
version 6.5, then WCDMA is lot more easy to implement.
There are demos which are present and can be modified
to suit your requirement. I have found it pretty cool
to simulate WCDMA in Simulink bundled with MATLAB 6.5.
Sufficient help is also provided with it.
If you still need help, then visit the Mathwork
site for the pdf files that you are looking for.
--- ehsan azordegan <> wrote:
> i have write a wcdma mobile link in matlab,each
> block with seperate m-
> file ,i am new in simulink and i should change it
> into simulink,most
> of inputs and outputs are matrices (1xn),i have read
> help ,but i couldn't undrestand alot,i will be
> pleased if you suggest
> any link or pdf attached for me to start,
> Ehsan >
I guess he is asking how to put a matlab code in to a user defined simulink block using S functions rather tha using the blocks given by MATHWORKS. I implemented a few blocks for GPS simulation using matlab code and then converted them to user defined simulink blocks using s functions. The main thing is that in the s function demos using matlab files , MATHWORKS did not mentioned that teh user defined blocks will not accept more than 1 input. also the input shoule be real . So you have to put a MUX before your block to couple all the inputs and in the s fucntin code you ahegv tos eperate teh inputs and do the processing and give it to output. U have to put a demux at the output to seperate the different outputs.
Hope it helps.
Snehamoy Banerjee <s...@yahoo.com> wrote: