MATLAB three-dim graph with excel sheet-الرسم في ثلاث أبعاد بإستخدام ماتلاب من ملف إكسل

Описание к видео MATLAB three-dim graph with excel sheet-الرسم في ثلاث أبعاد بإستخدام ماتلاب من ملف إكسل

At the end of the main prog:
-------------------------------------------------
xlswrite('results.xls',t','A3:A20')
xlswrite('results.xls',er','B3:B20')
xlswrite('results.xls',er1','C3:C20')
-----------------------------------------------------
New script:
---------------------------------------------
%-----graph3d .mat 1 spt 2021
clear all;clc;
filename = 'results_all.xls';
t = xlsread(filename,'a3:a7')
nt=length(t)
er9 = xlsread(filename,'b3:b7')
er8 = xlsread(filename,'e3:e7');
er19= xlsread(filename,'c3:c7');
er18= xlsread(filename,'f3:f7');
%=======================
subplot(1,2,1)
for i=1:nt;fraction9(i)=0.9;end
plot3(t,fraction9,er9,'-k','LineWidth',3)
hold on
for i=1:nt;fraction8(i)=0.8;end
plot3(t,fraction8,er8,'-.b','LineWidth',3 )
grid on
xlabel('t','FontSize',12)
ylabel('\alpha','FontSize',12)
zlabel('u_1','FontSize',16)
%legend(' \alpha=0.9','\alpha=0.8')
%=======================
subplot(1,2,2)
for i=1:nt;fraction9(i)=0.9;end
plot3(t,fraction9,er19,'-k','LineWidth',3)
hold on
for i=1:nt;fraction8(i)=0.8;end
plot3(t,fraction8,er18,'-.b','LineWidth',3 )
grid on
xlabel('t','FontSize',12)
ylabel('\alpha','FontSize',12)
zlabel('u_2','FontSize',16)
-------------------------

Комментарии

Информация по комментариям в разработке