Understanding the @ Rule in MATLAB Code with Quad Command

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
pmehnati
Messages
18
Reaction score
0
HI every one
what's the @ rule in the MATLAB code? especielly when we use quad command.
 
Physics news on Phys.org
The @ is a function handle. So for example when using something like
syms x
we can define a y to be a function of x

y = @(x) x^2