Resuelto


Mechanical Advantage of a Gear Train
Calculate the mechanical advantage of a gear train. The mechanical advantage of a gear couple is given by MA = T_o/T_i where ...

más de 11 años hace

Resuelto


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

más de 11 años hace

Resuelto


Largest Prime Number
Given a matrix X, find the largest prime number in X.

más de 11 años hace

Resuelto


Determine the length of a string of characters
Determine the length of a string of characters

más de 11 años hace

Resuelto


Integer to boolean
Write a general function that will create the following conversation; Input is a column vector with integers Output is a b...

más de 11 años hace

Resuelto


Reshape a Vector
Write a function that accept three inputs. The first one is a row vector S. The second and third arguments are m and n which de...

más de 11 años hace

Resuelto


Array GCD
* Find Greatest Common Divisor in a given array * Function Template: function ans = arraygcd(a) % a=[45 15 200 ...

más de 11 años hace

Resuelto


Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

más de 11 años hace

Resuelto


Measure a Special Distance
Given an n-by-2 matrix with positive and negative numbers, return an n-by-n matrix in the manner of the function template.

más de 11 años hace

Resuelto


Fangs of a vampire number
A <http://en.wikipedia.org/wiki/Vampire_number vampire number> is a number v that is the product of two numbers x and y such tha...

más de 11 años hace

Resuelto


Leap Year
According to Gregorian Calender(which is in use now, in many countries),decide whether a given year is a leap year or not. Give...

más de 11 años hace

Resuelto


Find the coefficient of a number in scientifc notation
Given a non-negative real number N, find the coefficient C and the exponent E of its scientific notation (N = C 10^E). Note that...

casi 12 años hace

Resuelto


Creating and Executing Function.
Lets say we got a data that has X,Y. X is 30 By 4. Y is 30 By 1. A is the set of data. I wrote a code but i coul...

casi 12 años hace

Resuelto


Max of a Vector
Write a function to return the max of a vector

casi 12 años hace

Resuelto


Palindrome numbers
Find the palindrome numbers from 1 to n where n is the number entered by the user.

casi 12 años hace

Resuelto


Reverse the input
Given an input (n), produce an output in the reverse order with out using string variables or string function. Example x ...

casi 12 años hace

Resuelto


Pandigital number n°2 (Inspired by Project Euler 32)
After <http://www.mathworks.com/matlabcentral/cody/problems/2319 Problem 2319>. An n-digit number is pandigital if it makes u...

casi 12 años hace

Resuelto


Saving MATLAB session to a file
How to save MATLAB session to a file?

casi 12 años hace

Resuelto


Are you in XY plane?
Take a point P as an input position Vector (x,y,z). If you are in XY plane, return 1 as an output otherwise return 0. Example...

casi 12 años hace

Resuelto


Integer or Float?
Test an input to see whether it is an integer or a floating point number. If it is an integer return 1 for 'true'. Otherwise ret...

casi 12 años hace

Resuelto


You are in XY plane ?
Take point having position Vector of (x,y,z). You have to decide whether this point lies in XY plane or not. If it lies then ret...

casi 12 años hace

Resuelto


Calculate Alcohol By Volume with Original and Final Gravity
Given an initial gravity of un-fermented wort (OG) and a final gravity of fermented wort (FG), better known as beer, it is possi...

casi 12 años hace

Resuelto


Kepler's Equation
Solve <http://en.wikipedia.org/wiki/Kepler's_equation Kepler's Equation>. Note that the solution is rounded down to 5 decima...

casi 12 años hace

Resuelto


Perl 2: pop
_This is part of a series of perl function which were very helpful for many perl programmers. Could you implement it in Matlab?_...

casi 12 años hace

Resuelto


Inverse of Hilbert matrix
Given a non-negative integer x, return the element-wise power of 2 of the inverse of Hilbert matrix.

casi 12 años hace

Resuelto


Sum of digit range
Example: If A is n1, and B is n2 digit positive numbers. A*B's digit range will be [c d] (c = min & d = max). Then return ...

casi 12 años hace

Resuelto


Count from 0 to N^M in base N.
Return an array of numbers which (effectively) count from 0 to N^M-1 in base N. The result should be returned in a matrix, with ...

casi 12 años hace

Resuelto


Tribute to Ramanujan
The nth taxicab number, denoted as T(n), is defined as the smallest number that can be expressed as a sum of two positive algebr...

casi 12 años hace

Resuelto


Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.

casi 12 años hace

Resuelto


Area of a disk
Find the area of a disk or circle. x= radius of the disk.

casi 12 años hace

Cargar más