필터 지우기
필터 지우기

Clothesdryer=[1 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1]; in debug mode when i bring curser on clothesdryer it show all 24 zeros,which i think should show the above string of zeros and one and not all zeros can any one tell what is the reason?

조회 수: 1 (최근 30일)
Clothesdryer=[1 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1]; in debug mode when i bring curser on clothesdryer it show all 24 zeros,which i think should show the above string of zeros and one and not all zeros can any one tell what is the reason?

채택된 답변

John D'Errico
John D'Errico 2015년 11월 28일
The reason? At that point in time, your vector is NOT what you think it is. It is indeed a vector of all zeros, AT THAT POINT IN YOUR CODE. The debugger does not lie.
Why? The true reason is in your code, and we are not privy to read your code if you do not provide it. My guess is that you do not appreciate the idea of function workspaces, or perhaps how variables are passed around. That is strictly a guess though.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by