how to move the graph vertically downward to zero?
4 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
Star Strider
2015-7-5
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 个评论
Image Analyst
2015-7-5
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?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Bar Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!