Answered
How can I compute the inverse FFT "manually"? How are the FFT wavenumbers ordered?
Hi Alex, On input and output the fft and ifft have an array whose corresponding frequencies are in the order 0:N-1 as implied...

9 years ago | 0

Answered
Take all possible combinations for more than 15 elements
Hello shipra, If I understand this correctly, you want to find all possible combinations of the 65 elements of A taken 3 at a...

9 years ago | 0

Answered
How to create randomly placed points within a 3D figure?
Hello Frankie, You have to select random points that are inside the heart and fortunately you already have the function that ...

9 years ago | 1

| accepted

Answered
Fitting Data for the given equations below?
Hello Ashish, SEE SECOND ANSWER ALSO POSTED I wanted to revise this one but was having technical difficulties I am going ...

9 years ago | 1

Answered
Fitting Data for the given equations below?
Hello Ashish [ I wanted to append to my previous answer but for some reason the site would not let me copy blocks of text int...

9 years ago | 0

Answered
Why is this matrix of the form A*A^T not symmetric
Hi LM, Yes, you're right, it's not symmetric -- but only in the sense that your CPU can't do floating point multiplications a...

9 years ago | 0

| accepted

Answered
How to give different colour for those indices which is zero in matlab plot
Hi POKA, something like this? x = 0:.01:50; y = sin(x); ind = abs(y)<.005 % or whatever tolerance is appropriate...

9 years ago | 0

Answered
Using the solve function to find two angles
Hi s, When the angles are real, there are two solutions to these equations. S = 1 % the second set...

9 years ago | 0

Answered
Poisson arrivals and exponential inter-arrival times
Hi zeezo, Not doubt there is something in one or more of the toolboxes, but for a set of time intervals with the exponential ...

9 years ago | 0

Answered
How to solve the code?
Hi Darsana, I don't know how close the answer is supposed to be to tones with unit amplitude, but if you get rid of the odd d...

9 years ago | 0

| accepted

Answered
How can i integrate numerically by mantaining some parameters (need to differentiate later)
Hi Federico, If you define D = (d+Rs+Rc), I believe the integral does not converge unless ||D|| < ||Rs||. Then d is restrict...

9 years ago | 1

Answered
How can I find strike and dip of a plane from equation of a plane?
Hello b, I am assuming that x and y are dimensions along the earth's surface and that z is in the direction of up. You have ...

9 years ago | 0

Answered
Improving the performance of a for loop in Matlab
Hello Yodish, 'one vector slides on the other'. This is basically convolution, and since you are finding a mean it is convol...

9 years ago | 0

| accepted

Answered
Mod function returns decimal value?
Hi sneha, You have already demonstrated that mod does not necessarily output integers. Something like s = mod(round(y*1...

9 years ago | 1

Answered
How do i convert decimal to hexadecimal for floating points
HI Tousif, try num2hex.

9 years ago | 0

| accepted

Answered
add scale bar to image
Hi Irfan, A = imread('your_image.whatever'); sizh = size(A,2); % or any other way to find the number of pixels in the ho...

9 years ago | 0

| accepted

Answered
Define function in M file
Hello Yuchi, M is a function that has one argument, so you need to supply it in M1. Also, it appears that with M1 you wish to ...

9 years ago | 0

| accepted

Answered
For loops breaks into NaN's
Hi Olaf, First of all, for taking elements of an array to a power in element-by-element fashion, people generally write A.^n ...

9 years ago | 0

| accepted

Answered
problem with MATLAB unwrap() function ?
Hello Swapnil, like many Matlab functions, for 2d arrays unwrap works down the columns only unless told otherwise. You need to...

9 years ago | 0

| accepted

Answered
Tangent line to ellipse at a given point
Hi Michelle, Maybe the way to go here is theta1 = atan2(m1,1) % slope angle for unrotated ellipse theta2 = theta1...

9 years ago | 0

Answered
Line plot on top of a log log plot
Hello Cameron, If you have a linear fit in the logs, log(y) = (-11/3)log(x) + A then exponentiate both sides: y = x...

9 years ago | 0

| accepted

Answered
How to adjust parameters in a ode?
Hi Sara Since you have a single multiplicative parameter, certainly the simplest way is, create a column vector dydt of yo...

9 years ago | 0

| accepted

Answered
Updating with for-loop (straightforward)
Hello Fiona, One way is to use an index to address AA and BB and to calculate t. You have 41 possible values for t, so ...

9 years ago | 1

| accepted

Answered
fourier transform on conjugate time reversal
Hello John, To use the reflection properties it's good to have t=0 and f=0 at the center of their respective arrays. However...

9 years ago | 0

Answered
i got Dimensions of matrices being concatenated are not consistent error ,please help
Hi ashish, Please highlight the appropriate part of the text and then use the { } code button just above the text window to ...

9 years ago | 0

Answered
Behaviour of Complex Airy function
Hi Carlos, For this integral to be meaningful, the airy function at the upper limit has to have a well defined value. As ||p...

9 years ago | 0

Answered
Time Delay Estimation for Monotonically Increasing Funcitons
Hi Stephen, I don't know how a slope detector on a triggering 'scope works but here is an attempt at something similar. Your...

9 years ago | 0

| accepted

Answered
How to define a column vector whose elements are column vector?
Hello Deepak, If you want to create an actual matrix that you could access with a slightly different syntax, then % comm...

9 years ago | 1

Answered
Derivative of sawtooth - interpretation of result
Hello Gennaro, This is just the formula for the derivative of a product, t * ( heaviside(t) -heaviside(t-3) ) where ...

9 years ago | 0

Answered
trying to make fourier transform of 3 pulses but the sampling is bad, how to fix it?
Hi Kobi, Thanks for posting solid code. For an fft, to make the frequency grid n times finer, the boundaries of the time rec...

9 years ago | 0

| accepted

Load more