Answered

How to position box plots in one figure without overlap?

Your third boxplot as a matrix going in but the position is a scalar, documentation says 'position' should have as many values a...

How to position box plots in one figure without overlap?

Your third boxplot as a matrix going in but the position is a scalar, documentation says 'position' should have as many values a...

20 days ago | 0

Answered

Area Mach Number Relation

Put all that code info a function with inputs/outputs; call it for each ARatio you want. https://en.wikipedia.org/wiki/Wrapper_...

Area Mach Number Relation

Put all that code info a function with inputs/outputs; call it for each ARatio you want. https://en.wikipedia.org/wiki/Wrapper_...

20 days ago | 0

Answered

Area Mach Number Relation

You can format posts to look llike ML text and make them easier to read. Without reading any of your code it sounds like you ca...

Area Mach Number Relation

You can format posts to look llike ML text and make them easier to read. Without reading any of your code it sounds like you ca...

21 days ago | 0

Question

Use a Live Script to document an APP?

I am building a Matlab APP for my employer and as it grows in size, complexity and userbase I am seeing that it will need some f...

28 days ago | 1 answer | 0

Question

Pre-determine plot ranges?

Given two vectors of the same length is there a way to determine the axes ranges that would result if the data were plotted with...

2 months ago | 1 answer | 0

Answered

isprime function seems to have poor performance

>> tic, isprime(2^607-1), toc ans = logical 0 Elapsed time is 0.453590 seconds. >> tic, isprime(uint64(2^1279-1)),to...

isprime function seems to have poor performance

>> tic, isprime(2^607-1), toc ans = logical 0 Elapsed time is 0.453590 seconds. >> tic, isprime(uint64(2^1279-1)),to...

2 months ago | 0

Answered

Index in position 2 exceeds array bounds (must not exceed 1).

Your first line is making "elem" a scalor but the if test is using it as a martix; this does not work.

Index in position 2 exceeds array bounds (must not exceed 1).

Your first line is making "elem" a scalor but the if test is using it as a martix; this does not work.

2 months ago | 0

Answered

Deleting overlapping lines in a plot

.fig files retain Children information of the figure; you can loop over the Children and delete based on color.

Deleting overlapping lines in a plot

.fig files retain Children information of the figure; you can loop over the Children and delete based on color.

2 months ago | 0

| accepted

Answered

How to speed up function approximation?

I dont have those toolboxes but often you can start an optimization problem with a randomly selected sub-set of data run for a s...

How to speed up function approximation?

I dont have those toolboxes but often you can start an optimization problem with a randomly selected sub-set of data run for a s...

2 months ago | 0

Answered

How to ignore an element(s) in a vector or matrix

You can specify a sub compontent of a matrix but the resulting matrix math needs to remain logical >> theta = [1,2,3,4]; alpha ...

How to ignore an element(s) in a vector or matrix

You can specify a sub compontent of a matrix but the resulting matrix math needs to remain logical >> theta = [1,2,3,4]; alpha ...

2 months ago | 0

| accepted

Answered

Is it possible to add row vectors into a matrix with a for loop?

A loop is not needed for your simple demo >> mat = [sample1; sample2] mat = 1 2 3 4 5 6 But yes y...

Is it possible to add row vectors into a matrix with a for loop?

A loop is not needed for your simple demo >> mat = [sample1; sample2] mat = 1 2 3 4 5 6 But yes y...

2 months ago | 0

| accepted

Answered

how to pick up all combination of numbers from multiple vectors

I use allcomb from the Exchange - works great. Works with chars too. It uses ndgrid under the hood and is probably mostly a pa...

how to pick up all combination of numbers from multiple vectors

I use allcomb from the Exchange - works great. Works with chars too. It uses ndgrid under the hood and is probably mostly a pa...

2 months ago | 0

Answered

How to create an empty edit field (numeric) in app designer

Can you make the input a text field and reject anything that does not convert to a number?

How to create an empty edit field (numeric) in app designer

Can you make the input a text field and reject anything that does not convert to a number?

2 months ago | 0

Answered

calculate difference of euler angles between two dynamic moving objects

Are you trying to compare the rotation matries directly or are you compairing the euler angles? I am not sure you can use the m...

calculate difference of euler angles between two dynamic moving objects

Are you trying to compare the rotation matries directly or are you compairing the euler angles? I am not sure you can use the m...

2 months ago | 0

Question

Passing data into and out of an App

I am new to Apps and would like to make sure I am clear on how to it is best to get data into and out of an App. I need to be a...

2 months ago | 1 answer | 0

Question

Initialize a model in steady state

I have a Simulink model of an aircraft that I would like to have start in a steady state trim condition before the model runs. ...

6 months ago | 0 answers | 0

Question

Can I disable linear indexing?

I am working with a large number of matrices of varying dimensions and have many times typed in the wrong number of indexes when...

12 months ago | 2 answers | 0

Question

Can an APP access the calling functions workspace?

If I execute an APP can it access the workspace of a function I am debugging? I am trying to write an APP that will plot my c...

1 year ago | 0 answers | 0

Solved

First non-zero element in each column

For a given matrix, calculate the index of the first non-zero element in each column. Assuming a column with all elements zero ...

2 years ago

Solved

Check if number exists in vector

Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

2 years ago

Solved

Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.

Submit your answer to this problem a multiple of 5 seconds after the hour. Your answer is irrelevant; the only thing that matte...

2 years ago

Solved

How to subtract?

*± ± ± ± ± ± ± ± ± ± ±* * Imagine you need to subtract one...

2 years ago

Question

plot legends with custom symbols

I am doing something like >> XX = 0; YY = 0; >> h1 = plot( XX, YY, ['.y'] ); hold on >> set(h1, 'markersize', 30); ...

4 years ago | 1 answer | 1