Enter output data, at the entrance of the same process.
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!