日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 人工智能 > 循环神经网络 >内容正文

循环神经网络

matlab计算时间差多少秒,Matlab 设计时间计算器 计算时间差

發布時間:2023/12/14 循环神经网络 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 matlab计算时间差多少秒,Matlab 设计时间计算器 计算时间差 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

h0=figure('toolbar','none',...

'position',[200 150 300 250],...

'name','時間計算器');

huidiao=[...

'k=0;,',...

'fyear=str2num(get(e1,''string''));,',...

'fmonth=str2num(get(e2,''string''));,',...

'fday=str2num(get(e3,''string''));,',...

'syear=str2num(get(e4,''string''));,',...

'smonth=str2num(get(e5,''string''));,',...

'sday=str2num(get(e6,''string''));,',...

'month=[0 31 28 31 30 31 30 31 31 30 31 30 31];,',...

'k=fix(fyear/4);,',...

'if rem(fyear,4)==0,',...

'month(3)=29;,',...

'else,',...

'k=k+1;,',...

'month(3)=28;,',...

'end,',...

'sum=0;,',...

'for i=1:fmonth,',...

'sum=sum+month(i);,',...

'end,',...

'fdday=fyear*365+sum+fday+k;,',...

'l=fix(syear/4);,',...

'if rem(syear,4)==0,',...

'month(3)=29;,',...

'else,',...

'l=l+1;,',...

'month(3)=28;,',...

'end,',...

'ssum=0;,',...

'for i=1:smonth,',...

'ssum=ssum+month(i);,',...

'end,',...

'sdday=syear*365+ssum+sday+l;,',...

'dday=abs(fdday-sdday);,',...

'set(e7,''string'',[num2str(dday),''天'']);'];

t0=uicontrol('parent',h0,...

'units','points',...

'tag','t0',...

'style','text',...

'string','開始日期:',...

'horizontalalignment','right',...

'fontsize',15,...

'backgroundcolor',[0.75 0.75 0.75],...

'position',[10 160 80 20]);

t8=uicontrol('parent',h0,...

'units','points',...

'tag','t8',...

'style','text',...

'string','結束日期:',...

'horizontalalignment','right',...

'fontsize',15,...

'backgroundcolor',[0.75 0.75 0.75],...

'position',[115 160 80 20]);

e1=uicontrol('parent',h0,...

'units','points',...

'tag','e1',...

'style','edit',...

'horizontalalignment','right',...

'backgroundcolor',[1 1 1],...

'position',[20 130 50 20]);

t1=uicontrol('parent',h0,...

'units','points',...

'tag','t1',...

'style','text',...

'string','年',...

'horizontalalignment','left',...

'fontsize',15,...

'backgroundcolor',[0.75 0.75 0.75],...

'position',[75 130 20 20]);

e2=uicontrol('parent',h0,...

'units','points',...

'tag','e2',...

'style','edit',...

'horizontalalignment','right',...

'backgroundcolor',[1 1 1],...

'position',[20 100 50 20]);

t2=uicontrol('parent',h0,...

'units','points',...

'tag','t2',...

'style','text',...

'string','月',...

'horizontalalignment','left',...

'fontsize',15,...

'backgroundcolor',[0.75 0.75 0.75],...

'position',[75 100 20 20]);

e3=uicontrol('parent',h0,...

'units','points',...

'tag','e3',...

'style','edit',...

'horizontalalignment','right',...

'backgroundcolor',[1 1 1],...

'position',[20 70 50 20]);

t3=uicontrol('parent',h0,...

'units','points',...

'tag','t3',...

'style','text',...

'string','日',...

'horizontalalignment','left',...

'fontsize',15,...

'backgroundcolor',[0.75 0.75 0.75],...

'position',[75 70 20 20]);

e4=uicontrol('parent',h0,...

'units','points',...

'tag','e4',...

'style','edit',...

'horizontalalignment','right',...

'backgroundcolor',[1 1 1],...

'position',[120 130 50 20]);

t4=uicontrol('parent',h0,...

'units','points',...

'tag','t4',...

'style','text',...

'string','年',...

'horizontalalignment','left',...

'fontsize',15,...

'backgroundcolor',[0.75 0.75 0.75],...

'position',[175 130 20 20]);

e5=uicontrol('parent',h0,...

'units','points',...

'tag','e5',...

'style','edit',...

'horizontalalignment','right',...

'backgroundcolor',[1 1 1],...

'position',[120 100 50 20]);

t5=uicontrol('parent',h0,...

'units','points',...

'tag','t5',...

'style','text',...

'string','月',...

'horizontalalignment','left',...

'fontsize',15,...

'backgroundcolor',[0.75 0.75 0.75],...

'position',[175 100 20 20]);

e6=uicontrol('parent',h0,...

'units','points',...

'tag','e6',...

'style','edit',...

'horizontalalignment','right',...

'backgroundcolor',[1 1 1],...

'position',[120 70 50 20]);

t6=uicontrol('parent',h0,...

'units','points',...

'tag','t6',...

'style','text',...

'string','日',...

'horizontalalignment','left',...

'fontsize',15,...

'backgroundcolor',[0.75 0.75 0.75],...

'position',[175 70 20 20]);

b1=uicontrol('parent',h0,...

'units','points',...

'tag','b1',...

'style','pushbutton',...

'string','計算日期',...

'backgroundcolor',[0.75 0.75 0.75],...

'position',[20 40 50 20],...

'callback',huidiao);

b2=uicontrol('parent',h0,...

'units','points',...

'tag','b2',...

'style','pushbutton',...

'string','關閉',...

'backgroundcolor',[0.75 0.75 0.75],...

'position',[20 10 50 20],...

'callback','close');

e7=uicontrol('parent',h0,...

'units','points',...

'tag','e7',...

'style','edit',...

'horizontalalignment','right',...

'backgroundcolor',[1 1 1],...

'position',[120 10 80 20]);

t7=uicontrol('parent',h0,...

'units','points',...

'tag','t7',...

'style','text',...

'string','兩個日期相差:',...

'horizontalalignment','right',...

'fontsize',15,...

'backgroundcolor',[0.75 0.75 0.75],...

'position',[100 30 110 20]);

總結

以上是生活随笔為你收集整理的matlab计算时间差多少秒,Matlab 设计时间计算器 计算时间差的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。