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

alrededor de 11 años hace | 0

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

alrededor de 11 años hace | 0

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

alrededor de 11 años hace | 0

| aceptada

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

más de 11 años hace | 2

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

más de 11 años hace | 1

| aceptada

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

más de 11 años hace | 0

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

más de 11 años hace | 0

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

más de 11 años hace | 0

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

más de 11 años hace | 0

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

más de 11 años hace | 0

| aceptada

Respondida
matlab correct name of butter
Try _built-in functions_.

más de 11 años hace | 0

| aceptada

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

más de 11 años hace | 0

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

más de 11 años hace | 0

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

más de 11 años hace | 0

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

más de 11 años hace | 0

| aceptada

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

más de 11 años hace | 1

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

más de 11 años hace | 2

| aceptada

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

más de 11 años hace | 1

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

más de 11 años hace | 0

| aceptada

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

más de 11 años hace | 0

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

más de 11 años hace | 1

| aceptada

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

más de 11 años hace | 1

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

más de 11 años hace | 0

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

más de 11 años hace | 0

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

más de 11 años hace | 1

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

más de 11 años hace | 0

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

más de 11 años hace | 0

| aceptada

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

más de 11 años hace | 4

| aceptada

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

más de 11 años hace | 0

| aceptada

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

más de 11 años hace | 1

| aceptada

Cargar más