Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
help for project please
조회 수: 1 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (1개)
David Hill
2020년 5월 4일
y=(x>=1&x<=10);%will provide logical vector where x is your input vector
댓글 수: 2
David Hill
2020년 5월 4일
What is your input? You could create an input vector.
x=randi(50,1,1000);
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!