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!