Interp2 problem with brightness
1 次查看(过去 30 天)
显示 更早的评论
Thia is the code that we use:
[xmg1,ymg1]=meshgrid(-10:0.8:10,-10:0.8:10);
[xmg2,ymg2]=meshgrid(-2:0.2:2,-2:0.2:2);
txi=-10:0.05:10;
tyi=-10:0.05:10;
[xr,yr]=meshgrid(txi,tyi);
z1=(cos(xmg1)+sin(ymg1))*xmg1*ymg1; %ordinate della funzione
figure(1)
lt1=interp2(xmg1,ymg1,z1,xr,yr,'linear');
surf(xr,yr,lt1),title('Interpolazione lineare 2D')
2 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!