Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B?
>>A=[2,4;3,5];
>>B=[-2.5,2;1.5,-1];
>>isInverse...
circa 4 anni fa
Risolto
Return 'on' or 'off'
When the input is true, return 'on', otherwise, return 'off'.
circa 4 anni fa
Risolto
Volume Pillar
Calculate the volume of a pillar with radius l and heigth ar.
circa 4 anni fa
Risolto
Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B.
So if
A = [1 2 3;
4 5 6];
...
circa 4 anni fa
Risolto
Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1.
Examp...
Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...