Matlab online error while rendering plots

Whenever I try to plot some function using Matlab online I see the following error. Can someone suggest some workarounds for this issue?
Warning: Error occurred while executing the listener callback for event POST_REGION defined for class matlab.internal.language.RegionEvalutor:
Too many input arguments
Error in flipud (line 14)
x = flip(x, 1);
Error in matlab.internal.editor.FigureManager
Error in matlab.internal.editor.FigureManager
Error in matlab.internal.editor.FigureManager
Error in matlab.internal.editor.FigureManager.snapshotAllFigures

2 件のコメント

dpb
dpb 2022 年 6 月 11 日
Well, I never use ML online, but I'm sure this isn't generic -- dunno why plot would be calling flip; show us the specific code that will generate the error and the error in context...
Walter Roberson
Walter Roberson 2022 年 6 月 11 日
https://www.mathworks.com/matlabcentral/answers/497549-warning-while-trying-to-filter-rgb-values-on-a-picture#

サインインしてコメントする。

回答 (1 件)

Steven Lord
Steven Lord 2022 年 6 月 11 日

1 投票

My suspicion is that you've written your own flip.m or flipud.m that's preventing MATLAB from calling the flip or flipud functions included in MATLAB. To check this:
which -all flip
/MATLAB/toolbox/matlab/elmat/flip.m built-in % Shadowed char method built-in % Shadowed double method built-in % Shadowed int16 method built-in % Shadowed int32 method built-in % Shadowed int64 method built-in % Shadowed int8 method built-in % Shadowed logical method built-in % Shadowed single method built-in % Shadowed uint16 method built-in % Shadowed uint32 method built-in % Shadowed uint64 method built-in % Shadowed uint8 method flip is a built-in method % Shadowed connector.internal.LoggerLevel method flip is a built-in method % Shadowed matlab.internal.lang.capability.Capability method flip is a built-in method % Shadowed matlab.lang.OnOffSwitchState method flip is a built-in method % Shadowed matlab.internal.reference.property.RefEntityType method flip is a built-in method % Shadowed matlab.internal.reference.api.EntityPrecision method flip is a built-in method % Shadowed matlab.internal.reference.property.DeprecationStatus method flip is a built-in method % Shadowed matlab.internal.reference.property.FunctionType method flip is a built-in method % Shadowed matlab.internal.reference.api.EntityCaseSensitivity method flip is a built-in method % Shadowed mf.zero.meta.Language method flip is a built-in method % Shadowed dig.config.CommandType method flip is a built-in method % Shadowed dig.config.HorizontalAlignment method flip is a built-in method % Shadowed dig.model.DisplayState method flip is a built-in method % Shadowed dig.model.EventDataType method flip is a built-in method % Shadowed dig.model.FunctionType method flip is a built-in method % Shadowed dig.model.ValidInBdType method flip is a built-in method % Shadowed dig.model.ViewMode method flip is a built-in method % Shadowed simulink.FindSystemTask.Status method flip is a built-in method % Shadowed sl.data.adapter.AdapterDiagnostic method flip is a built-in method % Shadowed sl.data.adapter.AdapterType method flip is a built-in method % Shadowed sl.data.adapter.ChangeType method flip is a built-in method % Shadowed slid.SourceIssue method flip is a built-in method % Shadowed slid.broker.SourceManagerSourceKind method flip is a built-in method % Shadowed dastudio_util.cooperative.AsyncFunctionRepeaterTask.Status method flip is a built-in method % Shadowed coderdictionary.data.AccessFunctionSignaturesEnum method flip is a built-in method % Shadowed coderdictionary.data.AccessInterfaceEnum method flip is a built-in method % Shadowed coderdictionary.data.AccessModeEnum method flip is a built-in method % Shadowed coderdictionary.data.AllowedAccessEnum method flip is a built-in method % Shadowed coderdictionary.data.DataAccessEnum method flip is a built-in method % Shadowed coderdictionary.data.DataAccessTypeEnum method flip is a built-in method % Shadowed coderdictionary.data.DataInitEnum method flip is a built-in method % Shadowed coderdictionary.data.DataInstantiationEnum method flip is a built-in method % Shadowed coderdictionary.data.LatchingModeEnum method flip is a built-in method % Shadowed coderdictionary.data.PlacementEnum method flip is a built-in method % Shadowed coderdictionary.data.ScopeEnum method flip is a built-in method % Shadowed coderdictionary.data.StatementsSurroundEnum method flip is a built-in method % Shadowed coderdictionary.data.StatusEnum method flip is a built-in method % Shadowed matlab.unittest.Verbosity method flip is a built-in method % Shadowed matlab.unittest.internal.fixtures.FolderScope method flip is a built-in method % Shadowed matlab.internal.timer.CallBackTypeEnum method flip is a built-in method % Shadowed matlab.internal.timer.BusyModeEnum method flip is a built-in method % Shadowed matlab.internal.timer.ExecutionModeEnum method /MATLAB/toolbox/matlab/bigdata/@tall/flip.m % Shadowed tall method /MATLAB/toolbox/parallel/gpu/@gpuArray/flip.m % Shadowed gpuArray method /MATLAB/toolbox/parallel/parallel/@distributed/flip.m % Shadowed distributed method
which -all flipud
/MATLAB/toolbox/matlab/elmat/flipud.m /MATLAB/toolbox/matlab/bigdata/@tall/flipud.m % Shadowed tall method /MATLAB/toolbox/finance/ftseries/@fints/flipud.m % Shadowed fints method /MATLAB/toolbox/parallel/gpu/@gpuArray/flipud.m % Shadowed gpuArray method /MATLAB/toolbox/parallel/parallel/@distributed/flipud.m % Shadowed distributed method
If one of those shows your own custom flip.m or flipud.m, rename that custom function.

2 件のコメント

Walter Roberson
Walter Roberson 2022 年 6 月 11 日
Might possibly be SPM12 "compatability" functions, which these days nearly everyone needs to disable manually
Srinidhi P V
Srinidhi P V 2022 年 6 月 17 日
編集済み: Srinidhi P V 2022 年 6 月 17 日
Hey. Thanks for the responses! I noticed that one of the libraries that I had imported had a function flip.m which was causing the conflict. I resolved the errors by renaming the file and function.
I think we can go ahead and close this question.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeMatrix Indexing についてさらに検索

タグ

質問済み:

2022 年 6 月 11 日

編集済み:

2022 年 6 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by