Answered
to plot from particular frequency range ?
hi Aniket, if the the frequency if is well constructed then you you can specify the range using axis : axis([50 250 min(Pre...

13 years ago | 0

Answered
Phase correction in FFT
hi, i suggest that this is due to Gibbs effect, i tried to change the amplitude, and time duration but always there is a smal...

13 years ago | 0

Answered
matlab question please need answer very quickly.. it is a challenge for you as well !
hi, i think there was a similar question just two days a go : try to enhance this version: u=1.33; d=0.75; p1=0.44; p...

13 years ago | 0

Answered
how to read mp3 file in matlab
hi, try : [y,Fs,nbits]=wavread(filename); >>doc wavread For information try : doc mmfileinfo

13 years ago | 0

Answered
How can I use many input arguments(up to 20) to my function?
hi, you can use a single input which is multidimensional , here is an example : i want to compute the powers consumed by 9...

13 years ago | 0

Answered
How do you preallocate variables for coordinates?
hi, you can use cells : for k=1:3 A{k}=ginput(4); end you can later transform it to matrix : " cell2mat"

13 years ago | 0

Answered
The outputs of fsolve function are complex
hi, it depends on the input function, for example the solution may contain a logarithm of negative value which is complex num...

13 years ago | 0

| accepted

Answered
command rand and functions
hi, try and verify this version: N=5000; S=zeros(1,N); S(1)=1; % 1$ win=0; lost=0; threshold=0.5; for n=1:N-...

13 years ago | 0

| accepted

Answered
using the pde toolbox
hi, i think you use Trace(B) or det(B) in this case no?

13 years ago | 0

Answered
Eliminate rows of cell array outside of a range
hi try : final2{1}(final2{1}>-0.6&final2{1}<-0.7)=[];

13 years ago | 0

Answered
How to reduce an equation
hi, You mean algebraic simplification? you need to use the cos(a+b)/sin(a+b) properties , if you mean numerical simplifi...

13 years ago | 0

Answered
For those who love a challenge.
hi Charlene , here is an initiation : u=1.33; d=0.75; p1=0.44; p2=0.25; p3=1-p1-p2; t=0:1:20; St=zeros(size...

13 years ago | 0

| accepted

Answered
Why is the inverse of a symmetric matrix not symmetric?!
hi, Try to use a tolerance criterion : C=symdec(100,100); C=C/max(C(:)) I1=inv(C); I2=inv(C'); norm(I1-I2) % its ...

13 years ago | 0

Answered
What is wrong with this equation?
hi, no its fine, remove the asterisk [x,y] = dsolve('Dx=2*x+(-5/2)*y','Dy=(9/5)*x-y','t')

13 years ago | 0

Answered
problem in initializing sparse matrix
hi, it worked well, no problem and d=1500, try to use of these functions : d=floor(d); d=ceil(d); d=round(d);

13 years ago | 0

| accepted

Answered
how to solve non-linear PDE
hi, try : doc pdepe Generally the PDEs in matlab follow the general formuale : c(x,t,u,du/dx).du/dt=(x^-m).d/dx[(x...

13 years ago | 0

| accepted

Answered
Integration of piecewise function with integral
hi, try doc quad doc trapz

13 years ago | 0

Answered
different output in kmeans
hi, i think this question has been asked before, the reason is that the K-means algorithm starts with random partition so every...

13 years ago | 1

| accepted

Answered
How to write a symbolic variable funtion?
hi, No the notation f(x) is used in other programming languages ,try : syms x f=[x x^2;x^3 x^4] % automatically f i...

13 years ago | 0

| accepted

Answered
How to use a counter with a loop
hi, Second way : K=primes(1000); Third way : N=1000; c=[2 3 5 7]; counter=1; for x=1:N V=mod(x,c...

13 years ago | 0

Answered
How to use a counter with a loop
hi, here is fast way : N=1:1000; P=isprime(N); Prime=find(P==1);

13 years ago | 1

Answered
Create a .mat file similar to MRI
hi, The default MRI sample has singleton dimension right? try : % given I1,.............,I12 [m n]=size(I1); M=ze...

13 years ago | 0

Answered
Effective way to estimate the big O runtime?
hi, About the Computational complexity, that can be done with pencil and paper following some rules for example : <https:/...

13 years ago | 0

Answered
how can i store the location (x,y) in a variable in a loop?
hi, According to your program try this : %BmatRows=140; %BmatCols=150; %blockSizeR=4; %blockSizeC=5; %incrR=1; %i...

13 years ago | 0

| accepted

Answered
dimension mismatch error in for loop
hi xplore29 maybe you are using a complex number "i" during the XYZ compuatation, if so, change it to "j" or sqrt(-1) and tr...

13 years ago | 0

Answered
The Akaike’s Information Criteria Value Calculation
hi, from what i know , the values calculated using the Aic or the Minimum Descriptive Length MDL are >0 , and the number of ...

13 years ago | 0

Answered
Determine the largest length along the width of the part
hi you can try as the following : I=imread('circuit.tif'); % esample B=im2bw(I); S=sum(B); figure, plot(S), ...

13 years ago | 0

Answered
function creating new vector
hi, try this function : function y=likelihood(x) T=x((x>0)&(x<1)); y=2*T-1;

13 years ago | 0

Answered
Is it wrong if PSNR is coming IN range of 128 - 170
hi, generally speaking, very similar signals must give the PSNR a value around 50-60dB, your case is correct, but you need a be...

13 years ago | 0

Answered
Difference in accuracy between Crank Nicolson and Backward Euler when solving 2D heat equation using finite elements?
Hi, Here is a document in which the author makes a comparison between Crank Nicolson, Forward Euler, and Backward Euler in te...

13 years ago | 0

Load more