Solved


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

13 years ago

Solved


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

13 years ago

Solved


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

13 years ago

Solved


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

13 years ago

Solved


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

13 years ago

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

13 years ago | 0

| accepted

Answered
Create a graph with date axis
help datetick Also: http://www.mathworks.com/help/matlab/ref/datetick.html

13 years ago | 0

| accepted

Solved


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

13 years ago

Solved


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

13 years ago

Solved


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

13 years ago

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

13 years ago | 0

Solved


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

13 years ago

Solved


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

13 years ago

Solved


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

13 years ago

Solved


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

13 years ago

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

13 years ago | 0

| accepted

Solved


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

13 years ago

Solved


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

13 years ago

Solved


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

13 years ago

Answered
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));

13 years ago | 0

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

13 years ago | 2

| accepted

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

13 years ago | 0

Solved


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

13 years ago

Solved


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

13 years ago

Solved


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

13 years ago

Solved


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

13 years ago

Solved


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

13 years ago

Solved


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

13 years ago

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

13 years ago | 0

| accepted

Solved


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

13 years ago

Load more