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!