Effacer les filtres
Effacer les filtres

How to read touchstone files on MATLAB ?

150 vues (au cours des 30 derniers jours)
Nakka Shankar
Nakka Shankar le 20 Mar 2023
Commenté : Nakka Shankar le 21 Mar 2023
Hello,
i recently started using Matlab online instead of the desktop version and i cant import Touchstone files like i used to.
i checked that RF toolbox is enabled on the Online version.
the error i get from using the command ( sparameters('S11.s1P') ) is as follow:
Error using rf.file.touchstone.Data/read
Unable to open file S11.s1P.
Error in 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 82)
obj = obj@rf.internal.netparams.ScatteringParameters(varargin{:});
Error in Untitled (line 10)
BCC=sparameters('S11.s1P');
  1 commentaire
Rik
Rik le 20 Mar 2023
Does that file exist in the current directory of Matlab Online? What does this return?
exist('S11.s1P')
ans = 0
dir(fullfile(pwd,'**','S11.s1P'))
No matches for pattern '/users/mss.system.Dbhgb9/**/S11.s1P'.

Connectez-vous pour commenter.

Réponse acceptée

Manikanta Aditya
Manikanta Aditya le 21 Mar 2023
Hi Shankar,
As per my understanding, you are trying to import Touchstone file in MATLAB Online. It appears that you have enabled all necessary toolboxes and used the correct syntax.
The issue likely lies with the filename you have passed to sparameters function. The filename parameter for sparameters command is a character vector and thus, case sensitive. Also, filename should be the name of a file in the current folder or the full path to a file. Otherwise, the following command works given RF toolbox is enabled.
S = sparameters('default.s1p');
For further reference, please check this link to know more about sparameters:
I hope this resolves the issue you are facing.
  1 commentaire
Nakka Shankar
Nakka Shankar le 21 Mar 2023
Thanks for your help.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Call Web Services from MATLAB Using HTTP 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