Filter löschen
Filter löschen

How can I get static array instead of dynamic emxArray_real_T

1 Ansicht (letzte 30 Tage)
Emrah Duatepe
Emrah Duatepe am 17 Jul. 2018
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.

Antworten (0)

Kategorien

Mehr zu Write C Functions Callable from MATLAB (MEX Files) finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by