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

歡迎訪問 生活随笔!

生活随笔

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

循环神经网络

matlab建模电风扇,关于matlab调速风扇

發布時間:2024/3/26 循环神经网络 52 豆豆
生活随笔 收集整理的這篇文章主要介紹了 matlab建模电风扇,关于matlab调速风扇 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

關于matlab調速風扇0

代碼如下

clear

speed = 100;

t = 0;

Y_a = 4;Y_b = 4;Y_c = 4;

y0 = figure;

axis equal;axis off

axis([-6 6 -10 6])

title('可調速電風扇','fontsize',15);

grid off;

[x1,y1,z1]=sphere(30); %產生球體坐標

x=5*x1;y=5*y1;z=5*z1;

shading interp;

hold on;

mesh(x,y,z),colormap(hot); %畫風扇框架

hold on;

hidden off;

hold on;

fill([-3,-1,1,3],[-8.5,-5,-5,-8.5],[0.5,0.5,0.5]); %畫一個多邊形

text(-0.6,-6,'xxxx ','color','k'); %多邊形里的文字

text(-1.2,-7,'xxxxxxx ','color','k'); %多邊形里的文字

hold on

ax = Y_a * cos(2 * pi * t);ay = Y_a * sin(2 * pi * t); %計算初始三個葉片的橫坐標和縱坐標

bx = Y_b * cos(2 * pi * t - 2 * pi/3);by = Y_b * sin(2 * pi * t - 2 * pi/3);

cx = Y_c * cos(2 * pi * t + 2 * pi/3);cy = Y_c * sin(2 * pi * t + 2 * pi/3);

y_line_a = line([0 ax],[0 ay],'EraseMode','xor','Color','r','linestyle','-','linewidth',20); %畫出三個葉片

y_line_b = line([0 bx],[0 by],'EraseMode','xor','Color','b','linestyle','-','linewidth',20);

y_line_c = line([0 cx],[0 cy],'EraseMode','xor','Color','g','linestyle','-','linewidth',20);

k=1;

%b0為開始按鈕

…… ……

while 1 %讓風扇轉起來的循環

if k==0

drawnow;

elseif k==1

t = t + 1/speed;

ax = Y_a * cos(2 * pi * t);ay = Y_a * sin(2 * pi * t);

bx = Y_b * cos(2 * pi * t - 2 * pi/3);by = Y_b * sin(2 * pi * t - 2 * pi/3);

cx = Y_c * cos(2 * pi * t + 2 * pi/3);cy = Y_c * sin(2 * pi * t + 2 * pi/3);

drawnow;

set(y_line_a,'XData',[0 ax],'YData',[0 ay]);

set(y_line_b,'XData',[0 bx],'YData',[0 by]);

set(y_line_c,'XData',[0 cx],'YData',[0 cy]);

end

end

每次停止運行就會出現“??? Error using ==> set

Invalid handle.

Error in ==> D:\matlab\bin\win32\fs.m

On line 94 ==> set(y_line_a,'XData',[0 ax],'YData',[0 ay]);”請問該怎么解決?還有風扇底座可以怎么再美化一下嗎?

總結

以上是生活随笔為你收集整理的matlab建模电风扇,关于matlab调速风扇的全部內容,希望文章能夠幫你解決所遇到的問題。

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