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

circa 9 anni fa | 0

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

circa 9 anni fa | 0

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

circa 9 anni fa | 1

| accettato

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

circa 9 anni fa | 1

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

circa 9 anni fa | 0

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

circa 9 anni fa | 0

| accettato

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

circa 9 anni fa | 0

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

circa 9 anni fa | 0

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

circa 9 anni fa | 0

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

circa 9 anni fa | 0

| accettato

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

circa 9 anni fa | 1

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

circa 9 anni fa | 0

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

circa 9 anni fa | 0

| accettato

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

circa 9 anni fa | 1

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

circa 9 anni fa | 0

| accettato

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

circa 9 anni fa | 0

| accettato

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

oltre 9 anni fa | 0

| accettato

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

oltre 9 anni fa | 0

| accettato

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

oltre 9 anni fa | 0

| accettato

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

oltre 9 anni fa | 0

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

oltre 9 anni fa | 0

| accettato

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

oltre 9 anni fa | 0

| accettato

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

oltre 9 anni fa | 1

| accettato

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

oltre 9 anni fa | 0

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

oltre 9 anni fa | 0

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

oltre 9 anni fa | 0

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

oltre 9 anni fa | 0

| accettato

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

oltre 9 anni fa | 1

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

oltre 9 anni fa | 0

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

oltre 9 anni fa | 0

| accettato

Carica altro