Error using strjoin when sending request URI
조회 수: 61 (최근 30일)
이전 댓글 표시
I've tried reproducing this example: https://fr.mathworks.com/help/matlab/ref/matlab.net.http.requestmessage.send.html but get an 'Error using strjoin' message. Any help in tracking down what I'm doing wrong is much appreciated.
>> request = matlab.net.http.RequestMessage;
>> uri = matlab.net.URI('https://www.mathworks.com/support/contact_us');
>> resp = send(request, uri)
Error using strjoin
Unsupported input: string
Error in matlab.net.URI/get.EncodedPath (line 514)
str = strjoin(path, '/');
Error in matlab.net.URI/string (line 680)
path = obj.EncodedPath;
Error in matlab.net.URI/char (line 696)
str = string(obj);
Error in matlab.net.http.RequestMessage>getProxySettings (line 2133)
proxyInfo = matlab.internal.webservices.getProxyInfo(char(uri));
Error in matlab.net.http.RequestMessage/send (line 405)
[proxyURI, username, password] = getProxySettings(createURIFromInput(uri));
>>
댓글 수: 0
채택된 답변
埃博拉酱
2024년 10월 28일 13:31
It looks like your version of MATLAB is too old and doesn't support string types yet. It is recommended to update to the latest version.
댓글 수: 3
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!