Professional Interests: model-based SW development, agile software development, optimization, modeling, statistics, OR, IA, engine calibration

Solved

Pizza!

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

5 years ago

Solved

poll: would you like the regexp (?@cmd) functionality to be banned in Cody?

This problem is a poll (and a little bit of "white hat hacktivism" as well) regarding Cody users sentiment about the use of rege...

5 years ago

Solved

Swap the input arguments

Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

5 years ago

Solved

Select every other element of a vector

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

5 years ago

Question

Is it possible to save/get a Layout of docked figures?

Hello As explained by Yair Altman it is possible to set a Layout of docked figures, for example as follows: desktop = com.ma...

7 years ago | 0 answers | 0

Answered

Programatically change DTDocumentBar position

This post might help you a little bit: http://undocumentedmatlab.com/blog/disabling-menu-entries-in-deployed-docked-figures/

Programatically change DTDocumentBar position

This post might help you a little bit: http://undocumentedmatlab.com/blog/disabling-menu-entries-in-deployed-docked-figures/

7 years ago | 0

Answered

Why does QUESTDLG return the wrong button string if I use the TAB key to switch between different buttons and then hit the Return key using MATLAB 7.3 (R2006b)?

This issue can be fixed easily by adding/editing 2 lines in questdlg: in the KeyPressFcn callback: function cb_KeyPressFcn...

Why does QUESTDLG return the wrong button string if I use the TAB key to switch between different buttons and then hit the Return key using MATLAB 7.3 (R2006b)?

This issue can be fixed easily by adding/editing 2 lines in questdlg: in the KeyPressFcn callback: function cb_KeyPressFcn...

7 years ago | 3

Answered

superscript and subscript for figure 'name'

Copy/paste the upperscript character: figure('Name','SHM²');

superscript and subscript for figure 'name'

Copy/paste the upperscript character: figure('Name','SHM²');

7 years ago | 0

Solved

Determine whether a vector is monotonically increasing

Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

8 years ago

Solved

Find all elements less than 0 or greater than 10 and replace them with NaN

Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

8 years ago

Solved

Remove white space from the string

Remove the white spaces (trailing and leading) from the input variable

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

8 years ago

Solved

Swap the first and last columns

Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

8 years 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:...

8 years ago

Solved

Determine if input is odd

Given the input n, return true if n is odd or false if n is even.

8 years ago

Solved

Find the sum of all the numbers of the input vector

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

8 years ago

Answered

How to change starting direction in Matlab 2012a?

Create a Matlab Shortcut with a Start-in directory option.

How to change starting direction in Matlab 2012a?

Create a Matlab Shortcut with a Start-in directory option.

8 years ago | 0

Question

How to add a menu or Button to Matlab Editor?

Has someone any idea how to add a menu to the Matlab Editor? Or how to add a button to the Toolbar of the Matlab Editor? Many ...

8 years ago | 0 answers | 1