Skip to content

Instantly share code, notes, and snippets.

Lahiru Rasnayake slahiruk

Block or report user

Report or block slahiruk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@slahiruk
slahiruk / stuff.m
Last active Dec 14, 2017
Matlab stuff
View stuff.m
% conditional operator in Matlab
cond = @(x,y)x<=y;
dim=@(x,y,cd)(x*cd(x,y))+(y*~cd(x,y));
You can’t perform that action at this time.