please, how can i make the plot on the x axis from 15 to 25 hertz to rest on the x axis. that is to make them start from zero. i have used detrend but, it is not working
Show older comments
Hello can you help with the above question

9 Comments
Cris LaPierre
on 10 Jul 2023
Share your data and the code you have tried. You can paste your code into your post. You can attached your data using the paperclip icon after you save your variable to a mat file.
Matthew Worker
on 10 Jul 2023
Moved: Cris LaPierre
on 10 Jul 2023
Matthew Worker
on 10 Jul 2023
Moved: Cris LaPierre
on 10 Jul 2023
Sandeep Mishra
on 10 Jul 2023
Moved: Cris LaPierre
on 10 Jul 2023
Can you share myFun function?
Matthew Worker
on 17 Jul 2023
Cris LaPierre
on 17 Jul 2023
We need to see how your ode45 syntax to be able to answer that question. The relevant section of the documentation can be found here: https://www.mathworks.com/help/matlab/ref/ode45.html#bu00_4l_sep_shared-tspan
If you specify a vector a timepoints for tspan, ode45 will return solutions at those time points. If that is not close enough, you can use interp1. There is an anwer from 2012 about that: https://www.mathworks.com/matlabcentral/answers/92961-how-do-i-use-a-fixed-step-size-with-ode23-and-ode45-in-matlab
Note - that post mentions the interpolation feature was added in MATLAB 5. We are now on MATLAB 9.
Matthew Worker
on 17 Jul 2023
Cris LaPierre
on 18 Jul 2023
We are several steps removed from the original question. I suggest asking a new question in the forum.
Matthew Worker
on 24 Jul 2023
Accepted Answer
More Answers (0)
Categories
Find more on Vibration Analysis 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!
