Writing a vector with randi and extract the elements in another variable
Mostrar comentarios más antiguos
Hi guys. How can i randomly generate a vector with 100 elements that contains integers between 40 and 120 than save in a variable P_vec the positions where the elements have values between 50 and 70?
Thank you!
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Get Started with MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!