explain the square brackets

8 views (last 30 days)
Basheer
Basheer on 24 Jun 2015
Edited: Stephen23 on 22 May 2020
Hello guys, can you explain the line:
[h, v] = boundary(h,v, leftboundary, rightboundary,N,Choice);
I mean [h,v],boundary(is it a function?), and finally inside the brackets.
thanks in advance, Basheer
  2 Comments
Stephen23
Stephen23 on 24 Jun 2015
Edited: Stephen23 on 22 May 2020
A good place to start are these tutorials:
The tutorial "Calling Functions" explains how to call functions with multiple output arguments.
Basheer
Basheer on 24 Jun 2015
really, u were very helpful.

Sign in to comment.

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 24 Jun 2015
Edited: Azzi Abdelmalek on 24 Jun 2015
You have to assign values to
h=1,
v=2
leftboundary=3
rightboundary=4
N=5
Choice=6;
Then call your function
[h, v] = boundary(h,v, leftboundary, rightboundary,N,Choice);

More Answers (0)

Categories

Find more on Data Import and Analysis in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!