function instead of grid data without Interpolation
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I want to make Matrix with 3 vector. but griddata make wrong result, does any one know the other function for making matrix?
2 commentaires
madhan ravi
le 3 Fév 2019
Modifié(e) : madhan ravi
le 3 Fév 2019
Could you upload the code so that the pattern is observed and an alternative solution can be given?
Réponses (1)
KSSV
le 4 Fév 2019
x=[1,8,2,8];
y=[2,3,0,9];
z=[80,30,30,40];
[X,Y]=meshgrid(x,y) ;
F = scatteredInterpolant(x',y',z') ;
Z = F(X,Y) ;
u=trapz(x,Z,2)
I=trapz(y,u)
4 commentaires
madhan ravi
le 4 Fév 2019
Modifié(e) : madhan ravi
le 4 Fév 2019
It was confusing because OP mentioned "function instead of grid data without Interpolation" so I thought there is some function which doesn't interpolate data similar to griddata() or scatteredInterpolant()?
Voir également
Catégories
En savoir plus sur Interpolation dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!