-
Notifications
You must be signed in to change notification settings - Fork 1
Home
rdbyk edited this page Feb 1, 2018
·
133 revisions
- Use
typeinstead oftypeof, whenever possible. - Use
nargin,nargoutinstead ofargn. - Use
x==[]instead ofisempty(x), whenever possible. - Use
x<>[]instead of~isempty(x), whenever possible. - Use
issquareinstead ofsize, whenever possible. - Use
length(x)instead ofsize(x,'*'), whenever possible. - Use
x(length(x))orx(size(x,'*')instead ofx($), whenever possible. - Use
&&,||instead of&,|, whenever possible. - Use
~(A || B)instead of~A && ~B(cf. De Morgan's Laws). - Use
~(A && B)instead of~A || ~B(cf. De Morgan's Laws). - Use
execstrinstead ofevstr, whenever possible. - Use
tokensinstead ofstrsplit, whenever possible.
-
%baliscUseful to check whether it is Balisc, e.g. use
exists("%balisc").