フィルターのクリア

Questions about Matlab programming

6 ビュー (過去 30 日間)
Raldi
Raldi 2011 年 12 月 4 日
編集済み: per isakson 2020 年 7 月 22 日
Hi everyone I have some questions about a matlab .m file i recently downloaded.
it starts like
classdef name < handle
properties
svm_type = 's'
fig;
running = true;
plot_area;
draw_flag = true;
cont_flag = false;
lin;
weight_handle;
w_arrow = [0.9482 0.8060; 0.8068 0.9482];
inputs;
%Data - outputs
outputs;
%The colors of the data points
colors;
%The currently dragged data item
data_drag;
%Coordinates of misclassified data
errors;
%Error text
error_disp;
end
methods
function a = name()
a.lin = LinearClassifier([1 1], @()a.lin_change());
a.train_method = a.svm_type;
%The main figure window. Call the layout function on resize
screen_size = get(0, 'ScreenSize');
a.fig = figure('Name', 'SVM Demo', 'Position', [(screen_size(3) - 600) / 2 (screen_size(4) - 450) / 2 600 450], 'MenuBar', 'none',...
'ResizeFcn', @(varargin)a.do_layout);
....
....
end
end
end
I have never seen this type of programming in matlab, and even though i think i understand it to some level it would be nice if someone could explain me better the basics of this.
[SL: fixed formatting of the first couple lines of the class file]

採用された回答

Walter Roberson
Walter Roberson 2011 年 12 月 4 日

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by