Enter output data, at the entrance of the same process.

조회 수: 1 (최근 30일)
Ricardo Gutierrez
Ricardo Gutierrez 2018년 2월 22일
답변: BhaTTa 2024년 10월 18일
Good Morning.
I await your help with much gratitude.
Through certain operations I get a matrix of 10 X 20 I call that matrix "arrmat"
Subsequently the values of "arrmat" I pass through several operations and I get another matrix of 10 x 20 and that matrix I call "rxx"
How do I enter the values obtained in "rxx" to the matrix "arrmat" and so on, cyclically?
Hoping you can help me. First of all, Thanks.

답변 (1개)

BhaTTa
BhaTTa 2024년 10월 18일
Hey @Ricardo Gutierrez, I assume that for each cycle you will calculate value of 'rxx' from 'arrmat' and then update the values of 'arrmat' from 'rxx', below i have provided high level implemenation of the same, Please take it as a refernce and update your code accordingly:
% Assuming arrmat is already defined as 10x20 matrices
% Initialize a counter to keep track of the cycles
cycleCount = 0;
% Set the maximum number of cycles you want to perform
maxCycles = 10; % Adjust this value as needed
while cycleCount < maxCycles
% Perform your operations to obtain rxx from arrmat
% Update arrmat with the values from rxx
arrmat = rxx;
% Increment the cycle count
cycleCount = cycleCount + 1;
end
Hope it helps.

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by