フィルターのクリア

Create a range of values ​​of the desired length

7 ビュー (過去 30 日間)
Lev Mihailov
Lev Mihailov 2022 年 6 月 15 日
回答済み: KSSV 2022 年 6 月 15 日
There is a range of values ​​from 16 to 42, I need to get 8 values ​​in an equal interval. Is there a function in matlab for this?
x=42-16;
y=x/8;
z=16:y:42;
Thanks in advance

採用された回答

KSSV
KSSV 2022 年 6 月 15 日
iwant = linspace(16,42,8)
iwant = 1×8
16.0000 19.7143 23.4286 27.1429 30.8571 34.5714 38.2857 42.0000

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by