Question

Auto close uifigure upon deletion of handle from workspace

I have a GUI class that creates an uifigure (see below), I can create an instance of this class in my workspace: tG = testGUI(...

7 months ago | 1 answer | 0

Answered

parameter estimation for a set of differential equations using fmincon function in matlab

Just look at your error traceback! Error using odearguments (line 93) @(T,C)KINETICS1(P,T,C) must return a column vector. Bu...

parameter estimation for a set of differential equations using fmincon function in matlab

Just look at your error traceback! Error using odearguments (line 93) @(T,C)KINETICS1(P,T,C) must return a column vector. Bu...

7 months ago | 1

Question

Obtain step sizes of (stiff) ODE solver with fixed time span vector, but variable integration step size

I am trying to solve a stiff ODE using ode15s. The solver takes a very small step size at some points during the simulation, whi...

9 months ago | 0 answers | 0

Solved

Maximum running product for a string of numbers

Given a string s representing a list of numbers, find the five consecutive numbers that multiply to form the largest number. Spe...

11 months ago

Solved

Summing Digits within Text

Given a string with text and digits, add all the numbers together. Examples: Input str = '4 and 20 blackbirds baked in a...

11 months ago

Solved

Counting in Finnish

Sort a vector of single digit whole numbers alphabetically by their name, in Finnish. See the Wikipedia page for <http://en.wik...

11 months ago

Solved

The Goldbach Conjecture

The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

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

11 months ago

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

11 months ago

Solved

Find common elements in matrix rows

Given a matrix, find all elements that exist in every row. For example, given A = 1 2 3 5 9 2 5 9 3 2 5 9 ...

11 months ago

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

11 months ago

Solved

Return the 3n+1 sequence for n

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

11 months ago

Solved

Alphabetize by last name

Given a list of names in a cell array, sort the list by the last name. So if list = {'Barney Google','Snuffy Smith','Dagwood ...

11 months ago

Solved

Sum the elements in either diagonal of a square matrix

Sum the elements of a square matrix that lie on either the major diagonal or anti-diagonal. (Include all elements that are part ...

12 months ago

Solved

Remove any row in which a NaN appears

Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

1 year 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';

1 year ago

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

1 year ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

1 year ago

Question

Matlab doc command not working: Error using doc>displayDocPage (line 171)

The doc command in my Matlab R2018B (relatively fresh) install on Windows 10 64bit is not working anymore. When I type doc a...

1 year ago | 0 answers | 0

Question

Export char as Hex file

I have a hexadecimal file that contains ESC/P2 sequences that can be sent to the printer to print a page. 00 00 00 1B 01 ...

3 years ago | 0 answers | 0