Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


kmph to mps
convert kilometer per hour to meter per second

quasi 10 anni fa

Risolto


ESEMPIO
controllo uso funzioni

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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]

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


sum as columns
sum as columns.

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


Adding each element
Add the each element of the matrix.

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Carica altro