Answered

finding lengths of an ellipse

If you need a little more help, then it pays to plot the ellipse and look at the arc lengths. t = linspace(0,2*pi)'; x = @(t)...

finding lengths of an ellipse

If you need a little more help, then it pays to plot the ellipse and look at the arc lengths. t = linspace(0,2*pi)'; x = @(t)...

4 Monate ago | 0

| accepted

Answered

I want to know how i can apply k-means clustering on my scatter plotted dataset.

You probably want to use kmeans. Since you didn't give us any data to workj with, nor did you give us any idea of the number o...

I want to know how i can apply k-means clustering on my scatter plotted dataset.

You probably want to use kmeans. Since you didn't give us any data to workj with, nor did you give us any idea of the number o...

4 Monate ago | 1

| accepted

Answered

Fitting model to titration data

For one thing, you don't assign an answer to function sseval. That's not going to help things. Here's my solution: I've re...

Fitting model to titration data

For one thing, you don't assign an answer to function sseval. That's not going to help things. Here's my solution: I've re...

4 Monate ago | 1

Answered

Position of two subplots with bar charts

One option is to obtain the position of the plot with the long legend, and then re-size the other to the same width. But it's pr...

Position of two subplots with bar charts

One option is to obtain the position of the plot with the long legend, and then re-size the other to the same width. But it's pr...

4 Monate ago | 0

Answered

Histogram x axis tick labels – string

Try >> get(gca,'XTicklabel') and hack that.

Histogram x axis tick labels – string

Try >> get(gca,'XTicklabel') and hack that.

4 Monate ago | 1

| accepted

Answered

Histogram x axis tick labels – string

Released 2016b. What's your version? >> which xticklabels C:\Program Files\MATLAB\R2018b\toolbox\matlab\graph3d\xticklabels.m...

Histogram x axis tick labels – string

Released 2016b. What's your version? >> which xticklabels C:\Program Files\MATLAB\R2018b\toolbox\matlab\graph3d\xticklabels.m...

4 Monate ago | 0

Answered

Histogram x axis tick labels – string

Hack the final xticklabel x = randn(1e5,1); x= x-min(x)+1; histogram(log(x)) xlim([0,3]) xt = xticklabels; xt{end} = 'oth...

Histogram x axis tick labels – string

Hack the final xticklabel x = randn(1e5,1); x= x-min(x)+1; histogram(log(x)) xlim([0,3]) xt = xticklabels; xt{end} = 'oth...

4 Monate ago | 1

Answered

solving a very complicated equation implicitly

A quick answer is you probably need to dot-divide (./) the term with the (vector) rpf. 2nd point. Because I used a root finder...

solving a very complicated equation implicitly

A quick answer is you probably need to dot-divide (./) the term with the (vector) rpf. 2nd point. Because I used a root finder...

4 Monate ago | 0

Answered

Y-axis labels overlaps with figure when using a reversed x-axis

Ah, missed that. Nasty bug/feature. text(10,10.5e9,'x10^9') % place manually ?

Y-axis labels overlaps with figure when using a reversed x-axis

Ah, missed that. Nasty bug/feature. text(10,10.5e9,'x10^9') % place manually ?

4 Monate ago | 0

Answered

Y-axis labels overlaps with figure when using a reversed x-axis

Yes, it seems to only happen when there is an exponent in the y-axis. And even then the exponent must have double figures. Also ...

Y-axis labels overlaps with figure when using a reversed x-axis

Yes, it seems to only happen when there is an exponent in the y-axis. And even then the exponent must have double figures. Also ...

4 Monate ago | 0

Answered

solving a very complicated equation implicitly

OK, try this: My approach was to embed an integral inside a root solver. I basically used your code and coefficients, but chan...

solving a very complicated equation implicitly

OK, try this: My approach was to embed an integral inside a root solver. I basically used your code and coefficients, but chan...

4 Monate ago | 1

Answered

How can I find the coefficients of a second order ODE using data points?

You will also need to have collected x(t) at each sample point.

How can I find the coefficients of a second order ODE using data points?

You will also need to have collected x(t) at each sample point.

4 Monate ago | 0

Answered

to find the root of quantum transcendental equation

Well you have given us quite a puzzler; little background info and no context. I'm assuming you are looking for the value Ee s...

to find the root of quantum transcendental equation

Well you have given us quite a puzzler; little background info and no context. I'm assuming you are looking for the value Ee s...

4 Monate ago | 0

Answered

How to get a kernel density plot

You also can use ksdensity from the Stats toolbox. But you have supplied us with a matrix with 25 columns! Which column were you...

How to get a kernel density plot

You also can use ksdensity from the Stats toolbox. But you have supplied us with a matrix with 25 columns! Which column were you...

4 Monate ago | 0

| accepted

Answered

Coefficents not reflecting the curve obtained using fit function

I suspect that the problem is that you have normalised the data, and then forgot that when you looked at the parameter values. ...

Coefficents not reflecting the curve obtained using fit function

I suspect that the problem is that you have normalised the data, and then forgot that when you looked at the parameter values. ...

4 Monate ago | 0

| accepted

Answered

geoaxes, geoscatter does not work

