Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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.

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Mehr laden