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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

| akzeptiert

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

fast 12 Jahre vor | 2

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

fast 12 Jahre vor | 1

| akzeptiert

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

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

etwa 12 Jahre vor | 0

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

etwa 12 Jahre vor | 0

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

etwa 12 Jahre vor | 0

| akzeptiert

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

etwa 12 Jahre vor | 0

| akzeptiert

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

etwa 12 Jahre vor | 0

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

etwa 12 Jahre vor | 0

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

etwa 12 Jahre vor | 0

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

etwa 12 Jahre vor | 0

| akzeptiert

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

etwa 12 Jahre vor | 1

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

etwa 12 Jahre vor | 2

| akzeptiert

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

etwa 12 Jahre vor | 1

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

etwa 12 Jahre vor | 0

| akzeptiert

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

etwa 12 Jahre vor | 0

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

etwa 12 Jahre vor | 1

| akzeptiert

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

etwa 12 Jahre vor | 1

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

etwa 12 Jahre vor | 0

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

etwa 12 Jahre vor | 0

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

etwa 12 Jahre vor | 1

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

etwa 12 Jahre vor | 0

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

etwa 12 Jahre vor | 0

| akzeptiert

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

etwa 12 Jahre vor | 4

| akzeptiert

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

etwa 12 Jahre vor | 0

| akzeptiert

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

etwa 12 Jahre vor | 1

| akzeptiert

Mehr laden