フィルターのクリア

Math functions from matlab to python

5 ビュー (過去 30 日間)
Prb
Prb 2019 年 5 月 2 日
Hi is this the right way to trnaslate matlab logarithmic function, sqrt and rounding as shown below in python
Matlab:
Shifts(1) = int16(-(round(log2(sqrt(size(Filters{j},3))*2/16))));
Python:
Shifts(1) = np.int16(-(math.round(math.log2(math.sqrt(len(Filters[j][3])*2/16)))))

回答 (0 件)

カテゴリ

Help Center および File ExchangeCall Python from MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by