Answered
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

13 years ago | 1

| accepted

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

13 years ago | 0

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

13 years ago | 0

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

13 years ago | 0

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

13 years ago | 1

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

13 years ago | 0

| accepted

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

13 years ago | 3

| accepted

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

13 years ago | 0

Answered
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);

13 years ago | 0

| accepted

Answered
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=...

13 years ago | 0

| accepted

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

13 years ago | 0

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

13 years ago | 0

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

13 years ago | 0

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

13 years ago | 0

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

13 years ago | 1

Answered
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=...

13 years ago | 0

| accepted

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

13 years ago | 0

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

13 years ago | 1

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

13 years ago | 0

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

13 years ago | 0

| accepted

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

13 years ago | 0

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

13 years ago | 0

| accepted

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

13 years ago | 0

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

13 years ago | 1

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

13 years ago | 0

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

13 years ago | 0

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

13 years ago | 0

| accepted

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

13 years ago | 0

Answered
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 ,...

13 years ago | 0

| accepted

Answered
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(:))

13 years ago | 0

| accepted

Load more