title: Plotting the hyperplane of LDA (ClassificationDiscriminant)
body: <p>I am trying to compare various classifiers on my data, such as LDA and SVM etc, by visually investigate the separation hyperplane.</p>
  
  <p>Currently I am using ClassificationDiscriminant as the LDA classifier, unlike SVM can draw the hyperplane on the graph, I could not find a way to plot the hyperplane of the LDA classifier.</p>
  
  <p>The following script is how I produce a sample data and get it been classified using ClassificationDiscriminant:</p>
  
  <pre><code>%% Data &amp; Label
  X = [randn(100,2); randn(150,2) + 1.5];
  Y = [zeros(100,1); ones(150,1)];
  %% Plot
  gscatter(X(:,1),X(:,2),Y);
  %% Train LDA Classifier
  C = ClassificationDiscriminant.fit(X,Y);
  </code></pre>
  
  <p>Can anyone please help me to plot the hyperplane of separation from <code>C</code>? Any suggestion would be great help.</p>
  
  <p>Furthermore, the sample above is in 2D, however, I'm also interested in plotting them in 3D (i.e. sample data <code>X</code> has three columns). It would be more great if you can help.</p>