フィルターのクリア

How to read Touchstone files on MATLAB Online

13 ビュー (過去 30 日間)
Zied
Zied 2023 年 2 月 1 日
コメント済み: Zied 2023 年 2 月 15 日
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');
Thanks for the help

採用された回答

Jinal
Jinal 2023 年 2 月 14 日
Hey Zied,
I understand that you are trying to import a 1-port 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. I was getting the same errors when either the filename was incorrect, or the full path wasn’t passed. Otherwise, the following command works given RF toolbox is enabled.
S = sparameters('default.s1p');
You can refer to the sparameters documentation for more information.
Hope this helps.
  1 件のコメント
Zied
Zied 2023 年 2 月 15 日
Thanks the problem was solved ,
The default exported files were .s1P (uppercase) and Matlab online can only read the .s1p (lowercase).
Thanks again for your help.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDiscrete Fourier and Cosine Transforms についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by