touchstone file could not be processed in matlab
Show older comments
i tried to import the s4p file into matlab as shown in the code bellow, i get the following error.
Where did i go wrong?
Thanks.
obj = SParameterChannel('FileName','RDL1_PCB.s4p',...
'PortOrder', [1 2 3 4],
...
'MaxNumberOfPoles', 1000,...
'ErrorTolerance', -40,...
'SampleInterval', 6.25e-12,...
'StopTime', 100e-09,...
'TxAmplitude', 1.0,...
'TxRiseTime', 40e-12,...
'TxRTFactor', 0.6);
plotRational(obj)
Unable to resolve the name rf.file.touchstone.Data.
Error in rf.internal.netparams.AllParameters/readRFFile
Error in rf.internal.netparams.AllParameters
Error in rf.internal.netparams.ScatteringParameters
Error in sparameters (line 80)
obj = obj@rf.internal.netparams.ScatteringParameters(varargin{:});
Error in SParameterChannel/validateSparameter (line 459)
sobj = sparameters(obj.FileName);
Error in SParameterChannel/calculateImpulse (line 488)
validateSparameter(obj)
Error in SParameterChannel/get.f (line 402)
calculateImpulse(obj);
Error in SParameterChannel/plotRational (line 428)
freqsforresp = linspace(0,max(obj.f)*2,length(obj.f))';
Accepted Answer
More Answers (0)
Categories
Find more on PHY Components in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!