How to compute relative change from starting to ending ?
10 views (last 30 days)
Show older comments
relative change
0 Comments
Accepted Answer
More Answers (1)
Star Strider
on 20 Oct 2014
rel_change = (x(end)-x(1))/x(1);
4 Comments
Jan
on 21 Oct 2014
Edited: Jan
on 21 Oct 2014
Again: Please clarify the question by editing the original question. This is the place where readers expect and find all information. Comments disappear soon in the standard display, when further comments are posted.
Please do not use a random input and no output to define the mathematical meaning of your question. What do you expect for:
x = [1,3,-2,10]
? And please add this to the question above, not as an comment. Thanks.
See Also
Categories
Find more on Graph and Network Algorithms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!