Finding the length of square function
Show older comments
Hello, I'm using the square function. I want to find the length of it based on my limits. How can I do that since the square root is discontinues. Regards, Dimo
4 Comments
John D'Errico
on 7 Dec 2020
Be far more clear about what you are trying to do. You want to find the length of a function? Are you asking to compute the arc length? Next, of what function? Be explicit, else we will spend time showing you how to solve the wrong problem.
Dimo Iordanov
on 8 Dec 2020
Edited: Dimo Iordanov
on 8 Dec 2020
Rik
on 8 Dec 2020
Did you try to google how to calculate the arc length of a function in Matlab?
Dimo Iordanov
on 8 Dec 2020
Accepted Answer
More Answers (1)
Rafael Hernandez-Walls
on 8 Dec 2020
t2=t(find(diff(X)>0));
t1=t(find(diff(X)<0));
long_time=t2(2)-t1(2)
Categories
Find more on Creating and Concatenating Matrices 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!