A résolu


Given two strings, find the maximum overlap
Given two strings s1 and s2, create a new string s3 which is as short as possible and contains both strings. If s1 = [1 2...

presque 13 ans il y a

A résolu


Calculate the Levenshtein distance between two strings
This problem description is lifted from <http://en.wikipedia.org/wiki/Levenshtein_distance>. The Levenshtein distance betwee...

presque 13 ans il y a

A résolu


Can I make a right triangle ?
Input(a) - is vector with any amount of values. Interpreted as legths of sides. Output(b): * Is true if there are any 3 va...

presque 13 ans il y a

A résolu


Make a list string
Given a cell string, produce a string separating the items with spaces and commas and with an 'and' preceding the final item, an...

presque 13 ans il y a

A résolu


Do you like your boss?
Do you like your boss? Answer can be any string! For example: Boss = 'Do you like your boss?'; Output = 'yes' or ...

presque 13 ans il y a

Réponse apportée
Problem Multiplying- mtimes doesn't work for cells
Two things: 1) You might want to change the variable name "prod" to something else. "Prod" is a built-in matlab function that...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
Create a graph with date axis
help datetick Also: http://www.mathworks.com/help/matlab/ref/datetick.html

presque 13 ans il y a | 0

| A accepté

A résolu


Count consecutive 0's in between values of 1
So you have some vector that contains 1's and 0's, and the goal is to return a vector that gives the number of 0's between each ...

presque 13 ans il y a

A résolu


Volume difference between Ellipsoid and Sphere
Given an ellipsoid of semi principal axis (a,b,c) find the volume of the difference between this ellipsoid and the sphere with...

presque 13 ans il y a

A résolu


Wheat on a chessboard pt 1
If a chessboard were to have wheat placed upon each square such that one grain were placed on the first square and each successi...

presque 13 ans il y a

Réponse apportée
Writing a set of functions and equations to calculate temperture
Some hints: - Your function is going to have two inputs: a numerical temperature value and a string character that is either ...

presque 13 ans il y a | 0

A résolu


Function Iterator
Given a handle fh to a function which takes a scalar input and returns a scalar output and an integer n >= 1, return a handle f...

presque 13 ans il y a

A résolu


Encode Roman Numerals
Create a function taking a non-negative integer as its parameter and returning a string containing the Roman Numeral representat...

presque 13 ans il y a

A résolu


Longest Divisor Run
Given the vector a, find the longest run of consecutive numbers that can be evenly divided by the same number d where d > 1. ...

presque 13 ans il y a

A résolu


Word Counting and Indexing
You are given a list of strings, each being a list of words divided by spaces. Break the strings into words, then return a maste...

presque 13 ans il y a

Réponse apportée
Without using the roots command, write a function to calculate roots of the quadratic equation
No need to call any built-in function. Just write your own using the quadratic formula.

presque 13 ans il y a | 0

| A accepté

A résolu


Find the peak 3n+1 sequence value
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

presque 13 ans il y a

A résolu


Generate the Matrix!
Given n, generate the following matrix: a = [ n n-1 n-2 ... 2 1; n-1 n-1 n-2 ... 2 1; n-2 n-2 n-2 ... 2 1;...

presque 13 ans il y a

A résolu


Creating a s-function for RTW
I need to create a simulink block that will behave differently depending on whether I am simulating the model or building code. ...

presque 13 ans il y a

Réponse apportée
How do i reconstruct a matrix???
M(:,:,2) = flipud(M(:,:,2)) As an example: M = rand(3,3,3); %random example 3d matrix M(:,:,2) = flipud(M(:,:,2));

presque 13 ans il y a | 0

Réponse apportée
handles using GUIDE, global vs. handles
Using the handles structure is a much more neat, simple and safe way of using variables in different functions. It also helps th...

presque 13 ans il y a | 2

| A accepté

Réponse apportée
have a figure slide under another
Does this work? % Example f = figure; % create first figure g = figure; % create second figure (appears in front of f...

presque 13 ans il y a | 0

A résolu


Calculate the nth Fibonacci number USING 'Golden Ratio' concept
f = [1 1 2 3 5 8 13 ...] If n=6, f(6)=8

presque 13 ans il y a

A résolu


Mandelbrot Numbers
The <http://en.wikipedia.org/wiki/Mandelbrot_set Mandelbrot Set> is built around a simple iterative equation. z(1) = c z...

presque 13 ans il y a

A résolu


How many jokers?
* Given DNA codes of a group of suspects, * and a code for certain types of jokers, * Count how many jokers of that type. * ...

presque 13 ans il y a

A résolu


Calculate compression ratio of engine
Calculate compression ratio of engine given compression volume of cylinder(Vc), piston stroke(s) and valve diameter(d)

presque 13 ans il y a

A résolu


Calculate Engine Power
Calculate Engine Power (P) in kW given the values of Torque(M) in Nm and Engine Speed(n) in rpm

presque 13 ans il y a

A résolu


What number has this problem?
This problem is added because it is problem number *???* in the "Community" problems section. <http://www.mathworks.de/matlab...

presque 13 ans il y a

Réponse apportée
command window not refreshing
Does this topic address your issue? http://www.mathworks.com/matlabcentral/answers/79489-java-1-6-0_51-breaks-matlab-2012b-an...

presque 13 ans il y a | 0

| A accepté

A résolu


Person of interest?
given a person_of_interest, what is his_name?

presque 13 ans il y a

Charger plus