Errors generated upon publishing a file
4 ビュー (過去 30 日間)
古いコメントを表示
When I publish a simple 20 line program (which works correctly), I get the following
Replace row r of matrix A by its sum with m times row p.
Warning: MATLAB was unable to resolve the URL and open it in the browser:
> In web>displayWarningMessage (line 172)
In web (line 114)
The program is not over 172 lines of code up only 20. I have run Matlab online on multiple different machines and get the same error so I believe that there is a configuration error someplace but I don't know how to fix it. Any help would be appreciated.
2 件のコメント
Steven Lord
2024 年 10 月 17 日
When you say "publish" do you mean you called the publish function to create an HTML page with the output of the function? Or did you mean something else with the word "publish"?
The references to line 172 and line 114 indicate the lines in the web function included in MATLAB where the warning occurred, not the line in your code.
Can you show us your function and clarify the meaning of "publish" in this case?
採用された回答
Taylor
2024 年 10 月 21 日
Try just running the publish function @Steven Lord mentioned on your file. The error is with displaying the published HTML using the web function, but if you just run publish("CH_16_2_surface_tension_of_drops.m") you should see a folder titled "html" created in your current folder. That folder should contain an HTML file with the same name as your m-file. Then you can double-click that HTML file to open it using MATLAB's HTML broswer, or right-click and select "Open Outside of MATLAB" to view it in your defaul web browser.
4 件のコメント
Taylor
2024 年 10 月 23 日
Well I'm quite surprised the first option did not run. Given that, I'm pretty much out of ideas. The last two suggestions I have:
OR
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!