Effacer les filtres
Effacer les filtres

Insufficient number of outputs from right hand side of equal sign to satisfy assignment.

32 vues (au cours des 30 derniers jours)
Luca Re
Luca Re le 29 Juin 2024 à 9:55
Commenté : Stephen23 le 29 Juin 2024 à 22:04
[app.Sis.Slippage]
ans =
Columns 1 through 17
0 9 9 9 6 9 6 6 6 0 0 0 0 0 0 0 0
Columns 18 through 34
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Column 35
0
b1 =
Columns 1 through 17
0 90 90 90 60 90 60 60 60 0 0 0 0 0 0 0 0
Columns 18 through 34
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Column 35
0
[app.Sis.Slippage]=b1
Insufficient number of outputs from right hand side of equal sign to satisfy assignment.

Réponse acceptée

Stephen23
Stephen23 le 29 Juin 2024 à 10:26
Modifié(e) : Stephen23 le 29 Juin 2024 à 10:29

Note that the meaning of square brackets is different in the LHS vs on the RHS.

    C = num2cell(b1);
    [app.Sis.Slippage] = C{:}

https://www.mathworks.com/matlabcentral/discussions/tips/847976-tutorial-comma-separated-lists-and-how-to-use-them

  2 commentaires
Luca Re
Luca Re le 29 Juin 2024 à 10:32
Ok..it run correctly
but
class(app.Sis(1).Slippage)
ans =
'double'
it's not a cell
Stephen23
Stephen23 le 29 Juin 2024 à 22:04
"but ... it's not a cell"
I do not see any reason why it should be a cell (array).

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Operators and Elementary Operations dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by