문제를 풀었습니다


Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

대략 9년 전

문제를 풀었습니다


Specific Element Count
Given a vector _v_ and a element _e_, return the number of occurrences of _e_ in _v_. Note: NaNs are equal and there may be n...

대략 9년 전

문제를 풀었습니다


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

대략 9년 전

문제를 풀었습니다


The sum of the numbers in the vector
eg. [1,2,3]---->SUM=6

대략 9년 전

문제를 풀었습니다


Number of elements in matrix
Calculate the # of elements for given matrix

대략 9년 전

문제를 풀었습니다


kmph to mps
convert kilometer per hour to meter per second

대략 9년 전

문제를 풀었습니다


ESEMPIO
controllo uso funzioni

대략 9년 전

문제를 풀었습니다


cheating technique1
in these cody problems, there is a way to cheat. find out how people cheat.

대략 9년 전

문제를 풀었습니다


Save variables
a=[1] Save variable a that is located in workspace into current folder. File name should be 'a.mat'

대략 9년 전

문제를 풀었습니다


Delete x value in given vector y.
Delete x value in given vector y. Exapmle x=5; y=[ 1 2 5 6 74 5 2 5] result=[1 2 6 74 2]

대략 9년 전

문제를 풀었습니다


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

대략 9년 전

문제를 풀었습니다


Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

대략 9년 전

문제를 풀었습니다


sum as columns
sum as columns.

대략 9년 전

문제를 풀었습니다


Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

대략 9년 전

문제를 풀었습니다


How to calculate log?
There is a log that have base 5. How to calculate? log5(x)?

대략 9년 전

문제를 풀었습니다


Adding each element
Add the each element of the matrix.

대략 9년 전

문제를 풀었습니다


Calculate sin(x) without sin(x)
Calculate y = sin(x) x = 0 -> y= 0 without the use of sin(x) or cos(x)

대략 9년 전

문제를 풀었습니다


Calculate cosine without cos(x)
Solve cos(x). The use of the function cos() and sin() is not allowed.

대략 9년 전

문제를 풀었습니다


Create cotangent function out of sine.
Please, don't use cos, tan, cot matlab functions.

대략 9년 전

문제를 풀었습니다


cheating technique2
there are some ways to get hints just by looking at the test suits to cheat. try.

대략 9년 전

문제를 풀었습니다


Sudoku square
We have a small Sudoku square, but one number is missing. x = [ 1 5 4 8 6 3 0 9 7 ] Make a function, wher...

대략 9년 전

문제를 풀었습니다


Joules!
1J = 101.325 L/atm Write a statement that assigns fractionalMultiplier with 101.325 Write a second statement that assigns Jo...

대략 9년 전

문제를 풀었습니다


sum all the elements
sum all the elements in the matrix ex) x=[1 2 3 4; 5 6 7 8; 9 10 11 12] y=78

대략 9년 전

문제를 풀었습니다


determine if
determine if the elements of a matrix is a nan and return true

대략 9년 전

문제를 풀었습니다


basics -making a matrix
make a matrix which contains input x as the last element. the intervals should be +1 ex) input = 5 output= [0 1 2 3 4 5] ex)...

대략 9년 전

문제를 풀었습니다


multiple 2
function y = your_fcn_name(x) y = 2*x; end

대략 9년 전

문제를 풀었습니다


Back to basics 7 - Equal NaNs
Covering some basic topics I haven't seen elsewhere on Cody. Given 2 input variables, output true if they are equal, false ot...

대략 9년 전

문제를 풀었습니다


Change input vector
If a input vector is [3, 2, 6, 1, 6], the output vector is [3, 2, 6, 1, 6] + [1, 2, 3, 4, 5] = [4, 4, 9, 5, 11].

대략 9년 전

문제를 풀었습니다


ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
MATLABでは,角括弧の中に要素を入れることで、ベクトルを作成できる。 x = [1 2 3 4] また次のようにも書ける(コンマはオプション)。 x = [1, 2, 3, 4] 問題:次のベクトルを出力する関数を作成せよ。...

대략 9년 전

문제를 풀었습니다


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

대략 9년 전

더 보기