How to import data to produce velocity image data

1 visualización (últimos 30 días)
James Adams
James Adams el 23 de Feb. de 2020
Comentada: Richard Smith el 9 de Feb. de 2022
Attached to this post is the data file, and I need help achieving these objectives:
  • Import SRAS_freq.txt and produce a velocity image of the data.
  • You will need to separate the x and y and frequency information from the loaded array.
  • The x and y axis spacing is different so the image is not square even though there are 200x200 data points, you should take this into account when creating the images.
  • The Acoustic wavelength used for the scan was 24 microns.
I am unaware on how to start this and possible technqiues to use. How would I approach this? all possible avenues are welcome.
Many Thanks to all
  7 comentarios
James Adams
James Adams el 16 de Mzo. de 2020
Editada: James Adams el 17 de Mzo. de 2020
Hey,
I haven’t found the answer to this. Do you know how to do it?
Regards
James
Ratty419
Ratty419 el 5 de Feb. de 2022
Hello James, were you able to fix this? Can I see your final output?

Iniciar sesión para comentar.

Respuestas (1)

Image Analyst
Image Analyst el 5 de Feb. de 2022
Try this:
D = load('SRAS_freq.txt');
x = D(:, 1);
y = D(:, 2);
xData = [min(x(:)), max(x(:))]
yData = [min(y(:)), max(y(:))]
Frequency = reshape(D(:,3), 200, []);
imshow(Frequency, [], 'XData', xData, 'YData', yData);
axis('on', 'image')
impixelinfo;
  5 comentarios
Ratty419
Ratty419 el 8 de Feb. de 2022
What I mean is that both images have patched spots form -40 to -5 on along the x-axis..... Is it possible to remove these patches to ensure a uniform image along this stretch? Thanks.
Richard Smith
Richard Smith el 9 de Feb. de 2022
If you bring your code to class and ask for assitance, you wont need to find solutions online.
Remember all code will go through turnitin to check it is your own work!

Iniciar sesión para comentar.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by