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 个)

类别

Help CenterFile Exchange 中查找有关 Write C Functions Callable from MATLAB (MEX Files) 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by