解決済み


Solving a quadratic equation
Given a, b ​​and c, Return the solution of the following quadratic equation: a*x^2 + b*x + c = 0.

9年弱 前

解決済み


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

9年弱 前

解決済み


Test
Answer the question and the correct answer write in vector. Only one answer is correct. 1a Yes 1b No 1c No 1d No ...

9年弱 前

解決済み


calculate RMS voltage
given peak to peak voltage, calculate rms voltage

9年弱 前

解決済み


Factorial !
Calculate the factorial of a non-negative integer without using the built in function *factorial*

9年弱 前

解決済み


Find the position of first minimum value in an integer array with numbers
If x = [2 6 4 9 10 3 1 5 1] the the output should be 7, because the first minimum value (1) lies at the 7th position.

9年弱 前

解決済み


Leaking?
Graham's law states that the rate of effusion of a gas is inversely proportional to the square root of its molecular weight. A b...

9年弱 前

解決済み


COUNT VOWEL
Count, how many times vowels occurred. EXAMPLE: x='string the MaTLaBiAn' then the answer will be 6. x='coUnt the vowEl' th...

9年弱 前

解決済み


Find the square of the sum of the digits of a number
If a number (n) is provided as an input, find the square of the sum of the digits of the number. Example If n = 21, the an...

9年弱 前

解決済み


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

9年弱 前

解決済み


Palindrome Check
Check whether the entire matrix is palindrome or not. Example matrix = [7 8 7] matrix_reverse = [7 8 7] So the mat...

9年弱 前

解決済み


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

9年弱 前

解決済み


Max index of 3D array
Given a three dimensional array M(m,n,p) write a code that finds the three coordinates x,y,z of the Maximum value. Example ...

9年弱 前

解決済み


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

9年弱 前

解決済み


calculate linear convolution two vectors
for e.g in: a = [1 2 3] b = [4 5 6] out: y = [4 13 28 27 18]

9年弱 前

解決済み


find the roots of a quadratic equation
for e.g x = [ 2 -1 -3] y = [1.5 -1]

9年弱 前

解決済み


edge detection
write a function that gives the indexes of rising or falling edge x is a vector (assume it contains always at least one eleme...

9年弱 前

解決済み


Tiling a matrix
Given a matrix and a number of columns, replicate matrix in a single row

9年弱 前

解決済み


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

9年弱 前

解決済み


Matlab Basics - Rounding III
Write a script to round a large number to the nearest 10,000 e.g. x = 12,358,466,243 --> y = 12,358,470,000

9年弱 前

解決済み


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

9年弱 前

解決済み


Frobenius Norm
Write your own version of Frobenius Norm without using the 'norm' function.

9年弱 前

解決済み


construct matrix with identical rows
Input a row vector such as x=1:10. Now we need to construct a matrix with L rows,of which every row vector is a copy of x. E...

9年弱 前

解決済み


Integer indexing array: Reverse subsets
Construct an indexing array copySubset so that the statement reversedOrder = origOrder(copySubset); results in a row array begin...

9年弱 前

解決済み


Cell Counting: How Many Draws?
You are given a cell array containing information about a number of soccer games. Each cell contains one of the following: * ...

9年弱 前

解決済み


Simple date to serial no. conversion
Convert a date string to a serial date number. For example if you take x='19-May-2001' then the result is 730990 x...

9年弱 前

解決済み


Replacing a row
For matrix G=[1 2 3; 4 5 6; 7 8 9] Replace the 2nd row with 8s **remember to create matrix G

9年弱 前

解決済み


Half-Swap
Given a vector with an even number of elements, rearrange it so that the elements in its first half are switched with those i...

9年弱 前

解決済み


Vector of numbers divisible by 3
* Input(n) - any integer * Output(v) - vector with numbers divisible by 3(exept 0) starting from n to 0 Examples: * n=6...

9年弱 前

解決済み


Calculate distance travelled when given radius and rotations
When given radius of wheel and number of rotations calculate total distance travelled consider pi=3.14

9年弱 前

さらに読み込む