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