i need help creating this function
Show older comments
hello guys i want to create a function that follows this pattern 

and works the same for as many numbers i insert [(x2-x1)/x1]*100
3 Comments
darova
on 22 Apr 2020
Please show your attempts. Show your effort. Show how much you want it
David Hill
on 23 Apr 2020
Look at diff() function.
Johnny Vokos
on 23 Apr 2020
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with MATLAB 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!