How to generate matrix from iterations?
조회 수: 12 (최근 30일)
이전 댓글 표시
Hello !
In my program, I have two vectors V1 and V2 as follows:
V1 =[0 20 60 80 100]
V2 =[20 60 80 100]
i want to run my program for V2 and each element of V1, it means
i run my code 10 iterations for each element
V2=20 , V1= 0
V2=60 , V1=0
V2=80 , V1 =0
V2=100 , V1=0
after this
V2=20 , V1=20
V2=60 , V1=20
V2=80 , V1 =20
V2=100 , V1=20
until all the elements of V1 are completed, each time I get a result, I want to put it in the matrix to see the result of 10 iterations of each association between elements of V1 and V2.
thanks in advance
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!