답변 있음
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년 전 | 1

| 수락됨

답변 있음
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년 전 | 0

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

대략 13년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 1

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 3

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
open wav file error
hi, take that file into directory ...\Documents\MATLAB :

대략 13년 전 | 0

답변 있음
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년 전 | 1

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

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

대략 13년 전 | 1

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 1

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

| 수락됨

더 보기