A résolu


polar inertia
given locations of a set of unit masses on complex plane, find polar moment of inerta about the origin. for example output 4 if ...

plus de 9 ans il y a

A résolu


~(*|/)
Return three quarters of n without using addition, subtraction, multiplication or division.

plus de 9 ans il y a

A résolu


calculate the tangent of angle in radians
Calculate the tangent of angle in degrees

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


Basic commands - Excuse me, what time is it?
Please write a function, which will return current hours and minutes, please notice we are using 24h time. Return a vector li...

plus de 9 ans il y a

A résolu


Basic commands - What platform are you using?
Please ask matlab waht platform are you using.

plus de 9 ans il y a

A résolu


Basic commands - logarithmically spaced vector
Make a function, which will give a vector: y=[ 0.01 0.1 1 10 ... 10^x];

plus de 9 ans il y a

Réponse apportée
3D grouped bar graph
I think the only way is to group data into one matrix (bar2 groups data row-wise) figure(1) bar3([y1,y2],'grouped')

plus de 9 ans il y a | 0

Réponse apportée
Randomly scramble letters in a single word
No need of while. If you want to permute word letters with forced use of a loop, extract one-by-one the letters from word withou...

plus de 9 ans il y a | 1

Réponse apportée
How to find unique elements in a vector without using unique or find?
Use an histogram based approach (works only for positive integers) %get M random numbers from 1 to N M=10; N=25; ...

plus de 9 ans il y a | 0

| A accepté

A résolu


Create an 8-color version of an image
This problem was inspired by a tweet I saw from @MATLAB regarding <http://www.mathworks.com/matlabcentral/fileexchange/37816-the...

plus de 9 ans il y a

A résolu


Combined Ages 1 - Symmetric, n = 3
You have probably seen the common riddle wherein combined ages are provided and you must determine the individual ages. For exam...

plus de 9 ans il y a

A résolu


Is It a Snake?
Given an m-by-n matrix, return true if the elements of the matrix are a connected "snake" shape from 1 to m*n. Otherwise return ...

plus de 9 ans il y a

A résolu


Find out characteristics equation of given matrix.
Find out characteristics equation of given matrix. A=[0 2; 1 8] then char. eq is s^2-8*s-2=0 and answer should be [1 -8 -2] ...

plus de 9 ans il y a

A résolu


Number of primes
Count the number of primes less than 'n'.

plus de 9 ans il y a

A résolu


Calculate some equation
Using given inputs x and z, make two outputs that are y1 = (xz)/(x/z)^2 + 14x^2 - 0.8z^2 y2 = x^z - z^x + (x/z)^2 - (z/x...

plus de 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)?

plus de 9 ans il y a

A résolu


Calculate cross product
Make function for cross product a=[1 3 2]; b=[2 4 1]; y=function(a,b) y=[-5 3 -2]

plus de 9 ans il y a

A résolu


Convert degrees to radians
Given input in degrees, output to radians

plus de 9 ans il y a

A résolu


Sum of cubes
Write a program to determine sum of cubes of first n odd numbers.

plus de 9 ans il y a

A résolu


DC-DC boost converter
Find the output voltage of a DC-DC boost converter when its input voltage is 12V and the duty cycle ratio is 0.6.

plus de 9 ans il y a

A résolu


Modulation index
The amplitude of the carrier signal is 2V and the amplitude of the modulating signal is 8V. Find its modulation index.

plus de 9 ans il y a

A résolu


Implement zero-based indexing for Matrices
Given an input vector and position (which is zero based) output the value Example: x = [1 2; 4 5] pos = [0 1] value = 5 ...

plus de 9 ans il y a

A résolu


Halder function
Find the halder function value of a number

plus de 9 ans il y a

A résolu


find "greatest common divisor" of two integer value
A function to find Greatest Common Divisor of two integer input E.G. x=-18 y=96 output should be +6 x=-18; y=96; >>your...

plus de 9 ans il y a

A résolu


expand intervals vol.2
Similar to problem <http://www.mathworks.co.uk/matlabcentral/cody/problems/2528 2528>. This is a more general case, when bounds ...

plus de 9 ans il y a

A résolu


Approximate e
Given a and n, compute and approximation to f = a * e ^ n, without the use of exp, string operations, or floating point numbers....

plus de 9 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] ...

plus de 9 ans il y a

Réponse apportée
How to mirror matrix on the diagonal?
In the case described before it is: A=[1 2 3;4 5 6;7 8 9] rot90(A,2)' which gives: A= 1 2 3 4 5 6 ...

plus de 9 ans il y a | 4

A résolu


Does this dress make me look fat
For the input string "Does xyz make me look fat" output the string "No, xyz does not make you look fat"

plus de 9 ans il y a

Charger plus