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

3 次查看(过去 30 天)
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?

请先登录,再进行评论。

采纳的回答

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 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by