A résolu


MATLAB Basics: Complex Argument
For a given complex number, x, return the argument, y, in degrees.

environ 2 ans il y a

A résolu


Distance Travelled by Vehicle

environ 2 ans il y a

A résolu


Slope intercept application
Find y given slope (m), x, and y intercept (b).

environ 2 ans il y a

A résolu


Fletcher-Reeves Conjugate Gradient Method
Write a function to find the values of a design variable vector, _x_, that minimizes an unconstrained scalar objective function,...

environ 2 ans il y a

A résolu


Generalized sorting
Write generalized sort function |sortg()| that sorts array elements in “ascending” order with given comparison funct...

environ 2 ans il y a

A résolu


Create a function handle that reverses the input arguments of another function handle
Given a function that takes two input arguments and returns one output, create another function handle that performs the same op...

environ 2 ans il y a

A résolu


Differential equations I
Given a function handle |f| an initial condition |y0| and a final time |tf|, solve numerically the differential equation dy...

environ 2 ans il y a

A résolu


the fly, the train, the second train, and their Zeno's paradox
*You have heard this one*: A train leaves station _A_ and travels with constant velocity _v1_. A second train leaves station _B_...

environ 2 ans il y a

A résolu


Divide the Least Common Multiple by the Greatest Common Divisor of two numbers
Divide the Least Common Multiple by the Greatest Common Divisor of two numbers. For example, for x=12345 and y=54321, the answer...

environ 2 ans il y a

A résolu


Find the distance traveled by a car given velocity and time.
A car is traveling at a constant velocity for a specific amount of time. The function should use the two inputs, velocity and ti...

environ 2 ans il y a

A résolu


Speed of car travelling x meters in y seconds
What is the speed of a car if the car travelled x meters in y seconds? Supply the answer in m/s.

environ 2 ans il y a

A résolu


factorial_calc(n)
Write a MATLAB function called factorial_calc(n) that takes a positive integer n as input and calculates the factorial of n. The...

environ 2 ans il y a

A résolu


Alkane
Given a number, x, that is equal to the number of carbon atoms in an <http://en.wikipedia.org/wiki/Alkane alkane>, find, y, the ...

environ 2 ans il y a

A résolu


Variable_Addition
be able to add any variable to the number one

environ 2 ans il y a

A résolu


Small Riddle
Mr. Smith has two children. If the older child is a boy, what are the odds that the other child is also a boy?

environ 2 ans il y a

A résolu


Min by mean
Substitute the minimum value in each row of a matrix A by the mean of that row (it should also work if the input is a vector)

environ 2 ans il y a

A résolu


Remove white spaces at the end of the input string
Remove all trailing white spaces at the end of the input strings

environ 2 ans il y a

A résolu


Basics: counting digits of a number irrespective of the sign
publish the number of digits in any input integer example: -23---->2

environ 2 ans il y a

A résolu


Calculate triangle area
Imagine that you want to calculate the areas of some triangles given in matrix form. First the coordinates of the vertices of th...

environ 2 ans il y a

A résolu


Where is she?
Given the numbers 12, 3, 6, 9 Tell where the girl is located. That is: Look to your 3 o'clock = look right Example ...

environ 2 ans il y a

A résolu


Surface area of a sphere
Given the radius of a sphere, find it's Surface area

environ 2 ans il y a

A résolu


Find parts of a circle.
Given radius (r) of a circle find the diameter (d), circumference (c), an area (a).

environ 2 ans il y a

A résolu


Detect pair of equal values in a Matrix
A 2D matrix of 2 rows and N columns with random integer numbers. A = [3 1 2 4 6 6 7; 7 3 2 1 5 2 4] ...

environ 2 ans il y a

A résolu


Magnitude with vargin
Return the magnitude (square root of the sum of the squares) for an undefined number of input arguments.

environ 2 ans il y a

A résolu


Squares in Squares - Concentric Squares
Given a number, n, create an n x n sized matrix with concentric squares of 1s from the outside in. There should be a gap between...

environ 2 ans il y a

A résolu


Square Patterns in a square matrix

environ 2 ans il y a

A résolu


Spiral Out - 01
Create a spiral matrix ( clock-wise direction ) of size n. Try to do that without using the built-in function.

environ 2 ans il y a

A résolu


Sub-sequence - 01
Find the length of the longest increasing subsequence in the given array. a=[2,4,2,1,3,5,6] longest increasing subsequen...

environ 2 ans il y a

A résolu


Five Fingers
A little girl has just learnt how to count from 1 to N using the five fingers of her left hand as follows. She starts by calling...

environ 2 ans il y a

A résolu


Remove the air bubbles from a vector
_*A reduced version of Problem 112*_ Given a column vector v, return a vector w in which all the zeros have "bubbled" to the ...

environ 2 ans il y a

Charger plus