Error when saving a profile result - "Error using startsWith"

3 ビュー (過去 30 日間)
Daigo 2022 年 1 月 31 日
コメント済み: Daigo 2022 年 2 月 7 日
I simply want to save my profile result by the following code:
p = profile("info");
However, I got the following error messages. Does anyone know what is going on?
Error using startsWith
First argument must be a string array, character vector, or cell array of character vectors.
Error in web>resolveUrl (line 239)
if ~(startsWith(html_file, 'text://') || startsWith(html_file, 'http://'))
Error in web>examineInputs (line 233)
html_file = resolveUrl(html_file);
Error in web (line 88)
[options, html_file] = examineInputs(varargin{:});
Error in profsave (line 65)
web(['file:///' fullfile(fullDirname,'file0.html')],'-browser');
  1 件のコメント
Image Analyst
Image Analyst 2022 年 1 月 31 日
It worked for me in R2021b.



Reshma Nerella
Reshma Nerella 2022 年 2 月 4 日
It's my understanding that you are facing an error while saving the profiler result using "profsave" function.
I have brought this issue to the notice of our developers. They will investigate the matter further.
Since the code is working fine in MATLAB latest releases such as R2020b, R2021a, R2021b, so as a workaround you may consider upgrading to MATLAB latest releases.
  1 件のコメント
Daigo 2022 年 2 月 7 日
Thank you, Reshma!


その他の回答 (0 件)


Find more on Loops and Conditional Statements in Help Center and File Exchange





Community Treasure Hunt

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

Start Hunting!

Translated by