Java problem in a plot
Show older comments
clc;
flag_opt= 1;
flag_smi= 1;
flag_lsmi= 1;
flag_socp= 1;
flag_sqa= 1;
%------------------------------------
lw= 1;
figure,
plot(M_SNR, 10*log10(SINR_opt_avg), '-k*'); %, 'LineWidth', lw), hold on,
% k_p = 1;
% legend_M_suanfa{k_p}='Optimal';
legend('Optimal');
hold on;
plot(M_SNR, 10*log10(SINR_smi_avg), '-.g+'); %, 'LineWidth', lw)
%k_p = k_p+1;
%legend_M_suanfa{k_p}='SMI';
legend('SMI');
%if flag_lsmi
plot(M_SNR, 10*log10(SINR_lsmi_avg),'-bv');%%, 'LineWidth', lw),
% k_p = k_p+1;
%legend_M_suanfa{k_p}='LSMI';
legend('LSMI');
%end
%if flag_socp
plot(M_SNR, 10*log10(SINR_socp_avg), '--ro'); %%%, 'LineWidth', lw)
% k_p = k_p+1;
legend('SCOP'); % legend_M_suanfa{k_p}='SOCP';
%end
%if flag_sqa
plot(M_SNR, 10*log10(SINR_sqa_avg), '-k>'); %, 'LineWidth', lw)
% k_p = k_p+1;
%legend_M_suanfa{k_p}='SQA';
legend('SQA');
%end
xlabel('SNR(dB)')
ylabel('Output SINR(dB)')
%set(gca,'FontName', 'Times New Roman', 'FontSize', 16);
%legend(legend_M_suanfa, 'location', 'best')
%box on
%grid on
%legend('boxoff');
hold off
*********************************************
The problem :
Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: Profile GL_DEFAULT is not available on WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, owner false, NullToolkitLock[]], but: []
at javax.media.opengl.GLProfile.get(GLProfile.java:901)
at javax.media.opengl.GLProfile.getDefault(GLProfile.java:632)
at javax.media.opengl.GLCapabilities.<init>(GLCapabilities.java:84)
at com.mathworks.hg.peer.JavaSceneServerPeer.getCaps(JavaSceneServerPeer.java:147)
at com.mathworks.hg.peer.JavaSceneServerPeer.doCreateCanvas(JavaSceneServerPeer.java:676)
at com.mathworks.hg.peer.JavaSceneServerPeer.access$200(JavaSceneServerPeer.java:50)
at com.mathworks.hg.peer.JavaSceneServerPeer$2.run(JavaSceneServerPeer.java:650)
1 Comment
Answers (0)
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!