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 Comments

[fobj, fsomething]=Something([1 2 3 4 5 6 7 8 9 10 11 12 ])
%also
[fobj, fsomething]=Something(1:12)
@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!

Sign in to comment.

 Accepted Answer

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

More Answers (0)

Categories

Tags

Community Treasure Hunt

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

Start Hunting!