Can't open Documentation on dual screen laptop

4 次查看(过去 30 天)
Just installed Matlab 2023 on a dual-screen laptop. Can't launch documentation. Similar issues for all the options under RESOURCES tab.
>> doc
Error using strsplit
First input must be either a character vector or a string
scalar.
Error in matlab.net.URI/set.Path (line 432)
obj.Path = strsplit(string(value), '/', 'CollapseDelimiters', false);
Error in matlab.net.URI/parse (line 1202)
obj.Path = parts.Path;
Error in matlab.net.URI (line 874)
obj = obj.parse(dest, literal);
Error in matlab.internal.doc.services.DocSettings/get.Domain (line 39)
helpUrl = matlab.net.URI(matlab.internal.UrlManager().HELP);
Error in matlab.internal.doc.getDocCenterDomain (line 10)
domain = char(docSettings.Domain);
Error in matlab.internal.doc.services.WebDocHandler/getDocRootDomain (line 43)
domain = matlab.net.URI(matlab.internal.doc.getDocCenterDomain);
Error in matlab.internal.doc.services.DocLocationHandler/getDocRootUrl (line 20)
url = obj.getDocRootDomain(options);
Error in matlab.internal.doc.services.DocLocation/getDocRootUrl (line 53)
url = obj.Handler.getDocRootUrl(options);
Error in matlab.internal.doc.url.DocContentPage/getDocRootUrl (line 98)
url = obj.DocLocation.getDocRootUrl("InternalBrowser", internal, "Release", release);
Error in matlab.internal.doc.url.DocContentPage/buildUrl (line 109)
url = getDocRootUrl(obj);
Error in matlab.internal.doc.url.DocPage/getNavigationUrl (line 33)
url = obj.buildUrl;
Error in matlab.internal.doc.ui.DocPageLauncher/openDocPage (line 30)
success = openBrowser(obj.Handler, getNavigationUrl(activePage));
Error in doc (line 79)
launcher.openDocPage;

采纳的回答

Steven Lord
Steven Lord 2023-8-14
Let's make sure you don't have a function named split that's taking precedence over the split function included in MATLAB. What does this command show?
which -all split
/MATLAB/toolbox/matlab/strfun/split.m split is a built-in method % string method split is a Java method % java.lang.String method /MATLAB/toolbox/matlab/bigdata/@tall/split.m % tall method /MATLAB/toolbox/matlab/datatypes/calendarDuration/@calendarDuration/split.m % calendarDuration method /MATLAB/toolbox/wavelet/wavelet/@dtree/split.m % dtree method /MATLAB/toolbox/wavelet/wavelet/@wdectree/split.m % wdectree method /MATLAB/toolbox/wavelet/wavelet/@wptree/split.m % wptree method
If it shows something that's not under the matlabroot directory try renaming that file or removing the directory containing it from the MATLAB path.
  2 个评论
