필터 지우기
필터 지우기

How can I get static array instead of dynamic emxArray_real_T

조회 수: 1 (최근 30일)
Emrah Duatepe
Emrah Duatepe 2018년 7월 17일
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