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 CenterFile Exchange에서 Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by