MATLAB: Shall I plot some figure to save without show barplot I want to plot some figures by functions 'bar' and 'plot', but I don't want this figure being shown and just want to save it on somewhere; shall I? Best Answer figure('Visible','off')plot(rand(1,100))saveas(gcf,'myfigure.fig','fig') % give extension you want Related SolutionsMATLAB: Save data plot in GUI into a file, and may open it back h=plot(x,y)hgsave(h,'your_figure')To open your_figurehgload('your_figure') MATLAB: Won’t the graph show Read about element by element operations. You need to use ./ in the line which shows error. %all of the variables except R0 are parameters I change% The format for the list worked in a different plot%not sure why it is not working nowclear;clc;T1=500;T0=300;R1=.10;R0=(.1:.01:1);h=100;k=.05;qoverL=(2*pi*(T1-T0))./((log(R0/R1)/k)+(1/h*R0)); % <----here use ./ as R0 is arrayplot(R0,qoverL);xlabel('R0')ylabel('q/L')title('Heat lost vs R0') Related QuestionDoesn’t the graph show
Best Answer