Chun Siong Soon
Chun Siong Soon 2023-8-14
Here's what I have. Nothing suspicious.
C:\Program Files\MATLAB\R2023a\toolbox\matlab\strfun\split.m
split is a built-in method % string method
split is a Java method % java.lang.String method
C:\Program Files\MATLAB\R2023a\toolbox\matlab\bigdata\@tall\split.m % tall method
C:\Program Files\MATLAB\R2023a\toolbox\matlab\datatypes\calendarDuration\@calendarDuration\split.m % calendarDuration method
Steven Lord
Steven Lord 2023-8-14
Can you set an error breakpoint and show us the output of whos when MATLAB stops at that breakpoint?
While we're at it, I don't think it's quite as frequently overloaded as split but could you show the output of which on string as well?
whos
Name Size Bytes Class Attributes cmdout 1x33 66 char
which -all string
string is a built-in method % string constructor /MATLAB/toolbox/matlab/strfun/@string/string.m % Shadowed string constructor /MATLAB/toolbox/matlab/datatypes/@opaque/string.m % opaque method string is a built-in method % matlab.indexing.IndexingOperationType method string is a built-in method % matlab.indexing.IndexingContext method /MATLAB/toolbox/matlab/codetools/@mtree/string.m % mtree method /MATLAB/toolbox/matlab/datatypes/categorical/@categorical/string.m % categorical method /MATLAB/toolbox/matlab/datatypes/datetime/@datetime/datetime.m % datetime method /MATLAB/toolbox/matlab/datatypes/duration/@duration/duration.m % duration method string is a built-in method % pattern method string is a built-in method % connector.internal.LoggerLevel method string is a built-in method % connector.internal.PromiseState method string is a built-in method % appdesservices.internal.peermodel.BrowserControllerFactory method string is a built-in method % viewmodel.internal.factory.ManagerFactoryProducer method string is a built-in method % matlab.internal.lang.capability.Capability method string is a built-in method % matlab.lang.OnOffSwitchState method string is a built-in method % matlab.graphics.controls.internal.ToolbarValidator method string is a built-in method % message method string is a built-in method % parallel.internal.types.SettingsLevel method string is a built-in method % parallel.internal.types.SchedulerType method string is a built-in method % parallel.internal.types.ValidationStatus method string is a built-in method % parallel.internal.types.ClusterCategory method string is a built-in method % parallel.internal.types.LicenseCategory method /MATLAB/toolbox/matlab/network/+matlab/+net/+internal/@InetAddress/string.m % matlab.net.internal.InetAddress method /MATLAB/toolbox/matlab/datatypes/missing/missing.m % missing method string is a built-in method % matlab.internal.doc.services.DocLanguage method /MATLAB/toolbox/matlab/general/+matlab/+internal/+language/+introspective/stringable.m % matlab.internal.doc.reference.ReferenceTopic method string is a built-in method % matlab.internal.reference.property.RefEntityType method string is a built-in method % matlab.internal.doc.reference.ProductPrecision method string is a built-in method % matlab.internal.reference.api.EntityPrecision method string is a built-in method % matlab.internal.reference.property.DeprecationStatus method string is a built-in method % matlab.internal.reference.property.FunctionType method string is a built-in method % matlab.internal.reference.property.SyntaxType method string is a built-in method % matlab.internal.reference.api.EntityCaseSensitivity method string is a built-in method % simulink.FindSystemTask.Status method string is a built-in method % mf.zero.meta.Language method string is a built-in method % dig.config.CommandType method string is a built-in method % dig.config.HorizontalAlignment method string is a built-in method % dig.model.DisplayState method string is a built-in method % dig.model.EventDataType method string is a built-in method % dig.model.FunctionType method string is a built-in method % dig.model.ValidInBdType method string is a built-in method % dig.model.ViewMode method string is a built-in method % dastudio_util.cooperative.AsyncFunctionRepeaterTask.Status method string is a built-in method % coderdictionary.data.AccessFunctionSignaturesEnum method string is a built-in method % coderdictionary.data.AccessInterfaceEnum method string is a built-in method % coderdictionary.data.AccessModeEnum method string is a built-in method % coderdictionary.data.AllowedAccessEnum method string is a built-in method % coderdictionary.data.DataAccessEnum method string is a built-in method % coderdictionary.data.DataAccessTypeEnum method string is a built-in method % coderdictionary.data.DataInitEnum method string is a built-in method % coderdictionary.data.DataInstantiationEnum method string is a built-in method % coderdictionary.data.DataTypeScopeEnum method string is a built-in method % coderdictionary.data.LatchingModeEnum method string is a built-in method % coderdictionary.data.PlacementEnum method string is a built-in method % coderdictionary.data.ScopeEnum method string is a built-in method % coderdictionary.data.StatementsSurroundEnum method string is a built-in method % coderdictionary.data.StatusEnum method string is a built-in method % internal.matlab.inspector.MultiplePropertyCombinationMode method string is a built-in method % internal.matlab.inspector.MultipleValueCombinationMode method string is a built-in method % mtree.Type method string is a built-in method % matlab.unittest.internal.fixtures.FolderScope method string is a built-in method % matlab.automation.Verbosity method /MATLAB/toolbox/matlab/automation/core/+matlab/+automation/+internal/+diagnostics/FormattableString.m % matlab.automation.internal.diagnostics.FormattableString method string is a built-in method % matlab.unittest.Scope method string is a built-in method % scoringengine.FailureType method string is a built-in method % matlab.internal.timer.CallBackTypeEnum method string is a built-in method % matlab.internal.timer.ObjectVisibilityEnum method string is a built-in method % matlab.internal.timer.BusyModeEnum method string is a built-in method % matlab.internal.timer.ExecutionModeEnum method /MATLAB/toolbox/matlab/external/interfaces/webservices/http/+matlab/+net/URI.m % matlab.net.URI method /MATLAB/toolbox/matlab/external/interfaces/webservices/http/+matlab/+net/QueryParameter.m % matlab.net.QueryParameter method string is a built-in method % matlab.net.ArrayFormat method /MATLAB/toolbox/matlab/external/interfaces/webservices/http/+matlab/+net/+http/MediaType.m % matlab.net.http.MediaType method /MATLAB/toolbox/matlab/external/interfaces/webservices/http/+matlab/+net/+http/HeaderField.m % matlab.net.http.HeaderField method /MATLAB/toolbox/matlab/external/interfaces/webservices/http/+matlab/+net/+http/+io/ContentProvider.m % matlab.net.http.io.ContentProvider method string is a built-in method % matlab.graphics.chart.primitive.utilities.CDataShape method /MATLAB/toolbox/matlab/bigdata/@tall/string.m % tall method /MATLAB/toolbox/nnet/deep/@dlarray/string.m % dlarray method /MATLAB/toolbox/parallel/parallel/@codistributed/string.m % codistributed method /MATLAB/toolbox/symbolic/symbolic/@sym/string.m % sym method /MATLAB/toolbox/symbolic/symbolic/@symfun/string.m % symfun method

