Réponse apportée
How to solve complex equations in matlab.?
I think he wants to actually solve the equation, so perhaps he is looking for something like this >> syms R; Y=-(1-R)/(1...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
How can I define an array of symbolic functions?
Are you looking for something like this? >> syms t; >> a=zeros(3,1); >> a=sym(a); >> a(1)=t; >> a(2)=t+1; >>...

presque 11 ans il y a | 0

A résolu


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

presque 11 ans il y a

A résolu


Add two numbers
Given a and b, return the sum a+b in c.

presque 11 ans il y a

Question


How to calculate autocorrelation matrix eigenvalues without actually creating the matrix
Hi, I am working with a large autocorrelation vector (size 1.023e6 ). It is well known that the autocorrelation matrix can be fo...

presque 11 ans il y a | 1 réponse | 1

1

réponse

Réponse apportée
function creating new vector
if 0<x(1,i)<1 should be if x(1,i)>0 && x(1,i)<1

plus de 11 ans il y a | 0

Réponse apportée
about the fft plot of a discreate signal
Hi, the zero frecuency is the continous component of your signal (which is the mean value of your signal). For instance if you a...

plus de 11 ans il y a | 0

A résolu


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

plus de 11 ans il y a

A résolu


Is my wife right?
Regardless of input, output the string 'yes'.

plus de 11 ans il y a

A résolu


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

plus de 11 ans il y a

A résolu


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

plus de 11 ans il y a

A résolu


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

plus de 11 ans il y a

A résolu


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

plus de 11 ans il y a

Réponse apportée
integrate definite integrals matlab
>> syms x >> int((5*x)/((x^3-(7*x))^4),-1,1) ans = NaN Which is correct if you consider you are worki...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
fft on samples of an audio file in matlab
If you have a .wav audio named filename you can do [y, Fs] = wavread(filename) Where Fs is the sampling frecuency and y yo...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
how to display two graphs in separate figure windows using plot command?
Use figure command plot(a); figure;plot(b,'r');

plus de 11 ans il y a | 11

| A accepté

Réponse apportée
looping a matrix from a text file
Is it necessary to use a loop? So if I understand well you want to sum the rows, in this case if A = 1.0000 ...

plus de 11 ans il y a | 0

Réponse apportée
plotting an array of doubles
He means that you should do for n =1:1:5001 snr1(n) = rms(input(n))/ rms(out(n)); end

plus de 11 ans il y a | 0

Réponse apportée
How do I create a vector of n exponentially increasing values from a to b?
>> y=zeros(4,1); >> n=1:1:4; >> y(1:4)= a*gf.^(n(1:4)-1); >> y y = 1.0000 2.1544 4.64...

plus de 11 ans il y a | 0

Réponse apportée
"DOUBLE cannot convert the input expression into a double array. If the input expression contains a symbolic variable, use the VPA function instead."
The problem comes in double(subs(C)) From your code C=u1^2+3*u2^2+2*u3^2; so when you do subs(C) an...

plus de 11 ans il y a | 1

Réponse apportée
MATLAB 7.5 doesn't calculate the whole operation
Try typing format long in your command window.

plus de 11 ans il y a | 0

Réponse apportée
How to save .mat file in a function?
Your last line should be save('example.mat', 'result');

plus de 11 ans il y a | 0

Réponse apportée
how to use the 'solve' function?
Using arbitrary values for x, h, h0, A and L >> syms eta; >> x=1;h=1;ho=1;A=0.1;L=1; >> f=x/L -(1-(h+eta)/ho) - A...

plus de 11 ans il y a | 1

Réponse apportée
how to use the 'solve' function?
Doing >> tmp = solve('x/L = (1-(h+eta)/ho) - A*log(((h+eta)/ho - A)/(1-A))','eta')% no semicolon here tmp = ...

plus de 11 ans il y a | 0

Réponse apportée
How to tell Matlab to give real cube roots instead of complex ones?
Try this sign(x).*abs(x.^(1/3)) >> sign(-1).*abs(-1.^(1/3)) ans = -1

plus de 11 ans il y a | 0

Réponse apportée
Regarding Wavelets and DWT.
Basically the wavelet transform is similar to the STFT(Short time Fourier Transform), because it links the frecuency of a signal...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Insert a blank column every n columns
Try this, if you want to insert a blank column every 5 columns A=rand(10,360); A=num2cell(A); A(:,1:5:end)=cell(1);

plus de 11 ans il y a | 0

Réponse apportée
there is a problem about these code in Matlab
Try function [y1,y2]=test(x1,x2) if nargin==1 y1=x1; if nargout==2 y2=x1; end else ...

plus de 11 ans il y a | 0

Réponse apportée
Could someone teach me how to add numbers in a series?
Consider the Euler series to sum pi: ((pi^2)/6)=∑ (1/n^2),then pi= sqrt(6*∑ (1/n^2)) To implement the above method in Matl...

plus de 11 ans il y a | 0

Charger plus