Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

# this is part of the program that I am working on and I have a problem when I run the program ... can anyone tell me a good solution for my program?

1 visualización (últimos 30 días)
No Freed el 20 de Nov. de 2019
dt_cal = pan_ray_bag *( 1 ./ v_lap') ;
for l = 1 : length ( sou_y )
d(l,:) = dt_cal((length(rec_y)*(l-l))+l : length(rec_y) * l,l ) ;
end
a = max (d);
b = min (d);
dt_noise = rand(1)*(a-b)*0.21;
t_obs = d+dt_noise;
%%% membuat kecepatan awal model linier
vsem = zeros (length(sou_y), length(rec_y) );
for i =1 :length(sou_y)
for j = 1 :length( rec_y)
vsem(i,j) = pan_ray_total(i,j) ./ t_obs (i,j);
end
end
when running....i have a problem like that
Attempted to access t_obs(2,1); index out of bounds because size(t_obs)=[1,3].
Error in inversi_linier (line 14)
vsem(i,j)= pan_ray_total(i,j)./t_obs(i,j);
Error in SA (line 18)
[ v0_linier,dv_linier,v_linier ] = inversi_linier(d,n_ray,sou_y,rec_y,pan_ray_total,G);
##### 4 comentariosMostrar 2 comentarios más antiguosOcultar 2 comentarios más antiguos
No Freed el 20 de Nov. de 2019
sorry sir... i"m new in matlab
No Freed el 20 de Nov. de 2019
and this the input argument
x_hole_1 = 0; x_hole_2 = 100; y_hole = 50;
y_batas = [20 30 50];
v_lap = [1000 1200 1500];
sou_y = [5 10];
rec_y = [5 25 40];
n_ray = length(sou_y) * length(rec_y);