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

1 Ansicht (letzte 30 Tage)
Ricardo Gutierrez
Ricardo Gutierrez am 22 Feb. 2018
Beantwortet: BhaTTa am 18 Okt. 2024
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.

Antworten (1)

BhaTTa
BhaTTa am 18 Okt. 2024
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.

Kategorien

Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by