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

1 Ansicht (letzte 30 Tage)
monali
monali am 7 Okt. 2012
my program is f=100:1:400 X=2*3.14*f Z=r+j*X plot(f,Z)
  3 Kommentare
monali
monali am 7 Okt. 2012
it simply means that the middle value is just increment only, right?
Matt J
Matt J am 7 Okt. 2012
yes.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

the cyclist
the cyclist am 7 Okt. 2012
Bearbeitet: the cyclist am 7 Okt. 2012
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 :

Weitere Antworten (0)

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by