필터 지우기
필터 지우기

vector with spacing (predefined)

조회 수: 2 (최근 30일)
Venkata Brahma Teja Haridasu
Venkata Brahma Teja Haridasu 2021년 4월 18일

채택된 답변

David Fletcher
David Fletcher 2021년 4월 18일
Maybe I am missing something, but this?
initial_value=-25;
step_size=5;
final_value=15;
vector=initial_value:step_size:final_value

추가 답변 (1개)

the cyclist
the cyclist 2021년 4월 18일
Does
v = -25:5:15
v = 1×9
-25 -20 -15 -10 -5 0 5 10 15
do what you want? Or maybe you meant
initial_value = -25;
step_size = 5;
final_value = 15;
v = initial_value : step_size : final_value
v = 1×9
-25 -20 -15 -10 -5 0 5 10 15
If neither of those is what you meant, then I don't understand.
  댓글 수: 1
the cyclist
the cyclist 2021년 4월 18일
Also, you might learn a lot from the MATLAB Onramp.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by