Predict labels using discriminant analysis classification model

`[`

also
returns:`label`

,`score`

,`cost`

]
= predict(`Mdl`

,`X`

)

A matrix of classification scores (

`score`

) indicating the likelihood that a label comes from a particular class. For discriminant analysis, scores are posterior probabilities.A matrix of expected classification cost (

`cost`

). For each observation in`X`

, the predicted class label corresponds to the minimum expected classification cost among all classes.

`ClassificationDiscriminant`

| `CompactClassificationDiscriminant`

| `edge`

| `fitcdiscr`

| `loss`

| `margin`