문제를 풀었습니다


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...

대략 4년 전

문제를 풀었습니다


y equals x divided by 2
function y = x/2

대략 4년 전

문제를 풀었습니다


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.

대략 4년 전

문제를 풀었습니다


Sum the numbers on the main diagonal
Sum the numbers on the main diagonal of an n-by-n matrix. For input: A = [1 2 4 3 6 2 2 4 7]...

대략 4년 전

문제를 풀었습니다


Add a row of zeros on top of a matrix
Given a matrix, insert a row of zeros as the top row.

대략 4년 전

문제를 풀었습니다


kmph to mps
convert kilometer per hour to meter per second

대략 4년 전

문제를 풀었습니다


Square Diagonal
If n is the given number, then make a diagonal matrix of size 2*2 with the square of that number.

대략 4년 전

문제를 풀었습니다


Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

대략 4년 전

문제를 풀었습니다


given 3 sides, find area of this triangle
1:3 -> 0; 3:5 -> 6

대략 4년 전

문제를 풀었습니다


Right and wrong
Given a vector of lengths [a b c], determines whether a triangle with those sides lengths is a right triangle: <http://en.wikipe...

대략 4년 전

문제를 풀었습니다


Divide by 4
Given the variable x as your input, divide it by 4 and put the result in y.

대략 4년 전

문제를 풀었습니다


Find the dimensions of a matrix
Just find the number of columns of the given matrix. Example x = [1 2 3 4 5 6] y = 2

대략 4년 전

문제를 풀었습니다


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.

대략 4년 전

문제를 풀었습니다


surface of a spherical planet
you just discovered its circumference, that is the input.

대략 4년 전

문제를 풀었습니다


Arrange vector in ascending order
Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];

대략 4년 전

문제를 풀었습니다


Given area find sides
In a right angle triangle given area 'A' one arm=x, another arm=2x then find the value of x. For example, area A=400 then ...

대략 4년 전

문제를 풀었습니다


find radius of cone
if Slant height of Cone(I)& hight of Cone(H) given then find radius of the Cone(R) for example I=5,h=4 then the ans R=3;

대략 4년 전

문제를 풀었습니다


Find the sum of the elements in the "second" diagonal
Find the sum of the elements in the diagonal that starts at the top-right corner and ends at the bottom-left corner.

대략 4년 전

문제를 풀었습니다


reverse string
input='rama' output='amar'

대략 4년 전

문제를 풀었습니다


Rotate a Matrix by 90 degrees
Rotate a Matrix by 90 degrees Example: If the input is: X = 1 2 3 4 5 6 7 8 9 ...

대략 4년 전

문제를 풀었습니다


Sum of odd numbers in a matrix
Find the sum of all the odd numbers in a matrix. Example x = [2 3 5 7 1 4 11] y = 27

대략 4년 전

더 보기