How to get frequencies of a s parameter object in python

1 回表示 (過去 30 日間)
zhang gaolu
zhang gaolu 2022 年 4 月 24 日
回答済み: Al Danial 2022 年 4 月 24 日
sp = eng.sparameters('2000um_no_ground_connect.s2p')
eng.workspace['sp'] = sp
freq = sp.Frequencies
this is my simple code using matlab engine in python , i wangt to get the property 'Frequencies' of sp object, but the prompt of pycharm output the following errors 'AttributeError: 'matlab.object' object has no attribute 'Frequencies''
but this code works well in matlab prompt, so how can i get Frequencies of a sparameter object in python, thank you!

回答 (1 件)

Al Danial
Al Danial 2022 年 4 月 24 日
Let's see what is in your variable sp. Make a small version of it, save it to a .mat file, and attach the .mat file here.

カテゴリ

Help Center および File ExchangePython Client Programming についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by