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

9 years ago | 0

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

9 years ago | 0

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

9 years ago | 0

| accepted

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

9 years ago | 2

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

9 years ago | 1

| accepted

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

9 years ago | 0

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

9 years ago | 0

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

9 years ago | 0

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

9 years ago | 0

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

9 years ago | 0

| accepted

matlab correct name of butter
Try _built-in functions_.

9 years ago | 0

| accepted

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

9 years ago | 0

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

9 years ago | 0

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

9 years ago | 0

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

9 years ago | 0

| accepted

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

9 years ago | 1

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

9 years ago | 2

| accepted

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

9 years ago | 1

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

9 years ago | 0

| accepted

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

9 years ago | 0

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

9 years ago | 1

| accepted

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

9 years ago | 1

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

9 years ago | 0

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

9 years ago | 0

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

9 years ago | 1

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

9 years ago | 0

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

9 years ago | 0

| accepted

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

9 years ago | 4

| accepted

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

9 years ago | 0

| accepted

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

9 years ago | 1

| accepted