= is used for an assignment
== is the element-wise equality comparison operator
A = B; % Assigns the value of B to the variable A
A == B % The result of comparing the elements of A to B for equality
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!