필터 지우기
필터 지우기

Creating tables using loops

조회 수: 1 (최근 30일)
Raahul Palanivel Uma
Raahul Palanivel Uma 2016년 10월 10일
댓글: Raahul Palanivel Uma 2016년 10월 10일
I am performing an Interpolation between a set of values (200,190,180,160) and I want to store the results in a single Matrix. I'm have used a for-Loop so that the Interpolation is done between all the values in my Input Array. If I interpolate 9 values between each Input value, I must have a Matrix with 41 values (200,199,198...160) as the end result. But I have 44 values in the Matrix since each time the Loop executes, the Interpolation is carried out between 200 & 190, then 190 & 180 and so on. I want the each column of Interpolation step to be replaced by the first column of the next Interpolation step. If anyone could suggest me a solution, it would be very helpful. I Need to know how to proceed with the incrementation and store the final result in a single Matrix. Thanks in advance Raahul
  댓글 수: 2
KSSV
KSSV 2016년 10월 10일
편집: KSSV 2016년 10월 10일
If the number of rows or columns differ for every interpolation how you expect them to be saved in matrix?
Raahul Palanivel Uma
Raahul Palanivel Uma 2016년 10월 10일
the number of rows and columns are constant during each Interpolation step.

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

답변 (1개)

Pritesh Shah
Pritesh Shah 2016년 10월 10일
In each Interpolation step, A(end)=[];
This should work.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by