请先登录,再进行评论。

更多回答(2 个)

Chun Siong Soon
Chun Siong Soon 2023-8-15
There's a lot more, but again it's all from Matlab.
>> which -all string
string is a built-in method % string constructor
C:\Program Files\MATLAB\R2023a\toolbox\matlab\strfun\@string\string.m % Shadowed string constructor
C:\Program Files\MATLAB\R2023a\toolbox\matlab\datatypes\@opaque\string.m % opaque method
string is a built-in method % matlab.indexing.IndexingOperationType method
string is a built-in method % matlab.indexing.IndexingContext method
string is a built-in method % pattern method
C:\Program Files\MATLAB\R2023a\toolbox\matlab\codetools\@mtree\string.m % mtree method
C:\Program Files\MATLAB\R2023a\toolbox\nnet\deep\@dlarray\string.m % dlarray method
C:\Program Files\MATLAB\R2023a\toolbox\matlab\datatypes\datetime\@datetime\datetime.m % datetime method
C:\Program Files\MATLAB\R2023a\toolbox\matlab\datatypes\duration\@duration\duration.m % duration method
string is a built-in method % connector.internal.LoggerLevel method
string is a built-in method % connector.internal.PromiseState method
string is a built-in method % matlab.internal.lang.capability.Capability method
string is a built-in method % matlab.desktop.editor.RtcEditorState method
string is a built-in method % message method
string is a built-in method % mtree.Type method
C:\Program Files\MATLAB\R2023a\toolbox\matlab\helptools\+matlab\+internal\+doc\+url\DocPage.m % matlab.internal.doc.url.MwDocPage method
string is a built-in method % matlab.internal.doc.services.DocLocation method
C:\Program Files\MATLAB\R2023a\toolbox\matlab\external\interfaces\webservices\http\+matlab\+net\QueryParameter.m % matlab.net.QueryParameter method
C:\Program Files\MATLAB\R2023a\toolbox\matlab\external\interfaces\webservices\http\+matlab\+net\URI.m % matlab.net.URI method
string is a built-in method % matlab.net.ArrayFormat method
string is a built-in method % matlab.internal.doc.url.ContentType method
string is a built-in method % matlab.internal.doc.url.DocPageOriginType method
C:\Program Files\MATLAB\R2023a\toolbox\matlab\datatypes\missing\missing.m % missing method
string is a built-in method % matlab.internal.doc.services.DocLanguage method
string is a built-in method % FilePathState method
string is a built-in method % matlab.lang.OnOffSwitchState method
string is a built-in method % matlab.graphics.controls.internal.ToolbarValidator method
string is a built-in method % matlab.graphics.shape.internal.util.PointDataTipStyle method
string is a built-in method % matlab.internal.timer.CallBackTypeEnum method
string is a built-in method % matlab.internal.timer.ObjectVisibilityEnum method
string is a built-in method % matlab.internal.timer.BusyModeEnum method
string is a built-in method % matlab.internal.timer.ExecutionModeEnum method
C:\Program Files\MATLAB\R2023a\toolbox\matlab\external\interfaces\webservices\http\+matlab\+net\+http\MediaType.m % matlab.net.http.MediaType method
C:\Program Files\MATLAB\R2023a\toolbox\matlab\external\interfaces\webservices\http\+matlab\+net\+http\HeaderField.m % matlab.net.http.HeaderField method
C:\Program Files\MATLAB\R2023a\toolbox\matlab\general\+matlab\+internal\+language\+introspective\stringable.m % matlab.internal.doc.reference.ReferenceTopic method
string is a built-in method % matlab.internal.reference.property.RefEntityType method
string is a built-in method % matlab.internal.doc.reference.ProductPrecision method
string is a built-in method % matlab.internal.reference.api.EntityPrecision method
string is a built-in method % matlab.internal.reference.property.DeprecationStatus method
string is a built-in method % matlab.internal.reference.property.FunctionType method
string is a built-in method % matlab.internal.reference.property.SyntaxType method
string is a built-in method % matlab.internal.reference.api.EntityCaseSensitivity method
string is a built-in method % matlab.graphics.shape.internal.util.PinnableStyle method
string is a built-in method % matlab.internal.regfwk.ResourceType method
string is a built-in method % matlab.internal.example.docparser.ExampleType method
string is a built-in method % matlab.graphics.chart.primitive.utilities.CDataShape method
string is a built-in method % internal.matlab.inspector.MultiplePropertyCombinationMode method
string is a built-in method % internal.matlab.inspector.MultipleValueCombinationMode method
string is a built-in method % internal.matlab.variableeditor.ObjectTimerState method
string is a built-in method % parallel.internal.pool.PoolApiTag method
string is a built-in method % internal.matlab.datatoolsservices.WorkspaceEventType method
string is a built-in method % matlab.graphics.internal.propertyinspector.views.Shapes method
string is a built-in method % matlab.display.internal.DisplayLayout method
C:\Program Files\MATLAB\R2023a\toolbox\matlab\bigdata\@tall\string.m % tall method
C:\Program Files\MATLAB\R2023a\toolbox\matlab\datatypes\categorical\@categorical\string.m % categorical method
C:\Program Files\MATLAB\R2023a\toolbox\parallel\parallel\@codistributed\string.m % codistributed method
C:\Program Files\MATLAB\R2023a\toolbox\symbolic\symbolic\@sym\string.m % sym method
C:\Program Files\MATLAB\R2023a\toolbox\symbolic\symbolic\@symfun\string.m % symfun method
Warning: First input must be a string array or cell array of character vectors.
> In matlab.internal.mvm.eventmgr.MVMEvent.invokeListener
In matlab.internal.mvm.eventmgr.MVMEvent>@(eventTags,details)matlab.internal.mvm.eventmgr.MVMEvent.invokeListener(listener,eventTags,details)

