Answered

Plotting geo track over a map

you can use plotm to plot lat,long data onto a map axis. But there is a file exchange file that is optimized for plotting data ...

Plotting geo track over a map

you can use plotm to plot lat,long data onto a map axis. But there is a file exchange file that is optimized for plotting data ...

7 månader ago | 1

Answered

Using maximum of optimisation variable as an upper bound for another variable

you can do a bounded obtimization using this file from filecentral: fminsearchbnd

Using maximum of optimisation variable as an upper bound for another variable

you can do a bounded obtimization using this file from filecentral: fminsearchbnd

7 månader ago | 0

Answered

ODE Error: "Array indices must be positive integers or logical values"

You are calling bdipuniodefun(t,s) with s having values of 0 (values from icv). Your program then attempts to index to the "0" e...

ODE Error: "Array indices must be positive integers or logical values"

You are calling bdipuniodefun(t,s) with s having values of 0 (values from icv). Your program then attempts to index to the "0" e...

7 månader ago | 0

Answered

I want to solve multivariable equation

This is how you would sove this: syms x y r a b eqn =(x/y*((1+(r-1)/2*y^2)/(1+(r-1)/2*x^2))^((r+1)/2*(r-1))) == a/b sol...

I want to solve multivariable equation

This is how you would sove this: syms x y r a b eqn =(x/y*((1+(r-1)/2*y^2)/(1+(r-1)/2*x^2))^((r+1)/2*(r-1))) == a/b sol...

7 månader ago | 0

Answered

Saving matrices inside a loop for each iteration

You are not preallocating those variables. If you do that, you will get a significant increase in speed. In some situations, I h...

Saving matrices inside a loop for each iteration

You are not preallocating those variables. If you do that, you will get a significant increase in speed. In some situations, I h...

7 månader ago | 0

Answered

How to plot data samples in three dimensions?

you can use plot3. Let the row be y, time be x, and n be z. You will get a plot, but it won't be nice like what you show, as a r...

How to plot data samples in three dimensions?

you can use plot3. Let the row be y, time be x, and n be z. You will get a plot, but it won't be nice like what you show, as a r...

7 månader ago | 0

Answered

How can I generate an array that keeps all the values related to specific indices keeps the zero as reference value?

The following code does what you want for the values you gave as examples hope this helps, --ted y=[2 1 3 5 4] x=[ -2 -1 0 1...

How can I generate an array that keeps all the values related to specific indices keeps the zero as reference value?

The following code does what you want for the values you gave as examples hope this helps, --ted y=[2 1 3 5 4] x=[ -2 -1 0 1...

7 månader ago | 0

| accepted

Answered

HI, I have a question regarding histogram plots in matlab

Yes, use the optional edged arguement of histogram. you can see more here: histogram doc edges = [1:9 10]; h = histogram(...

HI, I have a question regarding histogram plots in matlab

Yes, use the optional edged arguement of histogram. you can see more here: histogram doc edges = [1:9 10]; h = histogram(...

7 månader ago | 0

| accepted

Answered

Passing in a function as an argument

you use the "@" character to pass a function, not the output of a funcitn. This looks like this: function main clc testCode...

Passing in a function as an argument

you use the "@" character to pass a function, not the output of a funcitn. This looks like this: function main clc testCode...

7 månader ago | 0

Answered

How to calculate the middle point between two points on the Earth in matlab?

There is a built in function in the matlab mapping toolbox that does what I think you are looking for: meanm Mean location of...

How to calculate the middle point between two points on the Earth in matlab?

There is a built in function in the matlab mapping toolbox that does what I think you are looking for: meanm Mean location of...

7 månader ago | 0

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

9 månader 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 ...

9 månader ago

Answered

Spikes when saving matlab figure as pdf

This is a MATLAB bug, and has been happening for a few years. It drives me crazy. For some discussion on this, and a workaround,...

Spikes when saving matlab figure as pdf

This is a MATLAB bug, and has been happening for a few years. It drives me crazy. For some discussion on this, and a workaround,...

mer än ett år ago | 1

Answered

how to draw multiple patches with different number of vertices?

Sometimes when I run into this class of problem, I find that the polyshape tool is the answer. For example, if I want to plot tw...

how to draw multiple patches with different number of vertices?

Sometimes when I run into this class of problem, I find that the polyshape tool is the answer. For example, if I want to plot tw...

mer än ett år ago | 0

Answered

I need to calculate lat and long for other point. Given one lat long and bearing.

The Matlab function <https://www.mathworks.com/help/map/ref/reckon.html reckon> is what you are looking for. For plotting the tr...

I need to calculate lat and long for other point. Given one lat long and bearing.

The Matlab function <https://www.mathworks.com/help/map/ref/reckon.html reckon> is what you are looking for. For plotting the tr...

mer än ett år ago | 0

Answered

How do I add commas to numbers using fprintf?

you can do this in two lines. from <https://www.mathworks.com/matlabcentral/answers/96131-is-there-a-format-in-matlab-to-display...

How do I add commas to numbers using fprintf?

you can do this in two lines. from <https://www.mathworks.com/matlabcentral/answers/96131-is-there-a-format-in-matlab-to-display...

nästan 2 år ago | 6

Answered

Is there a format in MATLAB to display numbers such that commas are automatically inserted into the display?

A simple way is to add this two line function: function numOut = addComma(numIn) jf=java.text.DecimalFormat; % comma ...

Is there a format in MATLAB to display numbers such that commas are automatically inserted into the display?

A simple way is to add this two line function: function numOut = addComma(numIn) jf=java.text.DecimalFormat; % comma ...

nästan 2 år ago | 8

Answered

how do i make a full text area scroll up when i add more text?

I had the exact same issue. My crude work around was to add the new text to the start rather than the end of the text block. As ...

how do i make a full text area scroll up when i add more text?

I had the exact same issue. My crude work around was to add the new text to the start rather than the end of the text block. As ...

nästan 2 år ago | 0

Solved

How to subtract?

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

mer än 2 år 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...

mer än 2 år ago