How can i multiply two same dimension vectors and why this code is providing error?
이전 댓글 표시
while Parent1 , Parent2 and rand are (3*1) dimension.
Off1 = Parent1 + (rand(Dim,1).*(Parent2-Parent1));
답변 (1개)
madhan ravi
2020년 6월 22일
Parent1= rand(3,1)
Parent2=[5;2;2]
Dim = 3
Off1 = Parent1 + (rand(Dim,1).*(Parent2-Parent1));
P.S: You have made a spelling mistake.
카테고리
도움말 센터 및 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!