imagesc from 1D array with coordinates and values

25 views (last 30 days)
Abhishek Saini
Abhishek Saini on 4 May 2020
Commented: darova on 4 May 2020
Hi,
I have 3 vectors and I want to plot a 2D image using mesh/ imagesc/surf command. But How can I convert 1D array to 2D array with accurate coordinate points?
Let's assume, I have
x = [1, 2, 1.4, 2.6,8.9];
y = [8, 5, 6, 2, 8.4,3.5];
amplitude = [0.3, 0.5, 0.9, 1];
Attach is the data. where x = xx, y=yy and amplitude = C;
Thanks

Answers (1)

darova
darova on 4 May 2020
  2 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!