how can i define an array with different increments?

조회 수: 6 (최근 30일)
Arman Kam
Arman Kam 2012년 7월 26일
Hi, I want to define an array which has different increments but has a logical order partially, like:
t=[0.01 0.02 0.03 0.04 0.05 0.1 0.15 0.2 0.25 0.3 0.4 0.6 0.7 0.8]
Thanks for your help.

답변 (2개)

Conrad
Conrad 2012년 7월 26일
Something like this
t = [ 0:0.1:1,... % increment of 0.1
1.2:0.2:4,... % increment of 0.2
4.3:0.3:4.9]; % increment of 0.3
Conrad

Andrei Bobrov
Andrei Bobrov 2012년 7월 26일
편집: Andrei Bobrov 2012년 7월 26일
diff(t)
ADD
dist(t)
  댓글 수: 2
Arman Kam
Arman Kam 2012년 7월 26일
i want to define an array with thousands of valuses dear Andrei it's not like i have an array and i want to determine the distances between the values of the array!
Andrei Bobrov
Andrei Bobrov 2012년 7월 26일
please see ADD in my answer

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

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by