How to mesh(peaks)
Información
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Mostrar comentarios más antiguos
% Actual Data
Zh = [40.8,41.1,41.4;40.7,41,41.6;40.7,41.1,41.3]
Zt = [24.6,24.4,24;24.7,24.3,24;24.6,24.1,23.9]
[X,Y] = ndgrid([15,30,45],[15,30,45]);
% Interpolation
Fh = griddedInterpolant(X,Y,Zh,'linear');
[Xnew,Ynew] = ndgrid(0:55,0:55);
Zhnew = Fh(Xnew,Ynew)
Ft = griddedInterpolant(X,Y,Zt,'linear');
Ztnew = Ft(Xnew,Ynew)
mesh(Xnew,Ynew,Zhnew,Ztnew);
How to mesh(peaks) this by preserving the color matrix?
4 comentarios
Walter Roberson
el 24 de Ag. de 2013
Are you referring to the peaks() routine, http://www.mathworks.com/help/matlab/ref/peaks.html ? If not then what does "peaks" refer to here?
Flashbond
el 24 de Ag. de 2013
Walter Roberson
el 24 de Ag. de 2013
I do not understand yet what you want to do. peaks() has a built-in function that it works with, and all you can change with it is the size of the sampling array or the set of points that the built-in function is sampled at. Is that what you want to do, use that arbitrary built-in function in connection with your own data? Or are you wanting to locate the peaks of your data? peaks() does not do that; there is a routine in the Signal Processing Toolbox, findpeaks() that can be useful for that.
Flashbond
el 24 de Ag. de 2013
Respuestas (0)
La pregunta está cerrada.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!