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
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!