How to pick the values from individual grids ?
이전 댓글 표시
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
KSSV
2020년 9월 25일
How different is your question from the previous asked question?
aa
2020년 9월 25일
KSSV
2020년 9월 25일
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
2020년 9월 25일
Turlough Hughes
2020년 9월 25일
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
2020년 9월 25일
Walter Roberson
2020년 9월 25일
The different columns would have to have different lengths. How would you like that to be dealt with?
aa
2020년 9월 25일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!