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.

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

5 hours ago | 0

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

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

7 hours ago | 0

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

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

5 days 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?

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

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

7 days ago | 0 answers | 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. ...

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

10 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