how to make a number to vector?
조회 수: 2(최근 30일)
표시 이전 댓글
채택된 답변
Voss
2022년 7월 8일
It's not clear what you want, but here's a way to get a number from the user and make a vector of its digits (assuming it's a positive integer):
number = input('Give me a number, user: ','s');
vector = number - '0';
추가 답변(0개)
참고 항목
범주
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!