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
Afficher commentaires plus anciens
Hello can you help with the above question

9 commentaires
Cris LaPierre
le 10 Juil 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
le 10 Juil 2023
Déplacé(e) : Cris LaPierre
le 10 Juil 2023
Matthew Worker
le 10 Juil 2023
Déplacé(e) : Cris LaPierre
le 10 Juil 2023
Sandeep Mishra
le 10 Juil 2023
Déplacé(e) : Cris LaPierre
le 10 Juil 2023
Can you share myFun function?
Matthew Worker
le 17 Juil 2023
Cris LaPierre
le 17 Juil 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
le 17 Juil 2023
Cris LaPierre
le 18 Juil 2023
We are several steps removed from the original question. I suggest asking a new question in the forum.
Matthew Worker
le 24 Juil 2023
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Vibration Analysis dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

