I want to divide every column element . for example 1nd element with 2nd then 2nd with 3rd and so on
조회 수: 1 (최근 30일)
이전 댓글 표시
I want to find the commulative division of a coulumn. For example, divide 1st column element with 2nd element and then 2nd with 3rd. Can anybody help me.
댓글 수: 0
채택된 답변
KALYAN ACHARJYA
2022년 1월 26일
편집: KALYAN ACHARJYA
2022년 1월 26일
#data is a column/row vector
data1=circshift(data,[0 -1]);
temp=data./data1;
#Ignoring last element, as devide present by next one
result=temp(1:end-1)
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!