Question

Evaluate string as structure

I wish to load a structure based on a string input and copy the contents to a new structure. I can do this with eval, but would ...

3 months ago | 2 answers | 0

Answered

how to sort 2 columns values based on one column

Check help on 'sortrows'.

how to sort 2 columns values based on one column

Check help on 'sortrows'.

6 months ago | 0

Answered

Result producing 1x5 array instead of 10x5?

Your first method overwites the result every loop with a [ 1 x 5 ] array. You could (among many other solutions) use: n = 10;...

Result producing 1x5 array instead of 10x5?

Your first method overwites the result every loop with a [ 1 x 5 ] array. You could (among many other solutions) use: n = 10;...

6 months ago | 0

Answered

Place text below patch object

The functionality I need is indeed what is offered by the two linked functions. Whilst the specific example may have been bette...

Place text below patch object

The functionality I need is indeed what is offered by the two linked functions. Whilst the specific example may have been bette...

8 months ago | 0

Question

Place text below patch object

I have plotted a triangle as a patch object on my figure. I wish to add a text box uicontrol object just below it to add inform...

8 months ago | 2 answers | 0

Question

Colour background for polar axes

I am trying to recreate a display (which has a black background) with a polar plot. If I use polarplot I cannot add patch item...

8 months ago | 0 answers | 0

Question

Error catching in Embedded Matlab

I want to replicate the error catching capability of 'try / catch' but as I need to compile the code try/catch is not available....

1 year ago | 0 answers | 0

Question

Turn on 'View Figure Toolbar' programmaticaly

I have generated a figure to which I add text via a uicontrol command. This turns off visibility of the 'Figure Toolbar'. I ...

5 years ago | 1 answer | 0

Answered

how can i insert markers and merge four graphs in one?

Try help documentation on subplot, hold on, annotation

how can i insert markers and merge four graphs in one?

Try help documentation on subplot, hold on, annotation

5 years ago | 0

Question

extract equation from cfit contents

I have a fit object cfit for which I can access the coeffeicients by using coeffvalues. I can also 'see' the model used but ...

5 years ago | 1 answer | 0

Question

Auto save changes in low level functions

When I make edits to a (top level) function, running it will automatically save the changes prior to execution. However, any cha...

6 years ago | 0 answers | 0

Solved

Convert a vector into a number

This is a sub problem related to this problem: <http://www.mathworks.com/matlabcentral/cody/problems/621-cryptomath-addition>...

6 years ago

Solved

Tell me the slope

Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];

6 years ago

Question

Generating an app mlappinstall file

I am attempting to programmatically create a mlappinstall file (to install an app) as follows : matlab.apputil.package( 'Z:\A...

6 years ago | 0 answers | 0

Question

How to clear dataset class ?

I load a dataset from a gui. When I close the gui the dataset is not cleared. The command 'whos' gives an empty response but the...

7 years ago | 2 answers | 0

Solved

Which values occur exactly three times?

Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

7 years ago

Solved

Target sorting

Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

7 years ago

Solved

Determine if input is odd

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

7 years ago

Solved

Column Removal

Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

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

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

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

7 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

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