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

fast 9 Jahre vor | 0

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

fast 9 Jahre vor | 1

| akzeptiert

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

fast 9 Jahre vor | 1

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

fast 9 Jahre vor | 0

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

fast 9 Jahre vor | 0

| akzeptiert

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

fast 9 Jahre vor | 0

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

fast 9 Jahre vor | 0

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

fast 9 Jahre vor | 0

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

fast 9 Jahre vor | 0

| akzeptiert

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

fast 9 Jahre vor | 1

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

fast 9 Jahre vor | 0

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

fast 9 Jahre vor | 0

| akzeptiert

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

fast 9 Jahre vor | 1

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

fast 9 Jahre vor | 0

| akzeptiert

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

fast 9 Jahre vor | 0

| akzeptiert

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

fast 9 Jahre vor | 0

| akzeptiert

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

fast 9 Jahre vor | 0

| akzeptiert

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

etwa 9 Jahre vor | 0

| akzeptiert

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

etwa 9 Jahre vor | 0

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

etwa 9 Jahre vor | 0

| akzeptiert

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

etwa 9 Jahre vor | 0

| akzeptiert

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

etwa 9 Jahre vor | 1

| akzeptiert

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

etwa 9 Jahre vor | 0

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

etwa 9 Jahre vor | 0

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

etwa 9 Jahre vor | 0

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

etwa 9 Jahre vor | 0

| akzeptiert

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

etwa 9 Jahre vor | 1

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

etwa 9 Jahre vor | 0

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

etwa 9 Jahre vor | 0

| akzeptiert

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

etwa 9 Jahre vor | 0

Mehr laden