help on min, max, meshgrid functions to plot MED boundary in pattern recognition

2 ビュー (過去 30 日間)
mo tuk
mo tuk 2018 年 5 月 17 日
コメント済み: Image Analyst 2018 年 5 月 17 日
What is the relationship of using min, max and meshgrid functions to plot the MED contour of two classes. I hope my question is clear...... thanks
%%Computing the classifiers
step = 0.2; % The lower this is the smoother the contours.
x = min([samples_a(:,1);samples_b(:,1)])-1:step:max([samples_a(:,1);samples_b(:,1)])+1;
y = min([samples_a(:,2);samples_b(:,2)])-1:step:max([samples_a(:,2);samples_b(:,2)])+1;
[X1, Y1] = meshgrid(x,y);
x = min([samples_c(:,1);samples_d(:,1);samples_e(:,1)])-1:step:max([samples_c(:,1);samples_d(:,1);samples_e(:,1)])+1;
y = min([samples_c(:,2);samples_d(:,2);samples_e(:,2)])-1:step:max([samples_c(:,2);samples_d(:,2);samples_e(:,2)])+1;
[X2, Y2] = meshgrid(x,y);
% Plotting the MED boundaries
contour(X1,Y1,MED1, [0, 0], 'Color', 'magenta', 'LineWidth', LINE_WIDTH);
  1 件のコメント
Image Analyst
Image Analyst 2018 年 5 月 17 日
No idea. What is the "MED" contour? What are samples_*? You forgot to attach them. Where is pattern recognition taking place in your code?

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeDimensionality Reduction and Feature Extraction についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by