R = varfun(fun, T)
R = varfun(fun, T, 'InputVariables', vars)
| Paramètre | Description |
|---|---|
| fun | Fonction. |
| T | Table d'entree. |
| Paramètre | Description |
|---|---|
| R | Resultat sous forme de table, tableau ou cellule selon OutputFormat. |
varfun applique une fonction independamment aux variables selectionnees.
T = table([1; 2; 4], [10; 20; 30], 'VariableNames', {'X', 'Y'});
R = varfun(@mean, T)
| Version | Description |
|---|---|
| 2.0.0 | version initiale |