Not able publish the code using MATLAB online

12 views (last 30 days)
Sonu Lohani
Sonu Lohani on 10 Aug 2022
Answered: Ishu on 7 Feb 2024
I am using matlab online for my college projects and for that I am using MATLAB online using my institute id but there is a problem, I am not able to publish the code using matlab online, while I am able to publish it using MATLAB installed on my laptop. I don't want to use MATLAB on my laptop because it works very slow there. What should I do?

Answers (1)

Ishu
Ishu on 7 Feb 2024
Hi Sonu,
The steps to use "pubish" function are same for both MATLAB desktop and online versions. First you have to create a .m file and include all the content that you want in your published documentation and then you can just run "publish" function in the command window with the options that you want to use.
If this do not help you can share the exact error when you use MATLAB online so that I will be able to reproduce or rectify the error.
% Suppose you have a publish_file.m file that you want to publish
publish('publish_file', options);
For more information on "publish" function you can refer below documentation:
Hope it helps!

Categories

Find more on Startup and Shutdown 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!