语法问题,matlab 中 A(a:b:c)是什么意思。

7 ビュー (過去 30 日間)
ppwdeax
ppwdeax 2023 年 5 月 21 日
回答済み: cmndvnx 2023 年 5 月 21 日
matlab 中 A(a:b:c)是什么意思
y1= -0.002:0.0004:0.002
y0=( -0.036:0.001:0.036)'*ones(1,73);
z0=ones(73,1)*(-0.036:0.001:0.036);
y1,y0,z0 分别是什么, 语句是什么意思

採用された回答

cmndvnx
cmndvnx 2023 年 5 月 21 日
y1= -0.002:0.0004:0.002 表示 y1 是一个向量,起始值是 -0.002,元素的增量是 0.0004,最后一个元素是 0.002
A(a:b:c) 就是取出 A 中索引值为 [a, a+b, a+2b, a+3b, ...., c] 的元素,最后一个值 c 是否能取到,取决于 c - a 是否正好是 b的整数倍

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange初等数学 についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!