Filter löschen
Filter löschen

hi, i am trying to model in simulink where i am trying to give input from the workspace . i do receive the error in port width or dimensions. my input is about [1 9601] exactly i receive error in delay block. can anyone please help me out with this?

1 Ansicht (letzte 30 Tage)
I am trying to simulate in Simulink which supports HDL coder where I am facing the error in port width or dimensions for the input given. buffer blocks are not supported for HDL coding is there any alternative method in Simulink which supports it. i have attached the image of the Simulink project.
  6 Kommentare
Bharath Venkataraman
Bharath Venkataraman am 5 Nov. 2018
The buffer block is not supported because you would never send an entire frame into HDL in one clock. If you send the output of the buffer block to the "Programmable FIR via Registers" subsystem, that subsystem generates HDL.
srinivasan ravi
srinivasan ravi am 6 Nov. 2018
hello sir, i am trying to find the skewness of the output of the fft data ie( i am trying to give abs(fft data) into a matlab function but i ma getting an error that #Inferred size for data 'result_k1' is empty, which is invalid for a Simulink signal# i have attached my code with this can you please guide me with this. function result_k1= tryf(u) %#codegen
x=[]; x=[x;u]; window_width=50; result_k1=[]; for j=1:100 window_m1=x(:,(j:window_width+(j-1))); window_m11=window_m1(:); result_k1(j)=skewness(window_m11);
end

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by