Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Move average in the graph
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Good Day all,
I have a 44568*2 and 437999*2 matrices, which I want to taking the average for each to calculate the residuals. Is there any sample command to do that.
your help is highly approciated
thank you
0 Kommentare
Antworten (1)
Adam
am 25 Jun. 2015
If you simply want the average of all the values without any consideration of matrix structure then simply
mean( A(:) )
works for any numeric variable A. If that isn't what you want you need to be more specific.
5 Kommentare
Image Analyst
am 27 Jun. 2015
lina, what do the numbers represent??? For example is each row a point, and the first column are the x values and the second column are the y values? It's that kind of explicit explanation that you left out and Adam was (and still is) wondering about. I really think you need to read these guidelines.
OK, then we notice that the two arrays have different number of points, so you can't simply subtract them because they don't match up point for point. So, do you need to interpolate them so that you get a common set of x coordinates so that you can then subtract the y values to get differences?
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!