Réponse apportée
What to use instead of simple function?
Hi Liliana, 1/(2*pi^(1/2)*(1/(4*a^2))^(1/2)) may not be pretty, but it does equal a/sqrt(pi) so it is mathematically correct....

plus de 6 ans il y a | 0

Réponse apportée
a Simple Matrix question
Hello LC Matrix_C = matrix_A; Matrix_C(matrix_A == Matrix_B) = 255;

plus de 6 ans il y a | 1

Réponse apportée
How can I get more than 49 digits of pi in a string?
Hi India, vpa(pi,100) for example (although you need the symbolic toolbox for vpa) And see Walter's comment below. The answer...

plus de 6 ans il y a | 1

Réponse apportée
plot polygon function error
Hi msh, the reason is pretty simple. You are asking for an output from the function, but you have not provided any in its defi...

plus de 6 ans il y a | 0

Réponse apportée
why the legend show wrong lines ?
Hi tomer, try replacing plot(t,43*(19.6e-3)/(100*15e-3),' black '); %% plot--> of boundery limit with plot(t,43*(19.6e-3)/(...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Solving 3 Simultaneous Exponential Equations
HI Rory, just for completeness y1 = 159.2543; y2 = 117.2699; y3 = 63.8384; x1 = 291.15; x2 = 293.15; x3 = 299.15; A1 =...

plus de 6 ans il y a | 1

Réponse apportée
solve on vector equation
Hi Michiel, The unit vector N has to lie in the plane defined by s1 and s2. The result for any s1,s2 is N = s2 - (n1/n2)*s1;...

plus de 6 ans il y a | 0

Réponse apportée
how can I creat a matrix of all possible combinations of zero and ones across eight digits.
HI Yonatan, not a black box: function a = x10(ndigits) a = ['0';'1']; count = 1; while count < ndigits n = size(...

plus de 6 ans il y a | 0

Réponse apportée
IFFT of Convolution equivalence
Hi JOB/Ridwan Here is a small example where a and b are padded with zeros, so that regular convolution can be compared with con...

plus de 6 ans il y a | 1

Réponse apportée
Why 999^999-999^999 is NaN?
HI Fahmy, >> realmax ans = 1.7977e+308 That's the largest floating point number in Mallab, which uses IEEE754 64 bit double ...

plus de 6 ans il y a | 0

Réponse apportée
How to obtain CDF from the below PDF function
Hello Manesf, This pdf seems related to the Weibull distribution. I made some abrreviations Etta_d = xid Etta_D = xiD ...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
In the matlab page of Associated Legendre Polynomials, is the example for the spherical harmonics correct?
Hi chaitanya, Good catch. Really good catch. In addition to the signs of the lobes, I believe that Matlab's Y32 is functional...

plus de 6 ans il y a | 2

| A accepté

Réponse apportée
How to plot the velocity of a crate on a ramp for different angles?
Hi Kiera, The plot above shows the velocity of the box at the top of the ramp getting larger as the angle of the ramp gets stee...

plus de 6 ans il y a | 0

Réponse apportée
associated legendre functions matlab
Hi chaitanya, It's apples and oranges. When the domain of the argument is -1 <= x <= 1, the function is -sqrt(1-x^2). That's ...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Implementing a sum with summands of unequal spacing inside an integral
Hi Richard, I don't claim to be a professional although I did use Matlab at work, and here is how I would do this. The main th...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Does the permute function have a bug?
Hello ZY, see 'help permute'. Permute puts the dimensions in the order listed, so in this case the old 4th dimension goes firs...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Is it possible to create periodic boundary conditions for a matrix with linear indexing?
Hi Tom, mod(k,N)+1 for the raised index, k+1 mod(k-2,N)+1 for the lowered index, k-1 and these do give the correct vector of ...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
how to solve the equation: xdot=AX+Bu; where u=sin(2t)
Hi Ebraheem, ode45 is fine with explicit time dependence in the calculation of xdot: [t, x] = ode45(@smc5,[0, 10],[1, -2]) pl...

plus de 6 ans il y a | 2

| A accepté

Réponse apportée
Series expansion with Legendre polynomials
HI James, I won't address how one might print the result, but the mistake in the algrbra is that you should use y(i) = ((2*i+1...

plus de 6 ans il y a | 1

Réponse apportée
Chua Oszillator in Matlab, Chaos
Hi Albin, In your second version, the equation for xdot is dimensionally incorrect. Changing it to xdot = (1/C1)*(G*(y-x-g));...

plus de 6 ans il y a | 0

Réponse apportée
Meshing a complex function with limits
Hello Haider, for someone who is new to Matlab you are doing well. You just need a couple of changes. First, you forgot that r...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
plot Gibbs phenomenon individually???
Hi Neptune, I agree that my comment on what the Gibbs phenomenon actually is was not very helpful to the actual problem at hand...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Automatic Complex Conjugate in ftt
Hello Ha Oe the quote command is not just the transpose, it's the complex conjugate transpose (Hermetian conjugate). For the s...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
The input signal is complex conjugate, but the IFFT output is complex!
Hello yz, The problem is that to produce a real ifft, the first element of Ax, which is the f=0 term, has to be real since that...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Why is dsolve returning an arbitrary constant?
Hi David, you need slightly different syntax. syms y(t) g L c Dy = diff(y) S = dsolve(diff(diff(y(t))) -L*y - g == 0, y(0) =...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
How to plot a maximum value on an existing line graph
Hi Grace, Here is an example of what I think you are looking for. The idea is to use the second output of max to find the inde...

plus de 6 ans il y a | 1

Réponse apportée
Matlab output is not matching with the mathematics...
Hi Hari, the problem is that 2*pi*f*t is a nice linear function of t for all t, but the output of acos is restricted to the ran...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Non Linear DE solving using ODE45
Hi Muhammad, with that set of constants, the time has not been run out far enough to see the final result. Try changing the ti...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
ODE45 calculating the total energy in the system and checking the solver
Hi Kostas, The problem is in the calculation of the dissipated energy which is not any kind of sum of (y C dy/dt), but rather t...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Constructing an FFT-like result array.
HI betz, All of the following applies if the time domain waveform is REAL For a N point fft, N even: (a) point 1 is the four...

plus de 6 ans il y a | 2

| A accepté

Charger plus