How to import data to produce velocity image data

1 view (last 30 days)
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 Comments
James Adams
James Adams on 16 Mar 2020
Edited: James Adams on 17 Mar 2020
Hey,
I haven’t found the answer to this. Do you know how to do it?
Regards
James
Ratty419
Ratty419 on 5 Feb 2022
Hello James, were you able to fix this? Can I see your final output?

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 5 Feb 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 Comments
Ratty419
Ratty419 on 8 Feb 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 on 9 Feb 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!

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!