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

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

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

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

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

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

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

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

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

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

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

8 years ago | 1

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

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

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

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

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

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

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

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

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

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

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

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

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

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

8 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

Answered
i want to make the arrangement of 3rd column of matrix decendly and any element which inteerept i want to remove the whole row of this element
Hello Tarek, You could try something like this: B = A; % make a copy so A stays around j=1 ...

9 years ago | 0

Answered
How can I multiply matrix with multiple vectors without loop?
Hello K M, You do this exactly as you have written it. T = [T1 T2 T3 .... Tn]; % concatenate as many 3x1 column vecto...

9 years ago | 1

| accepted

Answered
Fourier transform of standard mollifier
Hello Marco, I don't think it's likely that there is an explicit expression for the Fourier transform, so it will have to be nu...

9 years ago | 1

Load more