How can I merge the sine wave?
there are space (200, 200, 20), and sensor that move (100, 1~200, 20).
I want to scan topographic features with sensor.
I know the distance from each sensor’s location to the row coordinates of the sensor and the terrain, and the round-trip time via the speed of sound underwater (1500 m/s).
At this point, I want to scan the terrain by shooting a sine wave from each sensor’s position toward a point.
I can get each sine wave, but I can’t seem to get it to sum over rows, so I ask this question.
Below is the code I currently have written, but I think it’s wrong
Fs = 10000; % sampling F
time_step = 1 / Fs;
max_time = max(L_values(:));%left side time value
t = 0:time_step:max_time;
combined_pulse_data = zeros(gridSize, length(t));
% generate sine wave and combine
for i = 1:100
for j = 1:gridSize
pulse_time = L_values(i, j);
if pulse_time > 0
pulse_index = round(pulse_time / time_step);
if pulse_index > 0 && pulse_index <= length(t)
combined_pulse_data(i, pulse_index:end) = combined_pulse_data(i, pulse_index:end) +
sin(2 * pi * 1000 * t(1:end-pulse_index+1));
end
end
end
endthere are space (200, 200, 20), and sensor that move (100, 1~200, 20).
I want to scan topographic features with sensor.
I know the distance from each sensor’s location to the row coordinates of the sensor and the terrain, and the round-trip time via the speed of sound underwater (1500 m/s).
At this point, I want to scan the terrain by shooting a sine wave from each sensor’s position toward a point.
I can get each sine wave, but I can’t seem to get it to sum over rows, so I ask this question.
Below is the code I currently have written, but I think it’s wrong
Fs = 10000; % sampling F
time_step = 1 / Fs;
max_time = max(L_values(:));%left side time value
t = 0:time_step:max_time;
combined_pulse_data = zeros(gridSize, length(t));
% generate sine wave and combine
for i = 1:100
for j = 1:gridSize
pulse_time = L_values(i, j);
if pulse_time > 0
pulse_index = round(pulse_time / time_step);
if pulse_index > 0 && pulse_index <= length(t)
combined_pulse_data(i, pulse_index:end) = combined_pulse_data(i, pulse_index:end) +
sin(2 * pi * 1000 * t(1:end-pulse_index+1));
end
end
end
end there are space (200, 200, 20), and sensor that move (100, 1~200, 20).
I want to scan topographic features with sensor.
I know the distance from each sensor’s location to the row coordinates of the sensor and the terrain, and the round-trip time via the speed of sound underwater (1500 m/s).
At this point, I want to scan the terrain by shooting a sine wave from each sensor’s position toward a point.
I can get each sine wave, but I can’t seem to get it to sum over rows, so I ask this question.
Below is the code I currently have written, but I think it’s wrong
Fs = 10000; % sampling F
time_step = 1 / Fs;
max_time = max(L_values(:));%left side time value
t = 0:time_step:max_time;
combined_pulse_data = zeros(gridSize, length(t));
% generate sine wave and combine
for i = 1:100
for j = 1:gridSize
pulse_time = L_values(i, j);
if pulse_time > 0
pulse_index = round(pulse_time / time_step);
if pulse_index > 0 && pulse_index <= length(t)
combined_pulse_data(i, pulse_index:end) = combined_pulse_data(i, pulse_index:end) +
sin(2 * pi * 1000 * t(1:end-pulse_index+1));
end
end
end
end sine, sine wave, sum signal, combine signal MATLAB Answers — New Questions