what does 1 indicate in f=100:1:400?

1 回表示 (過去 30 日間)
monali
monali 2012 年 10 月 7 日
my program is f=100:1:400 X=2*3.14*f Z=r+j*X plot(f,Z)
  3 件のコメント
monali
monali 2012 年 10 月 7 日
it simply means that the middle value is just increment only, right?
Matt J
Matt J 2012 年 10 月 7 日
yes.

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

採用された回答

the cyclist
the cyclist 2012 年 10 月 7 日
編集済み: the cyclist 2012 年 10 月 7 日
The statement
>> f = 100:1:400
tells MATLAB to create a vector of values from 100 to 400, with a spacing of 1. Similarly,
>> f = 100:100:400
would result in
>> f = [100 200 300 400]
You can read a bit more by typing
>> help :

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by