A résolu


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

environ 9 ans il y a

A résolu


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

environ 9 ans il y a

A résolu


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

environ 9 ans il y a

A résolu


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

environ 9 ans il y a

A résolu


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

environ 9 ans il y a

A résolu


kmph to mps
convert kilometer per hour to meter per second

environ 9 ans il y a

A résolu


ESEMPIO
controllo uso funzioni

environ 9 ans il y a

A résolu


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

environ 9 ans il y a

A résolu


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

environ 9 ans il y a

A résolu


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]

environ 9 ans il y a

A résolu


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

environ 9 ans il y a

A résolu


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

environ 9 ans il y a

A résolu


sum as columns
sum as columns.

environ 9 ans il y a

A résolu


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

environ 9 ans il y a

A résolu


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

environ 9 ans il y a

A résolu


Adding each element
Add the each element of the matrix.

environ 9 ans il y a

A résolu


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

environ 9 ans il y a

A résolu


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

environ 9 ans il y a

A résolu


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

environ 9 ans il y a

A résolu


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

environ 9 ans il y a

A résolu


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

environ 9 ans il y a

A résolu


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

environ 9 ans il y a

A résolu


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

environ 9 ans il y a

A résolu


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

environ 9 ans il y a

A résolu


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

environ 9 ans il y a

A résolu


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

environ 9 ans il y a

A résolu


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

environ 9 ans il y a

A résolu


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

environ 9 ans il y a

A résolu


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

environ 9 ans il y a

A résolu


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

environ 9 ans il y a

Charger plus