matlab 的if 语句执行不了function[s]=find(x,y)x0 = 550,y0 = 40; %原点(550,40)x00 = 420,y00 = 40; %原点(550,40)% a=sqrt((x-x0)^2+(y-y0)^2);% b=sqrt((x-x00)^2+(y-y00)^2);% c=x0-x00;i=0;for x=500:700for y=1:200a=sqrt((x-x0)^2+(y-y0)^2)
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/06 18:59:28
![matlab 的if 语句执行不了function[s]=find(x,y)x0 = 550,y0 = 40; %原点(550,40)x00 = 420,y00 = 40; %原点(550,40)% a=sqrt((x-x0)^2+(y-y0)^2);% b=sqrt((x-x00)^2+(y-y00)^2);% c=x0-x00;i=0;for x=500:700for y=1:200a=sqrt((x-x0)^2+(y-y0)^2)](/uploads/image/z/6836601-57-1.jpg?t=matlab+%E7%9A%84if+%E8%AF%AD%E5%8F%A5%E6%89%A7%E8%A1%8C%E4%B8%8D%E4%BA%86function%5Bs%5D%3Dfind%28x%2Cy%29x0+%3D+550%2Cy0+%3D+40%3B+%25%E5%8E%9F%E7%82%B9%EF%BC%88550%2C40%EF%BC%89x00+%3D+420%2Cy00+%3D+40%3B+%25%E5%8E%9F%E7%82%B9%EF%BC%88550%2C40%EF%BC%89%25+a%3Dsqrt%28%28x-x0%29%5E2%2B%28y-y0%29%5E2%29%3B%25+b%3Dsqrt%28%28x-x00%29%5E2%2B%28y-y00%29%5E2%29%3B%25+c%3Dx0-x00%3Bi%3D0%3Bfor+x%3D500%3A700for+y%3D1%3A200a%3Dsqrt%28%28x-x0%29%5E2%2B%28y-y0%29%5E2%29)
matlab 的if 语句执行不了function[s]=find(x,y)x0 = 550,y0 = 40; %原点(550,40)x00 = 420,y00 = 40; %原点(550,40)% a=sqrt((x-x0)^2+(y-y0)^2);% b=sqrt((x-x00)^2+(y-y00)^2);% c=x0-x00;i=0;for x=500:700for y=1:200a=sqrt((x-x0)^2+(y-y0)^2)
matlab 的if 语句执行不了
function[s]=find(x,y)
x0 = 550,y0 = 40; %原点(550,40)
x00 = 420,y00 = 40; %原点(550,40)
% a=sqrt((x-x0)^2+(y-y0)^2);
% b=sqrt((x-x00)^2+(y-y00)^2);
% c=x0-x00;
i=0;
for x=500:700
for y=1:200
a=sqrt((x-x0)^2+(y-y0)^2);
b=sqrt((x-x00)^2+(y-y00)^2);
c=x0-x00;
if 1
matlab 的if 语句执行不了function[s]=find(x,y)x0 = 550,y0 = 40; %原点(550,40)x00 = 420,y00 = 40; %原点(550,40)% a=sqrt((x-x0)^2+(y-y0)^2);% b=sqrt((x-x00)^2+(y-y00)^2);% c=x0-x00;i=0;for x=500:700for y=1:200a=sqrt((x-x0)^2+(y-y0)^2)
同学,1