Risolto


Is My Wife Wrong?
Answer the question. (see also <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right Problem 149: Is my ...

oltre 7 anni fa

Risolto


Calculate square and cube of number
Calculate square and cube of number x

oltre 7 anni fa

Risolto


square root
Find the square root (y) of an input (x).

oltre 7 anni fa

Risolto


Times 3 problem
When you enter the number, it should return the number multiplied by 3

oltre 7 anni fa

Risolto


Rounding
Round 10.67 and make 'y' equal to that number.

oltre 7 anni fa

Risolto


Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...

oltre 7 anni fa

Risolto


Derivative of polynomial
Compute the derivative of a given polynomial. The input is an <http://www.mathworks.com/help/matlab/math/representing-polynomial...

oltre 7 anni fa

Risolto


Calculate the derivative of a polynomial
Example: in = [ 1 1 1 ] out = [ 2 1 ]

oltre 7 anni fa

Risolto


letter yes yes & letter no no
Split a string into two strings, wherein the first string has all alphabetic letters and the second string has all the remaining...

oltre 7 anni fa

Risolto


Generate a string like abbcccddddeeeee
This is the string version of Problem 1035. <http://www.mathworks.com/matlabcentral/cody/problems/1035-generate-a-vector-like-1-...

oltre 7 anni fa

Risolto


Returning a "greater than" vector
Given a vector, v, return a new vector , vNew, containing only values > n. For example: v=[1 2 3 4 5 6] n=3 vNew =...

oltre 7 anni fa

Risolto


Find number of days
The input is two date in string format (dd-mm-yyyy) find out the number of days between these two dates. Example: input: ...

oltre 7 anni fa

Risolto


Array of Ones
Create a 100 X 100 array of ones.

oltre 7 anni fa

Risolto


Dosage by weight
A machine administer's medication dosage based on weight. Write an if-elseif-else statement that assigns the appropriate dosageA...

oltre 7 anni fa

Risolto


Find nearest prime number less than input number
Find nearest prime number less than input number . For example: if the input number is 125, then the nearest prime number whi...

oltre 7 anni fa

Risolto


find the surface area of a cube
given cube side length x, find the surface area of the cube, set it equal to y

oltre 7 anni fa

Risolto


Given a matrix, return the last eigen value
Given a matrix, return the first eigen value For example: x = magic(5) 17 24 1 8 15 23 5 7 14 ...

oltre 7 anni fa

Risolto


Create a vector
Create a vector from 0 to n by intervals of 2.

oltre 7 anni fa

Risolto


For loops: Savings account
The for loop calculates the amount of money in a savings account after numberYears given an initial balace of savingsBalance and...

oltre 7 anni fa

Risolto


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

oltre 7 anni fa

Risolto


Find out magnitude of vector
Find out magnitude of vector. Say x=[1 2 3], then answer must sqrt(1^2+2^2+3^2) Please don't use sum function. If you l...

oltre 7 anni fa

Risolto


wait for me
wait exactly x seconds please, need not be more than 2 seconds but must be accurate within say 50 milliseconds, your function mu...

oltre 7 anni fa

Risolto


Convert Fahrenheit to Celsius
Calculate the Celsius temperature C given the Fahrenheit temperature F. Examples: Input F = 90 Output C is 32.22 I...

oltre 7 anni fa

Risolto


Area of a circle
Find the value for area of the circle if diameter is given

oltre 7 anni fa

Risolto


Construct a string from letters and counts
Given two input arrays like this: [5,3,1] ['a','b','c'] Output a string that contains each letter the specified num...

oltre 7 anni fa

Risolto


Test if two numbers have the same digits
Given two integers _x1_ and _x2_, return |true| if the numbers written with no leading zeros contain the same digits. That is, t...

oltre 7 anni fa

Risolto


Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.

oltre 7 anni fa

Risolto


Square a Number
Given an input x, return y, which is equal to the square of x.

oltre 7 anni fa

Risolto


Create a cell array out of a struct
Create a cell array out of a (single) struct with the fieldname in the first column and the value in the second column: in: ...

oltre 7 anni fa

Risolto


Food safety
Assign safeTemperature with 1 if foodTemperature is less than 40 or greater than 165.

oltre 7 anni fa

Carica altro