How can I get static array instead of dynamic emxArray_real_T
조회 수: 1 (최근 30일)
이전 댓글 표시
hello friends, I faced a problem that I can't use it in MCU.
if true
function [ Mshifted, f] = Func1( m ,ts,df)
fs = 1/ts;
Mshifted = zeros(1,4096);
f = zeros(1,4096);
%t = Time_Vector(-0.2/2,0.001,0.2/2);
[M,m1,df1]=fftseq(m,ts,df);
M=M/fs;
f=[0:df1:df1*(length(m1)-1)]-fs/2;
Mshifted = abs(fftshift(M));
end
end
and result of code generation
if true
void Func1(const double m[4096], double ts, double df, emxArray_real_T *Mshifted,
emxArray_real_T *f)
end
emxArray_real_T include pointer and in MCU ,static array must be used because of fragmentation.How can I get static array as output.Easy to set about input.
댓글 수: 0
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!