필터 지우기
필터 지우기

Using 2d INTERPOLATION

조회 수: 1 (최근 30일)
Jeanette
Jeanette 2011년 7월 18일
답변: Mritula C 2018년 6월 21일
Hi, I'm trying to interpolate a two-D table. It should be straight forward, but it won't run:
%[filename pathname]=uigetfile('*.prn','Select a Data File"'); % inputfile=strcat([pathname filename]); % [sig] = textread(inputfile,'%f ');
for i=1:25937;
sig(i)=i;
end;
sizeRow = floor(size(sig)/701);
clear tS;
for j=1:37
[tS(1,j)] = sig(j);
end
for i = 2:701
for j=1:37
[tS(i,j)] = sig(j+(i-1)*sizeRow(1));
end;
end;
% Interpolate
tSSize=size(tS);
RowSize = 1:tSSize(1);
ColumnSize = 0:2.5:90;
InterpTS = interp2(ColumnSize,RowSize,...
tSSize,4.5,66)
  댓글 수: 1
Fangjun Jiang
Fangjun Jiang 2011년 7월 18일
first loop can be done by sig=1:25937
second loop can be done by ts=sig(1:37)

댓글을 달려면 로그인하십시오.

답변 (2개)

Fangjun Jiang
Fangjun Jiang 2011년 7월 18일
You probably mean this at your last line.
InterpTS = interp2(ColumnSize,RowSize,...
tS,4.5,66)

Mritula C
Mritula C 2018년 6월 21일
What are 4.5 and 66 values?

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by