马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
U=str2num(get(handles.edit6,'String'));
T=str2num(get(handles.edit7,'String'));
P=str2num(get(handles.edit8,'string'));
A=str2num(get(handles.edit9,'string'));
X=str2num(get(handles.edit1,'String'));
Y=str2num(get(handles.edit2,'String'));
Z=str2num(get(handles.edit3,'String'));
r=str2num(get(handles.edit4,'String'));
M=str2num(get(handles.edit5,'string'));
a=str2num(get(handles.edit14,'string'));
b=str2num(get(handles.edit15,'String'));
c=str2num(get(handles.edit16,'String'));
d=str2num(get(handles.edit17,'String'));
H=str2num(get(handles.edit18,'String'));
%y=str2num(get(handles.edit21,'String'));
%y=str2num(get(handles.edit20,'String'));
sp=(r+1)/(r-1)
SQ=sqrt(M*r*(2/(r+1))^sp)
Q=A*P*SQ
axes(handles.axes1);
%x=-2*pi:0.01:2*pi;
%[x]=sqrt((2.*a.^2.*x.^(2.*b))-H.^2./(2.*c.^2.*x.^(2.*d))-log(X.*pi.*U.*a.*c.
%*x.^(b+d)./Q)=1);
x=0:pi/20:2*pi;
y=sqrt((2.*a.^2.*x.^(2.*b))-H.^2./(2.*c.^2.*x.^(2.*d))-log(X.*pi.*U.*a.*c.*x.^(b+d)./Q));
plot(x,y);
hold on;
我想让y等于0求出x,然后让y等于0求出y,让后利用所求出的x,y的值作为椭圆的长轴和短轴画一个椭圆,如何实现。毕业设计着急中,麻烦各位大侠帮帮忙!! |