i want to change [3,2,4](1x3 matrix) to 324(1x1 matrix) any help?
조회 수: 2 (최근 30일)
이전 댓글 표시
i know i can do it by 3*100 + 2*20 + 4 but is there any cleaner method?
댓글 수: 0
채택된 답변
추가 답변 (2개)
Bruno Luong
2018년 11월 16일
편집: Bruno Luong
2018년 11월 16일
This one produces NaN for overflowed data
>> polyval([3 2 4],10)
ans =
324
>> str2double(char([3 2 10]+'0'))
ans =
NaN
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!