how can i solve this probleme

1 回表示 (過去 30 日間)
ali hadjer
ali hadjer 2015 年 11 月 12 日
コメント済み: ali hadjer 2015 年 11 月 12 日
The function "pushbutton4_Callback" was closed with an 'end', but at least one other function definition was not. To avoid confusion when using nested functions, it is illegal to use both conventions in the same file. function pushbutton4_Callback(hObject, eventdata, handles) %button noued redondant optimisationfigure; handles.axes2=gca; if isfield(handles,'net') n=numel(handles.net(1,:)); degree=0; for i = 1:n for j = i+1:n X1 = handles.net(2,i); Y1 = handles.net(3,i); X2 = handles.net(2,j); Y2 = handles.net(3,j); xSide = abs(X2-X1); ySide = abs(Y2-Y1); d = sqrt(xSide^2+ySide^2);% distance euclidienne ENTRE NOEUD
if (d<=2*(handles.r) )
degree(i)= degree(i)+1
end
end
end
end
end

回答 (1 件)

Image Analyst
Image Analyst 2015 年 11 月 12 日
You have an extra end in there somewhere. Click on the line and you should see a small popup that briefly appears that tells you where it's matching mate line is. Make sure they all match up as you expect them to.
  3 件のコメント
ali hadjer
ali hadjer 2015 年 11 月 12 日
i try to add an END and delete an AND but she dosent work ???,,,
ali hadjer
ali hadjer 2015 年 11 月 12 日
i try to add an END and delete an AND but she dosent work ???,,,

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by