Respondida
why fft (exp(-t)) don't fit my analytique expression?
@Rabih Sokhen, The difference is due to differences in normalization of the discrete Fourier transform (DFT) of x(t), where x(t...

alrededor de 4 años hace | 1

Respondida
Comparing one 3D point cloud with a selection of collected 3D point clouds?
@Angelina Longo, This will be hard. Are your point clouds on the surface of the structure only, or do the point clouds include ...

alrededor de 4 años hace | 1

Respondida
Convolution of two matrices
@Murali Krishna AG, A=rand(3,1); B=rand(3,1); C=rand(3,1); D=rand(3,1); S1=[conv(A,B),conv(C,D)]; disp(S1) S2=[conv(B,A),conv...

alrededor de 4 años hace | 0

Respondida
How to find out if a logical array is all zeros?
@MKM, If A is a vector, sum(abs(A)) will be zero, or not, of all the elements are zero, or not. If A is a 2D array, do sum...

alrededor de 4 años hace | 2

Respondida
Explicit Heat Conduction in 3d
@Yichen Yang, To plot results from your 4-D array T: a=2.0; b=1.5; c=1.5; %egg semi-diameters along x,y,z axes [cm]...

alrededor de 4 años hace | 0

Respondida
Explicit Heat Conduction in 3d
@Yichen Yang, Please format your code as code in the window. This will make it easier for others to read and understand. You w...

alrededor de 4 años hace | 0

Respondida
Solve/Plot Second Order DiffEq w/ Two Inital Conditions
@Erin Hayes, Your code is good! Instead of using sol on line 2, and instead of fplot() on line 3, you could do as follows. The...

alrededor de 4 años hace | 0

| aceptada

Respondida
About expm function error
@ZHICHEN LIU, I do not get an error when I run the code. syms a b x; H=[a*b,x;a,x-b]; M=int(H,x); M expm(M) See above.

alrededor de 4 años hace | 0

Respondida
How to get center coordinates of multiple cylinders
@Ege Arsan, Counting cylinders: I added counter numCylinder to count the number of cylinders. Search the code for numCylinder....

alrededor de 4 años hace | 0

| aceptada

Respondida
Remove ripples from frequency domain
That is a very interesting and good point by @Image Analyst about the non-zero mean. See below for examples of spectra with and ...

alrededor de 4 años hace | 0

Respondida
Remove ripples from frequency domain
@yusuf albadry, Yes, try a hann() window, or another window sum as hamming(). There is a good chace that there will still be d...

alrededor de 4 años hace | 0

Respondida
Calculating simple Returns with Stock Prices
@Guilherme, Those are three good answers from @Muthu Annamalai and @Sushil and @Zoltan Torok in the Comments. Zoltan's two sugg...

alrededor de 4 años hace | 1

Respondida
Compute distance between between points stored vectors of different lengths whilst fixing elements
@Rob, Here's an example. Location1 = Y1,X1 = cell arrays with unequal size cells: 2 locations near Bangor ME, 3 near LA, 4 near...

alrededor de 4 años hace | 0

| aceptada

Respondida
Compute distance between between points stored vectors of different lengths whilst fixing elements
@Rob, My understading is that X1,Y1 contains coordiates for 1 to 2 million locations (1181 rows times several hundred up to ov...

alrededor de 4 años hace | 0

Respondida
how can i simulate dynamic formula ? depend to unmaned surface vehicle
@ali asqar askari, [I edited my answer to correct spelling errors.] The ordinary differential equation solvers in Matlab (and ...

alrededor de 4 años hace | 0

Respondida
How to pull out aic from arima
@Amanda Willard Sauer, You only get the AIC for an estimated model. In the code you posted, you are looking at the results for...

alrededor de 4 años hace | 0

| aceptada

Respondida
How to plot standard dev. from a closed-loop trajectory
@Luis FigueroaFernandez, [edited: added comments to the code] [edited again to correct a mistake in my code, in the first plot...

alrededor de 4 años hace | 1

| aceptada

Respondida
Plotting axis of greatest variance
I am changing my comment to an answer, which is what i had intended. Let's start by generating some data. N=100; theta=pi/6; ...

alrededor de 4 años hace | 0

Respondida
Fixed signal averaging?
@Ghufran Abdul Qayum, Now I show the highpass filter version. In this case, the output equals the input signal minus the mean ...

alrededor de 4 años hace | 0

Respondida
Fixed signal averaging?
@Ghufran Abdul Qayum, You said "I want to apply fixed signal averaging filter with the filter window of 0.5secs." This could m...

alrededor de 4 años hace | 0

Respondida
Checking inverse of convolution theorem
@Areeba Fatima, I realize that you have already accepted the excellent answer from @Matt J. Here is a script that demonstrate...

alrededor de 4 años hace | 0

Respondida
Solve a System of five non linear equation
@vaggelis papasot, You can get numeric values for the unknown quatities by using fsolve() and by not using "syms". Rewrite your...

alrededor de 4 años hace | 0

Respondida
How to obtain noise
@ANDRES FELIX CHAVEZ, I have attached a real EKG signal which I have on my computer. I don't recall where it came from, or wha...

alrededor de 4 años hace | 1

Respondida
how to break large data into groups and run same steps in a loop for each group?
[I have moved this answer from the Comments to the Answers.] @Pragya Dhungel, N=20; x=zeros(N); %create N by N array for i=...

alrededor de 4 años hace | 0

Respondida
Impulse response of a FIR-filter in Matlab
@Arjun Suhass, YOu can figure it out theoretically or by experiment. Theoretical: The Matlab help for filter() says: In ...

alrededor de 4 años hace | 0

Respondida
How do I calculate the time it takes to filter the signal in my code? (FIR filter)
@Samuel Pappalardo tic for i=1:1000 for j=1:1000 x=besselj(3,i+j/1000); end end toc tic starts the clock...

alrededor de 4 años hace | 0

Respondida
How can i get prediction Bounds from curve fitting?
@David Nielsen-Franco, I generated some data: t=0:20; c=1; k=0.4; s=0.1; CAs3=c*exp(-k*t)+s*randn(size(t)); plot(t,CAs3,'rx')...

alrededor de 4 años hace | 0

| aceptada

Respondida
how to break large data into groups and run same steps in a loop for each group?
@Pragya Dhungel, The commands you gave create an array which is 1 row by 400000000 columns. To illustrate, let us reduce the s...

alrededor de 4 años hace | 0

Respondida
How to solve a Bernoulli Equation
@KarolN, We have the following equation for tubulent flow in a rectangular channel, or canal: Eq.1. I assume that h1 an...

alrededor de 4 años hace | 0

| aceptada

Respondida
How to solve a Bernoulli Equation
@KarolN, The pipe under the dam appears to be horizontal. I assume that R is the pipe diameter and that is its length and tha...

alrededor de 4 años hace | 0

Cargar más