How can i multiply two same dimension vectors and why this code is providing error?

Respuestas (1)

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.

Categorías

Preguntada:

el 22 de Jun. de 2020

Editada:

el 22 de Jun. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by