Erro using boolean with Matlab on Window machine

2 ビュー (過去 30 日間)
Vu Tran
Vu Tran 2017 年 12 月 31 日
回答済み: Vu Tran 2018 年 1 月 1 日
Hi,
Why I get this message when running a matlab script on Window 10. It run smoothly on Macosx
Undefined function or variable 'boolean'.
Error in wl_baseband_buffers/procCmd (line 487)
myCmd = wl_cmd(node.calcCmd(obj.GRP, obj.CMD_TX_MODE), uint32(boolean(varargin{1})));
Error in wl_baseband_buffers/subsref (line 142)
varargout{:} = builtin('subsref', obj, S);
Error in wl_node/wl_basebandCmd (line 298)
out(n) = currNode.baseband.procCmd(n, currNode, varargin{:});
Error in Steering2Ant (line 16)
wl_basebandCmd(nodes(2), 'continuous_tx', true);

回答 (2 件)

Walter Roberson
Walter Roberson 2017 年 12 月 31 日
boolean does not exist in MATLAB itself. boolean is defined by Simulink. If your Mac happened to have Simulink installed but your Windows system did not, then you would have this problem.
You should be fixing your code to remove boolean

Vu Tran
Vu Tran 2018 年 1 月 1 日
Thanks Walter. I changed the boolean(varargin{1}) to logical(varargin{1}) and it works.

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by