Hi! I created a bad script a long time ago (months) and it has essentially destroyed my Matlab Online. I cannot run any other script without that old error occurring
1 次查看(过去 30 天)
显示 更早的评论
The Summery is essentially it. I created a script four months ago and accidentially used the wrong syntax (&&) and it has corrupted my Matlab Online. I can run scripts with only comments, but as soon as I add anything else I get the errors back.
Help? I am so confused
Script I am running:
%% Problem 1
k1 = 10;
k2 = 5;
k3 = 8;
k4 = 10;
k5 = 20;
L1 = [1 0 0 0;
0 1 0 0]
Error Message:
Operands to the logical AND (&&) and OR (||) operators must be convertible to logical scalar values. Use the ANY or ALL functions to
reduce operands to logical scalar values.
Error in internal.matlab.variableeditor.Actions.struct.EditActionBase/UpdateActionState (line 33)
editable = height(sRows) == 1 && (sRows(2)-sRows(1)+1 == 1);
Error in internal.matlab.variableeditor.VEActionDataService/updateActionStates (line 138)
action.UpdateActionState();
Error in internal.matlab.variableeditor.VEActionDataService/enableListenersAndUpdateActionStates (line 84)
this.updateActionStates();
Error in internal.matlab.variableeditor.VEActionDataService/initActionStates (line 54)
this.enableListenersAndUpdateActionStates();
Error in internal.matlab.datatoolsservices.actiondataservice.ActionManager/initActions (line 55)
this.ActionDataService.initActionStates();
Error in internal.matlab.variableeditor.peer.RemoteManager/callInitActionOnIdle (line 376)
ActionManager.initActions(startPath, classType);
Error in internal.matlab.variableeditor.peer.RemoteManager>@()this.callInitActionOnIdle(actionNamespace,startPath,classType,ActionManager) (line 121)
builtin('_dtcallback', @() this.callInitActionOnIdle(actionNamespace, startPath, classType, ActionManager), ...
0 个评论
采纳的回答
Walter Roberson
2024-8-30
编辑:Walter Roberson
2024-8-30
You probably have a third-party function named height that is interfering with correct execution.
which height
Chances are that you will get a response that shows a local height.m file.
4 个评论
Image Analyst
2024-8-30
If this Answer solves your original question, then could you please click the "Accept this answer" link to award the answerer with "reputation points" for their efforts in helping you? They'd appreciate it. Thanks in advance. 🙂 Note: you can only accept one answer (so pick the best one) but you can click the "Vote" icon for as many Answers as you want. Voting for an answer will also award reputation points.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Platform and License 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!