TRON strategy toggle
Detect whether your lightcycle is on same side of existing walls as opponents lightcycle. This function is useful in toggling a...
Breaking Out of the Matrix
Do you want to take the Red Pill, or the Blue Pill?
If you take the Blue Pill, you will simply pass along to the next problem...
4 years ago
Solved
The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".
Answered Calculating GeoMean of a double array
% Here's some data for a sample
A=magic(4)
% And here we'll calculate the geometric mean of each column
vect=prod(A,1).^(1/...
4 years ago | 0
| accepted
Answered How to append arrays of different lengths
What about something like:
function cat=horzcat_pad(a,b);
% How long is the longer matrix?
longer=max(length(a,1),lengt...