Correct, you'll need to upgrade to use this functionality. (I think the mapping toolbox does replicate this to some degree tho...

geoaxes, geoscatter does not work

Correct, you'll need to upgrade to use this functionality. (I think the mapping toolbox does replicate this to some degree tho...

4 Monate ago | 0

Answered

Error using load Out of memory. Type HELP MEMORY for your options.

Did you do as suggested and actually check your memory? >> memory Maximum possible array: 2745 MB (2.878e+09 bytes) *...

Error using load Out of memory. Type HELP MEMORY for your options.

Did you do as suggested and actually check your memory? >> memory Maximum possible array: 2745 MB (2.878e+09 bytes) *...

4 Monate ago | 0

| accepted

Answered

USing BVP solver to solve 2-D Laplace’s equation?

If you mean bvp4c, then no it is not suitable since it solves boundary value ODEs in 1D, not PDEs in 2D. To solve Laplace's eqn ...

USing BVP solver to solve 2-D Laplace’s equation?

If you mean bvp4c, then no it is not suitable since it solves boundary value ODEs in 1D, not PDEs in 2D. To solve Laplace's eqn ...

4 Monate ago | 0

Answered

please help me to fix error and rectify it to a correct programme

In general, it's better to use column vectors by default. That way you don't make mistakes like above when concatenating. gamm...

please help me to fix error and rectify it to a correct programme

In general, it's better to use column vectors by default. That way you don't make mistakes like above when concatenating. gamm...

4 Monate ago | 0

Answered

geoaxes, geoscatter does not work

The function geoaxes was introduced in 2018b. What is your version? Type >> ver.

geoaxes, geoscatter does not work

The function geoaxes was introduced in 2018b. What is your version? Type >> ver.

4 Monate ago | 0

Answered

I would like to plot periodogram for my voice file how to do that?

You read in an audio file and set it to the variable y with sampling frequency fs, and then you immediately clobber it with a no...

I would like to plot periodogram for my voice file how to do that?

You read in an audio file and set it to the variable y with sampling frequency fs, and then you immediately clobber it with a no...

4 Monate ago | 0

Answered

Nonlinear Optimization problem in Matlab

Are you confusing x0, the start guess with x(0), which does not exist. In your constraint, you write x(0). If that is really wha...

Nonlinear Optimization problem in Matlab

Are you confusing x0, the start guess with x(0), which does not exist. In your constraint, you write x(0). If that is really wha...

4 Monate ago | 0

| accepted

Answered

Use the Matlab function EXPM()

I'll get you going on part (b): syms t positive A = sym([0,-5;1,-2]); Phi = expm(A*t)

Use the Matlab function EXPM()

I'll get you going on part (b): syms t positive A = sym([0,-5;1,-2]); Phi = expm(A*t)

4 Monate ago | 0

Answered

geoaxes, geoscatter does not work

Try the which function. This will tell you if the function exists on your path. >> which geoshow C:\Program Files\MATLAB\R201...

geoaxes, geoscatter does not work

Try the which function. This will tell you if the function exists on your path. >> which geoshow C:\Program Files\MATLAB\R201...

4 Monate ago | 0

Answered

Replace extreme outliers in dataset

Not difficult to hack, but slightly more complex to hack correctly. Just copy (and rename) the function into your work directory...

Replace extreme outliers in dataset

Not difficult to hack, but slightly more complex to hack correctly. Just copy (and rename) the function into your work directory...

4 Monate ago | 0

Answered

intlinprog no feasible solution

Are you sure you are implementing your either/or constraints properly? For example where is your "big M"? (see p6 of https://w...

intlinprog no feasible solution

Are you sure you are implementing your either/or constraints properly? For example where is your "big M"? (see p6 of https://w...

4 Monate ago | 0

Answered

Replace extreme outliers in dataset

Have you considered hacking the source of filloutliers.m? If it is only a matter of scaling, then it is probably a simple one li...

Replace extreme outliers in dataset

Have you considered hacking the source of filloutliers.m? If it is only a matter of scaling, then it is probably a simple one li...

4 Monate ago | 0

Answered

Method to Correlate Time Series Arrays of Differing Lengths

OK, I'll generate some fake data that is not aligned, and the do the above approach. %% Generate some data series that are sli...

Method to Correlate Time Series Arrays of Differing Lengths

OK, I'll generate some fake data that is not aligned, and the do the above approach. %% Generate some data series that are sli...

4 Monate ago | 0

Answered

Method to Correlate Time Series Arrays of Differing Lengths

One idea would be to: Start by finding a common time span in in all your data. Find the latest start time and the earliest fini...

Method to Correlate Time Series Arrays of Differing Lengths

One idea would be to: Start by finding a common time span in in all your data. Find the latest start time and the earliest fini...

4 Monate ago | 0

| accepted

Answered

Finding the traffic intensity, A in Erlang B

OK, perhaps there is no guarentee that the symbolic returns the real solution last, so in that case you need to resort to a nume...

Finding the traffic intensity, A in Erlang B

OK, perhaps there is no guarentee that the symbolic returns the real solution last, so in that case you need to resort to a nume...

4 Monate ago | 1