M
mah@k-space.org
Guest
HELLO
I want to use the below function to the xilinx system generator MCod
Block, but I faced some errors . how to solve this problem.The cod
executed well in matlab but when I used MCode Block it gave me errors.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
%the function is:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function s=dyn_focusing(RF,Lin)
prec = {xlSigned, 16, 0, xlRound, xlWrap};
persistent m, m=xl_state(zeros(1,len),prec);
s=m;
len=512;
for k=1:len
if Lin(k)<=len
s(k)=RF(1,Lin(k));
if Lin(k)>len
s(k)=0;
end
end
end
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
where RF and Lin are (1X512) array
---------------------------------------
Posted through http://www.FPGARelated.com
I want to use the below function to the xilinx system generator MCod
Block, but I faced some errors . how to solve this problem.The cod
executed well in matlab but when I used MCode Block it gave me errors.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
%the function is:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function s=dyn_focusing(RF,Lin)
prec = {xlSigned, 16, 0, xlRound, xlWrap};
persistent m, m=xl_state(zeros(1,len),prec);
s=m;
len=512;
for k=1:len
if Lin(k)<=len
s(k)=RF(1,Lin(k));
if Lin(k)>len
s(k)=0;
end
end
end
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
where RF and Lin are (1X512) array
---------------------------------------
Posted through http://www.FPGARelated.com