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.

采纳的回答

KALYAN ACHARJYA
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 CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

标签

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by