how to move the graph vertically downward to zero?
Afficher commentaires plus anciens
Hi all,
In the attached graph there are 2 types of data the blue one is observed those are I want calculate the mean and shifting the graph to zero (over the red one). how can I do those calculating and shifting?
thank you in advance
Réponses (1)
Star Strider
le 5 Juil 2015
Take the mean of the blue series and subtract it:
new_blue = blue - mean(blue(:));
Without your data I cannot get any more specific. The ‘blue’ here are the dependent variable data. Your independent variable (for example x) remains unchanged.
4 commentaires
Image Analyst
le 5 Juil 2015
Doesn't do us much good without giving us obs also.
lina
le 5 Juil 2015
Image Analyst
le 5 Juil 2015
lina, come on. This is like a comedy of errors. Do you think we'll now be able to run this without giving us the jeddah.csv file?
Catégories
En savoir plus sur Annotations 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!