Effacer les filtres
Effacer les filtres

How can I get static array instead of dynamic emxArray_real_T

1 vue (au cours des 30 derniers jours)
Emrah Duatepe
Emrah Duatepe le 17 Juil 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.

Réponses (0)

Catégories

En savoir plus sur Write C Functions Callable from MATLAB (MEX Files) dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by