Answered
How to tune a PID Controller for a plant with two integrators?
Hi Aneesh Rao, PID controller tuning is a field many people worked on already. Have a look here for references: * <https:/...

7 years ago | 0

Answered
Levenberg Marquardt Curve Fitting Algorithm
Hi Jonathan Trueblood, Levenberg-Marquardt-Algorithm is built-in into <https://de.mathworks.com/help/optim/ug/lsqcurvefit.htm...

7 years ago | 0

Answered
Take row from a vector based on the value of another vector
Hi Jerry, Matlab documentation is your friend: <https://de.mathworks.com/help/matlab/math/matrix-indexing.html> C = A...

7 years ago | 0

Answered
please help with multiplication and division function
Hi Emmanuel Akpan, The question you raised is not clear. Taking into consideration the given equation you can find easily by ...

7 years ago | 0

Answered
How to insert a line over a heatmap using code?
Hi Samantha Clayton: Since I do not know your code I can only demonstrate in the following example how to draw a vertical and...

7 years ago | 1

Answered
Split array in subarrays According to condition
Hi SmaShBr0ther: The requested functionality is obtained by logical indexing * <https://blogs.mathworks.com/steve/2008/01/...

7 years ago | 0

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

7 years ago

Solved


Connect Four Win Checker
<http://en.wikipedia.org/wiki/Connect_Four Connect Four> is a game where you try to get four pieces in a row. For this problem, ...

7 years ago

Solved


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

7 years ago

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

7 years ago

Answered
How do I curve fit a specific non-linear function which passes through 2 fixed points?
Hello Anantha Narayanan Suresh Babu: The question has been raised already. You can find the question and answers here: <ht...

7 years ago | 2

| accepted

Answered
Trying to calculate variance in cells nested within a 1x9 cell
Hello Jonathan Marchetto: I generated data that should fit your description: X = {}; for ik = 1:9 X{ik} = num2cel...

7 years ago | 0

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

7 years ago

Solved


Knight's Tour Checker
Given a matrix a, determine whether or not a legal <http://en.wikipedia.org/wiki/Knight's_tour knight's tour> is present. The kn...

7 years ago

Solved


What is the next step in Conway's Life?
Given a matrix A that represents the state of <http://en.wikipedia.org/wiki/Conway's_Game_of_Life Conway's game of Life> at one ...

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

7 years ago

Answered
Use packages to group the methods of the class
Hi Andrea Stevanato, according to Matlab documentation there is no packaging of methods introduced: <https://de.mathworks....

7 years ago | 0

| accepted

Solved


DNA N-Gram Distribution
Given a string s and a number n, find the most frequently occurring n-gram in the string, where the n-grams can begin at any poi...

7 years ago

Answered
How to assign ascii type characters to a signal using a foor loop
Hi Marcos Rios, as I understand you would like to change the x tick positions and labels. There is a fine example documented ...

7 years ago | 0

Solved


Read a column of numbers and interpolate missing data
Given an input cell array of strings s, pick out the second column and turn it into a row vector of data. Missing data will be i...

7 years ago

Solved


Remove the polynomials that have positive real elements of their roots.
The characteristic equation for a dynamic system is a polynomial whose roots indicate its behavior. If any of the <http://www.ma...

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

7 years ago

Solved


Remove the small words from a list of words.
Your job is to tidy up a list of words that appear in a string. The words are separated by one or more spaces. Remove all words ...

7 years ago

Solved


Find the palindrome
Given the string a, find the longest palindromic sub-string b. So when a = 'xkayakyy'; you should return b = 'kayak';

7 years ago

Solved


That's some divisor you've got there...
Given a positive integer x, calculate the sum of all of the divisors of the number. Please include the number itself in your fi...

7 years ago

Solved


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

7 years ago

Answered
Updating of uicontrol edit
*Copied from* <https://de.mathworks.com/matlabcentral/answers/400758-how-do-i-use-the-edit-text-box-in-a-gui-to-define-variab...

7 years ago | 0

Solved


Find the two-word state names
Given a list of states, remove all the states that have two-word names. If s1 = 'Alabama Montana North Carolina Vermont N...

7 years ago

Answered
How do I use the Edit Text box in a GUI to define variables and structure fields in another function?
Hi Hector De La Torre, here a solution I gave for a different question which passes handles to (possibly external) callback f...

7 years ago | 0

Answered
How do I add colour to the faces of a patched shape
Hello Jacob Cialou-Clark: as you specify a 3D faced object you have to take care which vertices you connect to faces. Right n...

8 years ago | 0

| accepted

Load more