How to pick the values from individual grids ?
Mostrar comentarios más antiguos
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 comentarios
KSSV
el 25 de Sept. de 2020
How different is your question from the previous asked question?
aa
el 25 de Sept. de 2020
KSSV
el 25 de Sept. de 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
el 25 de Sept. de 2020
Turlough Hughes
el 25 de Sept. de 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
el 25 de Sept. de 2020
Walter Roberson
el 25 de Sept. de 2020
The different columns would have to have different lengths. How would you like that to be dealt with?
aa
el 25 de Sept. de 2020
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Data Import from MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!