matlab - How to use interp2 here -


i have matrix, 37x13, has 4 "holes" poked it, i've been asked use interp2 refill these values

    a=load ('archive');      a(10,6)=0;     a(10,7)=0;     a(11,6)=0;     a(11,7)=0; 

i've used interp2 before way i'm afraid not work here, because matrix has more 1 row missing

    years = 1950:10:1990;     service = 10:10:30;     wage =   [150.697 199.592 187.625%10       179.323 195.072 250.287       203.212 179.092 322.767       226.505 153.706 426.730       249.633 120.281 598.243];       %it possible interpolate find wage earned in 1975 employee        %with 15 years' service:      w=interp2(service,years,wage,15,1975); 

i need guidance on how declare meshgrid command, syntax of interp2 troubles me most, interp1 not trouble learn in comparison. in advance


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -