A résolu


Create cell array of strings
Convert the input to a cell array, but only if necessary. If the input is a string, return a 1-by-1 cell array containing the...

plus de 3 ans il y a

A résolu


replace empty matrices with '[]'
for example a=1;a(:,1)=[]; returns a = Empty matrix: 1-by-0 use this as the input,and the output should be '[]...

plus de 3 ans il y a

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 3 ans il y a

A résolu


Find the solution of algebraic equation
Find the solution of algebraic equation of the form an*x^n + a(n-1)*x^(n-1) + (an-2)*x^(n-2)+...... a2*x^2 + a1*x^1 + a0 = 0; ...

plus de 3 ans il y a

A résolu


Chào các bạn.
Cho 3 số. Tính tổng của chúng

plus de 3 ans il y a

A résolu


For given vectors x,y find coresponding spline coefficients.
For given vectors x,y find coresponding spline coefficients. Example x =[ -3 -2 0 2 3] y =[ 0 0 1 ...

plus de 3 ans il y a

A résolu


Cody problems in French : Trouvez la logique Pt.2
Trouvez la logique entre x et y, aidez-vous de la test suite. Bon courage. P.S: L'utilisation de "^" est de nouveau fortement...

plus de 3 ans il y a

A résolu


Solve equation numerically
y'=y In order to solve equation using computer, numerical analysis are needed. 1st order Euler's method is one of the metho...

plus de 3 ans il y a

A résolu


Check for keywords
If the entered string is a MATLAB keyword, return true else false

plus de 3 ans il y a

A résolu


Maximum sum from any 2 numbers with a variable number of inputs
Given a variable number of inputs, combine any 2 numbers from the inputs and output the maximum sum the combinations can generat...

plus de 3 ans il y a

A résolu


Toolbox check part 3
In my ongoing quest to highlight obscure parts of MATLAB, the latest challenge is to take 2 string inputs, one a MATLAB toolbox ...

plus de 3 ans il y a

A résolu


Acidity of vinegar and salts
Assuming: pH (potentia hydrogenii) = - log10(H+ ionic concentration in mol/Liter). For a buffer solution containing acetic acid ...

plus de 3 ans il y a

A résolu


Min by mean
Substitute the minimum value in each row of a matrix A by the mean of that row (it should also work if the input is a vector)

plus de 3 ans il y a

A résolu


leap year
find the number of leap years within the given time interval

plus de 3 ans il y a

A résolu


DC-DC boost converter
Find the output voltage of a DC-DC boost converter given input voltage and the duty cycle ratio

plus de 3 ans il y a

A résolu


execute the declaration in strings and return value
execute the commands in strings and return value input='a=23' output=23

plus de 3 ans il y a

A résolu


Identify the heavier bag
There are N=2^n bags of rice looking alike, N-1 of which have equal weight and one is slightly heavier. The weighing balance is ...

plus de 3 ans il y a

A résolu


print 'Hello W0rld'

plus de 3 ans il y a

A résolu


Replicate elements in vectors (★★★)
(copy of Prob 867) Replicate each element of a row vector (with NaN) a constant number of times. Examples n=2, A=[1 2...

plus de 3 ans il y a

A résolu


Factorize uniquely! (★★)

plus de 3 ans il y a

A résolu


Fair Scoring for Cody
The length-based scoring system for Cody has a few well-known loopholes that allow clever programmers to hide complex code insid...

plus de 3 ans il y a

A résolu


Check if integer is a prime number
Check if integer i is a prime number. Returns logical true '1' if it is.

plus de 3 ans il y a

A résolu


String Delimination and Outputting
In this problem, take an incoming string and deliminate the string based on spaces. Output the first string in between the space...

plus de 3 ans il y a

A résolu


Make combination of two given matrices.
Make a combination of the two given matrices as a given example. Example: input1 = [1 2 3; 4 5 6]; input2 = [7 8; 9 10...

plus de 3 ans il y a

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 3 ans il y a

A résolu


Polygon Interior Angle Sum
Given the number of sides of a regular polygon, find the sum of interior angles. Return 0 for input for which regular polygon a...

plus de 3 ans il y a

A résolu


Change on Spiral Matrix
n>=3, generate a matrix of nth such that n^2 is the max number, and max number must be in [1,1] or [end, end]. One example will ...

plus de 3 ans il y a

A résolu


Add consecutive integer numbers
Given consecutive numbers, add the numbers *without using the sum command in MATLAB.*

plus de 3 ans il y a

Charger plus