フィルターのクリア

Save values from a row of an matrix in each iteration.

1 回表示 (過去 30 日間)
Ricardo Gutierrez
Ricardo Gutierrez 2019 年 8 月 22 日
Hello !!!!
Have a good day.
I have the following code(pseudocode).
___________________________________________________________________________________
Ccl = 21;
gen = 1;
   for wl = 1: gen
      for kk = 1: Ccl
_______________-
Operations where
The values of the variables are obtained
dx1, dy1, dx2, dy12, dx3, dy13, dx12, dy2, dx21, SLL
in a matrix of 21 X 10 when Ccl = 21; and gen = 1;
_______________-
     end
BCG = horzcat (dx1 (:, end), dy1 (:, end), dx2 (:, end), dy12 (:, end), dx3 (:, end), dy13 (:, end), dx12 (:, end), dy2 (:, end), dx21 (:, end), SLL (:, end));
[minimum, row] = min (BCG (:, end));
generate = BCG (row, 1: end-1);
end
_____________________________________________________________________
When__ gen = 3 __ I only see the last values that make up the BCG matrix (21 X 10), the last values of: “minimum”, ‘row” and “generate”.
I want to know the values that make up the matrix and the values of the variables: "minimum", "row" and "generate" of each iteration
Regards

回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

製品


リリース

R2014a

Community Treasure Hunt

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

Start Hunting!

Translated by