How to pick the values from individual grids ?
Ältere Kommentare anzeigen
Hi everyone,
May someone help me here ,,
My data set is consists of three paramateres ... x, y and z ..
the x, y paramteres are grided at an interval of 0.005, This give me a matrix of 16 by 16 grid ..
In each grid z-values are placed. Now I want to calculate the the z vales in each grid ...
The figure show the pictorial representation of data in each grid ... My task is to generate an output file with 256 columns and each colum give us the values of point placed in each grid ..
Thank you
clear all
%clc
a=xlsread('data');
x=a(:,1);% x parameter
y=a(:,2); %y parameter
z=a(:,3); % z parameter
%Grid scale
x2=-130.04:0.005:-129.96;
y2=45.91:0.005:45.99;

8 Kommentare
KSSV
am 25 Sep. 2020
How different is your question from the previous asked question?
aa
am 25 Sep. 2020
KSSV
am 25 Sep. 2020
Dear friend....the old question's answer already shows you how to pick the data. You can plot the data only after picking the points.
aa
am 25 Sep. 2020
Turlough Hughes
am 25 Sep. 2020
You can store the data in a cell array, so from the previous question that would just be
zStore{i,j} = z(idx); % place in the inner loop after idx is determined.
assuming you want to store z values only.
aa
am 25 Sep. 2020
Walter Roberson
am 25 Sep. 2020
The different columns would have to have different lengths. How would you like that to be dealt with?
aa
am 25 Sep. 2020
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Data Import from MATLAB finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!