Chun Siong Soon
Chun Siong Soon 2023-8-15
Breakpoint:
>> doc
432 obj.Path = strsplit(string(value), '/', 'CollapseDelimiters', false);
Warning: First input must be a string array or cell array of character vectors.
> In matlab.internal.mvm.eventmgr.MVMEvent.invokeListener
In matlab.internal.mvm.eventmgr.MVMEvent>@(eventTags,details)matlab.internal.mvm.eventmgr.MVMEvent.invokeListener(listener,eventTags,details)
In matlab.net/URI/set.Path (line 432)
In matlab.net/URI/parse (line 1202)
In matlab.net.URI (line 874)
In matlab.internal.doc.services.DocSettings.get.Domain (line 39)
In matlab.internal.doc.getDocCenterDomain (line 10)
In matlab.internal.doc.services/WebDocHandler/getDocRootDomain (line 43)
In matlab.internal.doc.services/DocLocationHandler/getDocRootUrl (line 20)
In matlab.internal.doc.services/DocLocation/getDocRootUrl (line 53)
In matlab.internal.doc.url/DocContentPage/getDocRootUrl (line 98)
In matlab.internal.doc.url/DocContentPage/buildUrl (line 109)
In matlab.internal.doc.url/DocPage/getNavigationUrl (line 33)
In matlab.internal.doc.ui/DocPageLauncher/openDocPage (line 30)
In doc (line 79)
K>> strsplit(string(value), '/', 'CollapseDelimiters', false)
Error using strsplit
First input must be either a character vector or a string scalar.
K>> value
value =
"/help"
  1 个评论
Chun Siong Soon
Chun Siong Soon 2023-8-15
Hi Steven,
Thank you so much for your help! I discovered that there was a toolbox on my path with a strsplit that didn't accept " ".

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Call Web Services from MATLAB Using HTTP 的更多信息

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by