#include <stdlib.h>
#include <string.h>
#include "../svm.h"
#include "mex.h"
Go to the source code of this file.
#define Malloc |
( |
|
type, |
|
|
|
n |
|
) |
| (type *)malloc((n)*sizeof(type)) |
#define NUM_OF_RETURN_FIELD 11 |
struct svm_model* matlab_matrix_to_model |
( |
const mxArray * |
matlab_struct, |
|
|
const char ** |
msg |
|
) |
| |
const char* model_to_matlab_structure |
( |
mxArray * |
plhs[], |
|
|
int |
num_of_feature, |
|
|
struct svm_model * |
model |
|
) |
| |
const char* field_names[] |
|
static |
Initial value:=
{
"Parameters",
"nr_class",
"totalSV",
"rho",
"Label",
"sv_indices",
"ProbA",
"ProbB",
"nSV",
"sv_coef",
"SVs"
}
Definition at line 17 of file svm_model_matlab.c.