Visualizing a hyper-plane in SVM classifier(SVMの分離境界面の可視化)
[English]
This example describes a hyper-plane in support vector machine for classification. This code was created with reference to the official documentation entitled "Support Vector Machines for Binary Classification" as shown below.
(https://jp.mathworks.com/help/stats/support-vector-machines-for-binary-classification.html?lang=en)
While the officilal document denotes how to show the decision boundary in a 2D space, this example represents how to describe the hype-plane in a 3D space.
[Japanese]
サポートベクターマシン(SVM)にて分類を行ったときの分離境界面の3D上での可視化を行います。
変数が4つ以上になるとxyz平面での可視化はできません。
例えばカーネルの種類を変えると境界面がどのように変わるのかを視覚的に確認でき、有効です。
Cite As
Kenta (2026). Visualizing a hyper-plane in SVM classifier(SVMの分離境界面の可視化) (https://www.mathworks.com/matlabcentral/fileexchange/74442-visualizing-a-hyper-plane-in-svm-classifier-svm), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
files
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.5 | Description added |
||
| 1.0.4 | title corrected |
||
| 1.0.3 | Japanese summary added |
||
| 1.0.2 | The information of "Required Mathworks Products" was added (MATLAB and Statistics and Machine Learning Toolbox) |
||
| 1.0.1 | Japanese subtitle added |
||
| 1.0.0 |
