Answered

Problem of mathematics and programming

Like Walter said, what you are ultimately looking for are all the combinations you obtain from drawing 5 out of 50 without repla...

Problem of mathematics and programming

Like Walter said, what you are ultimately looking for are all the combinations you obtain from drawing 5 out of 50 without repla...

11 years ago | 0

Answered

Wrong phase for a time delay?

Angles aren't unique, you can add or subtract 360° as often as you want, so if you get a phase of 720° it's the same as 0°. Rig...

Wrong phase for a time delay?

Angles aren't unique, you can add or subtract 360° as often as you want, so if you get a phase of 720° it's the same as 0°. Rig...

11 years ago | 0

Answered

Damped plucked string wave equation Fourier series assignment/ matrix dimensions problem

In here w(i,j) = w + sin(n(i).*pi.*x(j)./L_s).*exp(-R./t).*alpha_n(i).*cos(Omega_n(i).*t) ... + beta_n(i).*sin(Omega_n(i)....

Damped plucked string wave equation Fourier series assignment/ matrix dimensions problem

In here w(i,j) = w + sin(n(i).*pi.*x(j)./L_s).*exp(-R./t).*alpha_n(i).*cos(Omega_n(i).*t) ... + beta_n(i).*sin(Omega_n(i)....

11 years ago | 0

| accepted

Answered

Plot heatmap with 3 variables

I suggest |imagesc()|, for instance: % Your x-axis x = linspace(0,2*pi); % y-axis y = linspace(0,2*pi); % a mesh beca...

Plot heatmap with 3 variables

I suggest |imagesc()|, for instance: % Your x-axis x = linspace(0,2*pi); % y-axis y = linspace(0,2*pi); % a mesh beca...

11 years ago | 2

Answered

How do I get ode45 to output the dependent variable value at each time step? I have other material properties in my differential equation that change with temperature, so I must update them with each change in temperature.

The answer to your topic is that the odefun, i.e. the function you pass to |ode45| as in |ode45(odefun,tspan,x0)| needs include ...

How do I get ode45 to output the dependent variable value at each time step? I have other material properties in my differential equation that change with temperature, so I must update them with each change in temperature.

The answer to your topic is that the odefun, i.e. the function you pass to |ode45| as in |ode45(odefun,tspan,x0)| needs include ...

11 years ago | 1

| accepted

Answered

genetic algorithm tool (Bit string)

I can't try right now, but I am fairly certain that your first few |if| statements could be substituted by s = 2.^(0:4) *X(...

genetic algorithm tool (Bit string)

I can't try right now, but I am fairly certain that your first few |if| statements could be substituted by s = 2.^(0:4) *X(...

11 years ago | 0

Answered

force a scientific notation format

Afaik that's not possible, since the tick labels aren't like normal text objects in that they support a subset of latex commands...

force a scientific notation format

Afaik that's not possible, since the tick labels aren't like normal text objects in that they support a subset of latex commands...

11 years ago | 0

Answered

Why ga() function is only finding minimum of the fitness function??...

Of course you can also use |1/f(x)| or |exp(-f(x))| or ..., since the Genetic Algorithm's success is basically luck anyway those...

Why ga() function is only finding minimum of the fitness function??...

Of course you can also use |1/f(x)| or |exp(-f(x))| or ..., since the Genetic Algorithm's success is basically luck anyway those...

11 years ago | 0

Answered

How to plot x y z coordinates and combine them with a 4th dimension

Afaik it is not possible to do that directly since |plot3| creates a line, and lines have only one color. However what you could...

How to plot x y z coordinates and combine them with a 4th dimension

Afaik it is not possible to do that directly since |plot3| creates a line, and lines have only one color. However what you could...

11 years ago | 0

Answered

How do I count and save twitter hashtags?

You should use regular expressions for that, you can do pretty much anything with them. This should do what you want to, and if ...

How do I count and save twitter hashtags?

You should use regular expressions for that, you can do pretty much anything with them. This should do what you want to, and if ...

11 years ago | 0

| accepted

Answered

hide one tail of errorbar

Here is a hack that should do what you want it to, odd request though to show only the upper half of the errors... Anyway: ...

hide one tail of errorbar

Here is a hack that should do what you want it to, odd request though to show only the upper half of the errors... Anyway: ...

11 years ago | 0

Answered

Problem Plotting Fourier Transforms of Sine waves

What version of Matlab and the Symbolic Toolbox are you using? I am using Matlab 2012b with the Symbolic Toolbox Version 5.9 an...

Problem Plotting Fourier Transforms of Sine waves

What version of Matlab and the Symbolic Toolbox are you using? I am using Matlab 2012b with the Symbolic Toolbox Version 5.9 an...

11 years ago | 0

Answered

How to create an interpolation surface for a wing ?

Hi, if you have the Curve Fitting Toolbox, then it's pretty easy, call the GUI cftool If you don't have it, on the othe...

How to create an interpolation surface for a wing ?

Hi, if you have the Curve Fitting Toolbox, then it's pretty easy, call the GUI cftool If you don't have it, on the othe...

11 years ago | 0

Answered

rose(directiondata) creates a rose graph with 0 degrees on the right. How do I use commands to rotate the whole graph so 0 degrees is at the top, 90 on the right etc.?

I don't think that is something that is easy to achieve, due to the fact that the |rose| command pieces a lot of things together...

rose(directiondata) creates a rose graph with 0 degrees on the right. How do I use commands to rotate the whole graph so 0 degrees is at the top, 90 on the right etc.?

I don't think that is something that is easy to achieve, due to the fact that the |rose| command pieces a lot of things together...

11 years ago | 0

| accepted

Answered

How to clear boxplots?

You should capture the handles of the objects created by |boxplot| in a variable, then you can delete them all together without ...

How to clear boxplots?

You should capture the handles of the objects created by |boxplot| in a variable, then you can delete them all together without ...

11 years ago | 1

Answered

How do I automatically annotate a 2D bar graph with corresponding p-values for each bar?

|bar| is a funny animal, it took me a little bit to figure out what's going on. First, the code that should be doing what you wa...

How do I automatically annotate a 2D bar graph with corresponding p-values for each bar?

|bar| is a funny animal, it took me a little bit to figure out what's going on. First, the code that should be doing what you wa...

11 years ago | 2

| accepted

Answered

how to normalize the image axis

So it appears, that |annontaion('arrow',...| is kind of annoying to work with, since it is based on a coordinate system of the _...

how to normalize the image axis

So it appears, that |annontaion('arrow',...| is kind of annoying to work with, since it is based on a coordinate system of the _...

11 years ago | 1

Answered

How to resolve this error ?From GUI executing simulink model

As your error states, you are trying to add a variable to a workspace that doesn't want you to. The workspace is likely the work...

How to resolve this error ?From GUI executing simulink model

As your error states, you are trying to add a variable to a workspace that doesn't want you to. The workspace is likely the work...

11 years ago | 0

| accepted

Answered

Switching the output between signals

Multiply your sine waves with a pulse, which is 1 when the multiplied sine wave is supposed to be active, 0 otherwise. I think t...

Switching the output between signals

Multiply your sine waves with a pulse, which is 1 when the multiplied sine wave is supposed to be active, 0 otherwise. I think t...

11 years ago | 0

Answered

how to display a word in a format

Strings are pretty much like vectors, simply get rid of the last 3 entries: s = s(1:end-3); As for the rest, have a lo...

how to display a word in a format

Strings are pretty much like vectors, simply get rid of the last 3 entries: s = s(1:end-3); As for the rest, have a lo...

11 years ago | 1

| accepted

Answered

Trying to keep two seperate figure windows?

I don't feel like reading through your post, since it isn't formatted, but I think I have a good idea what you need to know. ...

Trying to keep two seperate figure windows?

I don't feel like reading through your post, since it isn't formatted, but I think I have a good idea what you need to know. ...

11 years ago | 1

Answered

Colour of plot...not based on z coordinate, but on other variable.

|'CDataSource'| is the property you need. In your case: f = x.^2+y.^2; % The "other" function m = mesh(x,y,z) % m now cont...

Colour of plot...not based on z coordinate, but on other variable.

|'CDataSource'| is the property you need. In your case: f = x.^2+y.^2; % The "other" function m = mesh(x,y,z) % m now cont...

11 years ago | 0

Answered

trouble using quiver and contour plots.

Does this code achieve what you want: dx=0.05; dy=0.05; x=[-1:dx:1]; y=[0:dy:1]; [X Y] = meshgrid(x,y); P = X.^2 - (X....

trouble using quiver and contour plots.

Does this code achieve what you want: dx=0.05; dy=0.05; x=[-1:dx:1]; y=[0:dy:1]; [X Y] = meshgrid(x,y); P = X.^2 - (X....

11 years ago | 0

Answered

Plotting root locus with variables in transfer function

Yeah, like Azzi is hinting: The regular Root Locus shows you where the solutions of the equation 1+k*G(s) = 0 go as you increase...

Plotting root locus with variables in transfer function

Yeah, like Azzi is hinting: The regular Root Locus shows you where the solutions of the equation 1+k*G(s) = 0 go as you increase...

11 years ago | 1

Answered

How should be change ROOT LOCUS asymmetric?

That's interesting, that harmless looking transfer function really seems to be problematic for Matlab. You have already noted...

How should be change ROOT LOCUS asymmetric?

That's interesting, that harmless looking transfer function really seems to be problematic for Matlab. You have already noted...

11 years ago | 0

Answered

Plotting more than one DTMF frequencies on a graph

Okay, now that your question is clearer to me, I think this is what you want: t = 0:1/32798:0.25-1/32798; x2 = sin(2...

Plotting more than one DTMF frequencies on a graph

Okay, now that your question is clearer to me, I think this is what you want: t = 0:1/32798:0.25-1/32798; x2 = sin(2...

11 years ago | 0

| accepted

Answered

set the value of the variable in Transfer Function????

That is what the functions |freqresp| and |evalfr| are for. In your case: evalfr(Gtf,5) However, I hope you just forgot ...

set the value of the variable in Transfer Function????

That is what the functions |freqresp| and |evalfr| are for. In your case: evalfr(Gtf,5) However, I hope you just forgot ...

11 years ago | 4

| accepted

Answered

How can I make two axes on a clustered stack bar chart?

Here is simple tweak to |plotBarStackGroups.m| that will allow you to label every single bar from left to right. Just before ...

How can I make two axes on a clustered stack bar chart?

Here is simple tweak to |plotBarStackGroups.m| that will allow you to label every single bar from left to right. Just before ...

11 years ago | 0

| accepted

Answered

How do you create a surf plot in cylindrical coordinates?

Or even easier, remember that you're not forced to put just one variable |X| in the first argument of |surf|, all you need is a ...

How do you create a surf plot in cylindrical coordinates?

Or even easier, remember that you're not forced to put just one variable |X| in the first argument of |surf|, all you need is a ...

11 years ago | 1

| accepted