Initialize a Natural Number matrix.
Given length of matrix initialize a matrix consisting of natural numbers from 1 to n:
n = 10;
x = [ 1 2 3 4 5 6 7 8 9 10];
...
5年弱 前
解決済み
Column Removal (★★★)
(copy of prob 7)
Remove the nth column from input matrix A and return the resulting matrix in output B.
So if
A = [1 2...
angle in regular polygon
Make a function which returns measure of interior angle in x-side regular polygon. x is as input.
Please pay attention, that 1 ...
5年弱 前
解決済み
Calculate some equation
Using given inputs x and z, make two outputs that are
y1 = (xz)/(x/z)^2 + 14x^2 - 0.8z^2
y2 = x^z - z^x + (x/z)^2 - (z/x...
0, 2, 0, -2, 0, 2, 0, -2, ...
Generate the first n terms of a periodic sequence defined as
f(x) = 0, 2, 0, -2, 0, 2, 0, -2, ..., for x = 1, 2, 3, 4, 5, 6...
5年弱 前
解決済み
Numbers on 7-segment
This is a 7-segment:
_
|_|
|_|
It's a 3-by-3 char matrix.It has made by 3 characters: '_' , '|' and ' ' (space...
5年弱 前
解決済み
What's the missing interior angle?
I'm talking about polygons... The sum of the interior angles of a triangle is 180 degrees. The sum of the interior angles of a...
5年弱 前
解決済み
Can you reshape the matrix?
Given a matrix A, is it possible to reshape it into another matrix with the given number of rows?
5年弱 前
解決済み
Determinant of a 3x3 Matrix
Return the determinant of a 3x3 matrix. The built-in Matlab function det is not allowed.