Error: Unbalanced or unexpected parenthesis or bracket.

[fobj, fsomething]=Something[1 2 3 4 5 6 7 8 9 10 11 12 ]
Please help!

3 comentarios

[fobj, fsomething]=Something([1 2 3 4 5 6 7 8 9 10 11 12 ])
%also
[fobj, fsomething]=Something(1:12)
Stephen23
Stephen23 el 24 de Feb. de 2019
@holaa luluu: What do you imagine that this should do?:
[fobj, fsomething]=Something[1 2 3 4 5 6 7 8 9 10 11 12 ]
You just put in a lot of effort asking this question ten times on lots of old threads. Why not put in the same amount of effort to learn very basic MATLAB, simply by doing the introductory tutorials:
Thank you for answers!
[fobj, fsomething]=Something([1 2 3 4 5 6 7 8 9 10 11 12 ]) definitely worked that one. This study is for my master thesis and i am trying to learn MATLAB. Unfortunetly i have realy short time for a decent learning process. Those paranthesis always make trouble!

Iniciar sesión para comentar.

 Respuesta aceptada

Use parentheses to define the function call:
[fobj, fsomething]=Something([1 2 3 4 5 6 7 8 9 10 11 12 ]);

2 comentarios

I am grateful for your answer.
As always, my pleasure.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 24 de Feb. de 2019

Comentada:

el 24 de Feb. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by