Function without RF Toolbox

조회 수: 8 (최근 30일)
Askar Ali
Askar Ali 2020년 2월 7일
답변: Walter Roberson 2020년 2월 7일
Dear All,
I got a code from online for VNA calibration but unfortunately I dont have Rf toolbox in MATLAB but in the code , there exists a rfdata command.Can anyone pls tell me how to write a function without calling rfdata command?
Attached the code with rfdata object.
for i=1:NOF
S_obj=read(rfdata.data, [DUTDir,filelist{i}]);
DUT=S_obj.S_Parameters(:,:,1:handles.DROP:end);
Freq=S_obj.Freq(1:handles.DROP:end);
ns=numel(Freq);
for i=1:NOL
SL_obj=read(rfdata.data, [handles.CalKitDir,LineFile{i}]);
SL{i}=SL_obj.S_Parameters(:,:,1:handles.DROP:end);
if (i==1)
Freq=SL_obj.Freq(1:handles.DROP:end);
end
AppendMsg(handles.DispWinObj,['CalKit ', LineFile{i},' loaded.'])
end
Thanks in advance,
Askar

답변 (1개)

Walter Roberson
Walter Roberson 2020년 2월 7일
The code you are using expects rfdata objects in three different contexts, and calls upon rfdata methods and passes rfdata objects to other functions that expect it to be rfdata. You cannot simply modify one call: you would have to reimplement functionality and rewrite several routines.
The MATLAB license would not permit us to deliberately reimplement the rfdata objects just to avoid paying for the toolbox.
I would recommend that you obtain the rf toolbox that you need to run the code.

카테고리

Help CenterFile Exchange에서 Classical Control Design에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by