Comparing elements of rows (in cell) and columns (in array) and plot results as 2D mash/grid
Mostra commenti meno recenti
Hello,
I have a cell A (attached) where the first column is the instrument number and the other two columns are x and y coordinates of each instrument. At the same time, I have an array B (attached) which contains time series of measurements for each instrument, and the first row is the instrument number. Note that I have more columns in B than rows in A (i.e., more instruments in B than in A).
- I would like to extract only the columns in B that correspond to the instrument numbers in A.
- The results should be presented as the time averages on 2D grid. I have coordinates of each instrument in A.
Please can you help me with this? I assume that the task (1) can be obtained using accumarray function, but to be honest I find that function very confusing. Not sure how to use it correctly.
Thank you,
DjR
2 Commenti
Bob Thompson
il 5 Feb 2018
What do the coordinates of the instruments matter? Perhaps I am just not understanding what you are trying to plot.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Grid Lines, Tick Values, and Labels in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!