Beantwortet
Generate a rondom sequence
or you can try : a=1:4; v=perms(a); % ALL possible combinations Z=[v(:,1:2);v(:,3:4)];% Z is 2 columns

etwa 13 Jahre vor | 1

| akzeptiert

Beantwortet
Converting between zero padded and non zero padded FFT
hi, x and y are two different signals in terms of frequencies, you have to compute both ffts, i am not conscious if there are...

etwa 13 Jahre vor | 0

Beantwortet
Generate a rondom sequence
hi, Random sequence derived from which distribution ? Z=rand(4); % from Uniform distribution. Z=randn(4); % from Norm...

etwa 13 Jahre vor | 0

Beantwortet
finding same values in matrix
hi, try for example : A=rand(80,31); A(1,:)=1:31; C=rand(80,31); Diff=abs(C-A); [x,y]=find(Diff==0); each valu...

etwa 13 Jahre vor | 0

Beantwortet
Need FFT Code for Matlab (not built in)
hi John Yes there are many versions of Discrete Fourier Transform : % function z=Fast_Fourier_Transform(x,nfft) % % N=l...

etwa 13 Jahre vor | 1

Beantwortet
how to implement this equation
hi, given I and J of size MxN M=6;N=4; I=rand(M,N); J=rand(M,N); II=I.^2; JJ=J.^2; P=I.*J; % its Element wis...

etwa 13 Jahre vor | 0

| akzeptiert

Beantwortet
How do I plot parabolas and other functions in MATLAB?
hi Joseph, the expression means : variable=beginning:step:end , but 5:.5:5 is constant its 5 then . you can also plot the parab...

etwa 13 Jahre vor | 3

| akzeptiert

Beantwortet
matrix dimension error. i can understand why it is showing but cannot get any solution
hi, you can try : % given A AND B A=rand(2); B=rand(2,1); %1) solution 1: A^-1 X1=inv(A)*B; %2) solution 2 ...

etwa 13 Jahre vor | 0

Beantwortet
how to assign the solution of SVD to different variables
hi, try : v1=v(1); v2=v(2); v3=v(3); v4=v(4); v5=v(5); v6=v(6); v7=v(7); v8=v(8);

etwa 13 Jahre vor | 0

| akzeptiert

Beantwortet
how to define 3D coordinates in matlab?
hi, one variable can store n dimensional coordinates : P=[5 6 2]; or you can split them into n parts : p1=5; p2=...

etwa 13 Jahre vor | 0

| akzeptiert

Beantwortet
3D Figures rendering incorrectly
hi, you mean you exchange the axis x->y and y->x ? if thats the case then change the order : scatter3(afftodur34,mvocal...

etwa 13 Jahre vor | 0

Beantwortet
Quadratic and Trapizodial area
A=zeros(3,1); c=[0.1 10*pi 200]; t=0:0.1:10; x=t; for n=1:3 y=t.*sin(c(n)*t); A(n)=trapz(x,y); end % Results of t...

etwa 13 Jahre vor | 0

Beantwortet
Quadratic integration coding error
hi, like the answer above, quad takes function handle as input, while trapz accepts vectors , but the way you wrote the loops...

etwa 13 Jahre vor | 0

Beantwortet
open wav file error
hi, take that file into directory ...\Documents\MATLAB :

etwa 13 Jahre vor | 0

Beantwortet
How to create a database in matlab?
hi, you can create a database , for example, in Mysql and make connection between Math(c) and Mysql with function database ...

etwa 13 Jahre vor | 1

Beantwortet
function of time,velocity and acceleration
hi try : syms t x=0.4*t.^4+10.8*t.^3-64.4*t.^2-28.2*t+4.4 x=(0.4*t.^4)+(10.8*t.^3)-(64.4*t.^2)-(28.2*t)+4.4 v=diff(x) a=...

etwa 13 Jahre vor | 0

| akzeptiert

Beantwortet
Substituting value from table into equation
hi, You extract the values like the following : a=(1:10)'*(1:10); % a contains 10 lines and 10 columns,the first colum...

etwa 13 Jahre vor | 0

Beantwortet
assign subscrips to vectors
hi, try : N=200; for n=1:N yt1(n)=............. yt2(n)=....... ..... end

etwa 13 Jahre vor | 1

Beantwortet
Help on for loop
hi try this , BUT the number of non zeros in R must be the same as the length of U: R=zeros(100,1); R(2:4:55)=rand; % R...

etwa 13 Jahre vor | 0

Beantwortet
Having problems displaying the real and imaginary parts of a complex root
hi, what is the problem exactly ! delete the part : real(r1);real(r2); y1=imag(r1);y2=imag(r2); I think the cod...

etwa 13 Jahre vor | 0

| akzeptiert

Beantwortet
Generate a signal wave - Spectrum using FFT
hi, the sample rate Fs must be at least twice the maximum frequency contained in the signal : Generate a signal wave: ysign...

etwa 13 Jahre vor | 0

Beantwortet
How can I calculate the inverse fourier transform in matlab?
hi Marcia, Are you trying to compute the inverse Fourier Transform of the Heaviside function and compare it with Heaviside fu...

etwa 13 Jahre vor | 0

| akzeptiert

Beantwortet
How to plot graph as attached?
hi, you can use : subplot(m,n,i) where m is the number of lines, n is the number of columns and i the position of the curre...

etwa 13 Jahre vor | 0

Beantwortet
how to plot frequecy spectrum of fft ?
hi, To efficiently use FFT, you need to know the sampling frequency of your signal So you can proceed like the followin...

etwa 13 Jahre vor | 1

Beantwortet
Square Root Complex Numbers
hi Josh, the square root of <0 number is complex number , if you only want the real part use "real" function, but if you want...

etwa 13 Jahre vor | 0

Beantwortet
Defining boundary condition at infinite x for ODE
hi Daniyar, You mean setting Tspan as Inf ? if yes then : i do not think its logic to make the bound as Inf , but instead ma...

etwa 13 Jahre vor | 0

Beantwortet
Help to solv a equation with iteration
hi Clauss, there are many ways to solve the equation, but with iterations i have few ideas : there is a method called Bisect...

etwa 13 Jahre vor | 0

| akzeptiert

Beantwortet
How to make M-File with function and "header"
hi Micheal, For example in C/C++, a header file contains predefined function such that including a header file ( example "ma...

etwa 13 Jahre vor | 0

Beantwortet
CAT arguments dimensions are not consistent.
as you get CAT dimensions consistency then your equation " d = LinkMat(:,6)/(c*10);" does not return a scalar but a matrix ,...

etwa 13 Jahre vor | 0

| akzeptiert

Beantwortet
Gaussian distributed random numbers
hi Arathi, try : N=(1/sqrt(2))*(randn(4,2)+j*randn(4,2)); M=mean(N(:)) S=std(N(:)) V=var(N(:))

etwa 13 Jahre vor | 0

| akzeptiert

Mehr laden