How to pick the values from individual grids ?
Mostra commenti meno recenti
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 Commenti
KSSV
il 25 Set 2020
How different is your question from the previous asked question?
aa
il 25 Set 2020
KSSV
il 25 Set 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
il 25 Set 2020
Turlough Hughes
il 25 Set 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
il 25 Set 2020
Walter Roberson
il 25 Set 2020
The different columns would have to have different lengths. How would you like that to be dealt with?
aa
il 25 Set 2020
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Data Import from MATLAB 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!