Is it column vector?
Is it column vector?
Check vector for column vector without using iscolumn function.
約4年 前
解決済み
metre to feet converter
The idea is to make a converter, which exchange meters to feets.
We use a factor of 1m = 3.281*1f.
so 3m are equals to 9.843 m...
Create incrementing array
Given a and b generate an output matrix as shown in following examples:
a=2
b=5
output=[2 20 200 2000 20000]
a=4
b...
約4年 前
解決済み
pressure to dB?
given x ratio of pressure, find corresponding y dB
約4年 前
解決済み
Create a square matrix of multiples
Given an input, N, output a matrix N x N with each row containing multiples of the first element of each row.
This also applies...
約4年 前
解決済み
Make a 1 hot vector
Make a vector of length _N_ that consists of all zeros except at index _k_, where it has the value 1.
Example:
Input
...
約4年 前
解決済み
Max of a Vector
Write a function to return the max of a vector
約4年 前
解決済み
Square the input
Given a scalar or vector x, return the square of each element.
Example
x = [7 2]
answer = [49 4]
約4年 前
解決済み
Area of a disk
Find the area of a disk or circle.
x= radius of the disk.
Matlab Basics II - squares
Write a function that takes matrix A, and squares each element in the matrix
example:
A = [1 2 3]
output = [1 4 9]
約4年 前
解決済み
Compare two input matrices
Check which input matrix has more elements. Return "1" if matrix A has more elements than matrix B. Otherwise return "0".
Exa...
約4年 前
解決済み
Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.