Solved


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

9 years ago

Solved


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

9 years ago

Solved


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

9 years ago

Solved


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

9 years ago

Solved


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

9 years ago

Solved


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

9 years ago

Solved


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

9 years ago

Answered
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')

9 years ago | 0

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

9 years ago | 1

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

9 years ago | 0

| accepted

Solved


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

9 years ago

Solved


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

9 years ago

Solved


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

9 years ago

Solved


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

9 years ago

Solved


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

9 years ago

Solved


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

9 years ago

Solved


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

9 years ago

Solved


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

9 years ago

Solved


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

9 years ago

Solved


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

9 years ago

Solved


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.

9 years ago

Solved


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

9 years ago

Solved


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

9 years ago

Solved


Halder function
Find the halder function value of a number

9 years ago

Solved


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

9 years ago

Solved


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

9 years ago

Solved


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

9 years ago

Solved


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

9 years ago

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

9 years ago | 4

Solved


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"

9 years ago

Load more