Answered

how to plot multiple waves on one surface

Here is a mock up solution. Code is: below. I've used part of your data, but I've made up some similar data (using a sinc fun...

how to plot multiple waves on one surface

Here is a mock up solution. Code is: below. I've used part of your data, but I've made up some similar data (using a sinc fun...

7 Monate ago | 0

Answered

LaTex with 2 strings separated by a num2str

Use an escape (backslash) for the % errordisplay=[' $\varepsilon_{RTP}=$ ',num2str(rtep),'\%'];

LaTex with 2 strings separated by a num2str

Use an escape (backslash) for the % errordisplay=[' $\varepsilon_{RTP}=$ ',num2str(rtep),'\%'];

7 Monate ago | 1

Answered

Solving second order implicit differential equation

Just convert the 2nd order ODE into Cauchy form. You will of course need 2 initial condtions. Define x, now you original equat...

Solving second order implicit differential equation

Just convert the 2nd order ODE into Cauchy form. You will of course need 2 initial condtions. Define x, now you original equat...

7 Monate ago | 0

| accepted

Answered

Stimulating Chemical Reaction with Differential Equation on Simulink

Homework? Anyway, to get you started, take a look at my Simulink layout: I've painted the integrators yellow, and I have expli...

Stimulating Chemical Reaction with Differential Equation on Simulink

Homework? Anyway, to get you started, take a look at my Simulink layout: I've painted the integrators yellow, and I have expli...

7 Monate ago | 0

Answered

how do i rotate an airfoil points? and plot.

Does this look better? Some (small) changes to your code. I swapped your rotation direction to better follow your example pl...

how do i rotate an airfoil points? and plot.

Does this look better? Some (small) changes to your code. I swapped your rotation direction to better follow your example pl...

7 Monate ago | 2

| accepted

Answered

plotting an exponential will a matrix over time

OK, your question is a bit vauge, and there are missing bits, i.e. the start point for y. I'm assuming you are trying to solve...

plotting an exponential will a matrix over time

OK, your question is a bit vauge, and there are missing bits, i.e. the start point for y. I'm assuming you are trying to solve...

7 Monate ago | 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

8 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) *...

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

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

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

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

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

8 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)

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

8 Monate ago | 0