フィルターのクリア

Simulink System Object forces hardcoded size for reshape function.

1 回表示 (過去 30 日間)
Eduardo Flores
Eduardo Flores 2020 年 12 月 31 日
編集済み: Uday Pradhan 2021 年 1 月 5 日
I'm trying to implement a SRRC filter and simlink throws the common unknown size for right hand at the reshape function when output_size is a precomputed constant. I have to explictly write the number (e.g 21600) for it to work. Why? How is it properly done?
%% Common functions
function setupImpl(obj, ~)
% Perform one-time calculations, such as computing constants
obj.output_size = [obj.l*obj.interpolation_factor 1];
end
function tx_filtered = stepImpl(obj, x, coefficients)
%output_size = obj.l*obj.interpolation_factor;
i_tx_tmp = repmat(real(x), 1, obj.interpolation_factor); % Upsampling
i_tx_interpol = reshape(i_tx_tmp', obj.output_size);
....
  1 件のコメント
Uday Pradhan
Uday Pradhan 2021 年 1 月 5 日
編集済み: Uday Pradhan 2021 年 1 月 5 日
Hi Eduardo,
May be you could share your code so that we can debug it on our end? Or at the very least attach a screenshot of the entire error that you are facing. That way you can get better responses. Thanks!

サインインしてコメントする。

回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by