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!