From: Henrik Andresen on 29 Jan 2010 05:43 "Rakesh Bose" <rakesh(a)steepestascent.com> wrote in message <gss3oi$i2a$1(a)fred.mathworks.com>... > Yeah, gcb refers to the outport block. When i use get_param(gcb,'PortDimensions') to get the dimensions of the input signal, i am getting '-1' which is the value of the parameter set in the Port dimensions field for the outport. What i want is the actual port input dimensions so that i can do a size check by means of an init or start callback function.. > cheers, > rakesh Hi I'm currently facing the same problem. Have you found a workaround? I'd like to implement the czt algorithm using just the blocks and without the user having to type in too many inputs, which are fixed and not actually variable at all. E.g. if the input is 256 samples and the output has to be 64, the internal FFT has to be done using 512 values. For the czt, the user should only input the data stream along with the 'A', 'W', and 'M' parameter if following the normal Matlab function. However, it seems impossible to get the number of samples on the input port on the mast initialization part. Since simulink actually writes the number on the signal path, why has it been made so difficult to figure out how to get it (This part is a hint for the Mathworks developers). Has anybody had any luck doing this? Cheers Henrik Andresen
|
Pages: 1 Prev: seaching for PCA coding Next: OFDM in ZF and MMSE channel |