vector with spacing (predefined)
조회 수: 2 (최근 30일)
이전 댓글 표시
채택된 답변
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
댓글 수: 0
추가 답변 (1개)
the cyclist
2021년 4월 18일
Does
v = -25:5: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
If neither of those is what you meant, then I don't understand.
댓글 수: 1
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!