Risolto


cos for boss?
a programmer had too much coffee and his boss needs cos(alpha+beta) correctly, especially when alpha or beta are close to pi/2 a...

oltre 8 anni fa

Risolto


Create cosine function out of sine
Please dont use cos(x) directly

oltre 8 anni fa

Risolto


Vertical matrix sort
Given a matrix x with n rows and m columns, return a matrix y with 2n rows and m columns, such that every column in x is sorted ...

oltre 8 anni fa

Risolto


How many Integers?
Count the integers in a given vector |v|. You *must* use a loop to count each element separately. Examples: Input: v...

oltre 8 anni fa

Risolto


Find minimum and maximum elements of an array
For a given array find minimum and maximum elements of an array and store minimum value in first index of output and maximum in ...

oltre 8 anni fa

Risolto


Is it prime?
Given a number, check whether it is prime or not. If prime output is true, otherwise false.

oltre 8 anni fa

Risolto


Nth root
Nth root of a number x

oltre 8 anni fa

Risolto


Initialize a Natural Number matrix.
Given length of matrix initialize a matrix consisting of natural numbers from 1 to n: n = 10; x = [ 1 2 3 4 5 6 7 8 9 10]; ...

oltre 8 anni fa

Risolto


How many days in a month?
Return the number of days in a given month in 2017. If the input is not a valid month number, return -1. Examples: Input...

oltre 8 anni fa

Risolto


Eye Squared
For a positive integer |n| create the identity matrix with |n| elements. In case it is not possible to produce an identity ma...

oltre 8 anni fa

Risolto


Beat the test suite if you can :)
Solve this problem based on clues in the test suite.

oltre 8 anni fa

Risolto


Finding fourier transform of a given vector
Find the fourier transform of a given input vector for ex a=[1 2 3 4] then y=[ 10.0000 + 0.0000i -2.0000 +...

oltre 8 anni fa

Risolto


Selecting books on MATLAB for experts and beginners (blindfolded)
* Imagine you have been blindfolded and asked to pick up any two books randomly from the table. * There are n books suitable f...

oltre 8 anni fa

Risolto


Spherical Volume
Calculate the volume of a sphere.

oltre 8 anni fa

Risolto


Find hen's weight.
If hen weights x kilos on two legs, how much does it weights on one leg? Output the result.

oltre 8 anni fa

Risolto


Step up
For given input array, output a array with all elements step up by two

oltre 8 anni fa

Risolto


the number of inputs
Find the number of the inputs of the function. example y = theinputnumber(x,k); function called theinputnumber has 2 in...

oltre 8 anni fa

Risolto


Log of a number
Write a script that will give the log of x as output.

oltre 8 anni fa

Risolto


Generate the sum of Squares of the given number
|P(n) = 1^2 + 2^2 + ... + n^2| |P(1) = 1| |P(2) = 1 + 4 = 5;| |P(3) = 5 + 9 = 14;| |P(4) = 14 + 16 = 30;|

oltre 8 anni fa

Risolto


Convert from integer to binary
if true % decimalToBinaryVector(x) end

oltre 8 anni fa

Risolto


Annual Salary
What is the annual salary of Mr. Cody if he works 40 hours a week and gets $x per hour and a yearly bonus of $2000? (Let, 50 wee...

oltre 8 anni fa

Risolto


multiply an array by its position number
You have given an array. Multiply an array by its position number

oltre 8 anni fa

Risolto


Change matrix to vector2
From x = 4 3 5 1 5 1 To y = 4 3 5 1 ...

oltre 8 anni fa

Risolto


Get 1-4-3-4-4
Get the value of the indices in the title and assign it to an array

oltre 8 anni fa

Risolto


Give prime Numbers upto n
You are given a input number x; print all the prime numbers less than equal to x.

oltre 8 anni fa

Risolto


ASCII Code
Using matlab, give the symbol that is associated with ASCii code 90.

oltre 8 anni fa

Risolto


Is it column vector?
Is it column vector? Check vector for column vector without using iscolumn function.

oltre 8 anni fa

Risolto


Print true if
all elements are larger than 5 a=[1 3 5 8 6]; b=[6 6 6 6 6]; function(a) should be false, and function(b) will be tru...

oltre 8 anni fa

Risolto


Sum of adjacent elements in a vector
Given a vector v, return a vector s containting the sum of every two adjacent elements in the vector. Every element s(i) cont...

oltre 8 anni fa

Risolto


find a specific element from an matrix
Find the element from matrix which is in 2nd row and 3rd column.

oltre 8 anni fa

Carica altro