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!