ABSTRACT

Two matrices A and B can be checked for equality with all(all(A==B)), but isequal(A,B) is simpler. The isequal function works on any kind of variables, such as strings of different lengths, structs, or cell arrays. Structs and cell arrays are discussed in the next chapter. Try this example.