- https://www.mathworks.com/matlabcentral/answers/125476-why-can-t-i-use-the-command-publish-or-open-up-simulink-in-matlab-r2014a
- https://www.mathworks.com/matlabcentral/answers/112741-matlab-errors-when-attempting-to-publish
Error when publish a simple code
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am trying to publish this simple code ... but I got these weird errors
How can I fix it
x= linspace(0,4,1000);
y1 = exp(-x).*sin(10.*x);
y2 = exp(-x);
y3 = -exp(-x);
figure;
plot(x, y1, "linewidth", 5, "Color", "black");
hold on
plot(x, y2, "LineStyle","- -","Color","blue");
plot(x, y3, "LineStyle",":","Color","blue");
hold off
xlabel("Time in seconds");
ylabel("Height From initial position(cm)");
title("Amortization Profile", "Fontsize",16);
%saveas(ex1, "figure_ex1.png")
Error using evalmxdom>instrumentAndRun (line 115)
Error: At least one END is missing: the statement may begin here.
Error in evalmxdom (line 21)
[data,text,laste] = instrumentAndRun(file,cellBoundaries,imageDir,imagePrefix,options);
Error in publish
Error in mdbpublish (line 55)
outputPath = publish(file, options);
0 commentaires
Réponses (1)
Vinai Datta Thatiparthi
le 3 Fév 2020
Hey Seereen,
Here are some possible workarounds to the problem you're facing -
These are instances with a similar issue that you describe. The workarounds are mentioned in these links.
Hope this helps!
0 commentaires
Voir également
Catégories
En savoir plus sur Graphics Object Programming dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!