Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

help for project please

1 visualización (últimos 30 días)
ghaddar karim
ghaddar karim el 4 de Mayo de 2020
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
hello guys, i'm new to matlab and i want to know how to create a Vector that gives a 1 for values between 1 and 10 and 0 otherwise, thank you in advance

Respuestas (1)

David Hill
David Hill el 4 de Mayo de 2020
y=(x>=1&x<=10);%will provide logical vector where x is your input vector
  2 comentarios
ghaddar karim
ghaddar karim el 4 de Mayo de 2020
but how can i specify the values of x because i don't have a given that tell me in which range it is
and thank you for the help
David Hill
David Hill el 4 de Mayo de 2020
What is your input? You could create an input vector.
x=randi(50,1,1000);

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by