One integer array out of many double ones?!
이전 댓글 표시
if i have 4 arrays A,B,C,D:
how to assign only one array A to be integer?
if i typed A=int8(A); i get all 4 arrays to be integers not just A.
댓글 수: 3
Rik
2018년 12월 29일
What you wrote will only affect A. If the other arrays are integers after that line, then they were already before that line executed.
Fatma Abdullah
2018년 12월 29일
편집: Fatma Abdullah
2018년 12월 29일
Rik
2018년 12월 29일
Please do not just close the question if it has any answers without responding to them.
It is impossible for any variable other than A to be affected by the line A=int8(A), unless you have shadowed the int8 function with something that uses evalin or any equivalent horrible code.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!