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

casi 9 años hace | 0

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

casi 9 años hace | 1

| aceptada

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

casi 9 años hace | 1

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

casi 9 años hace | 0

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

casi 9 años hace | 0

| aceptada

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

casi 9 años hace | 0

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

casi 9 años hace | 0

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

casi 9 años hace | 0

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

casi 9 años hace | 0

| aceptada

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

casi 9 años hace | 1

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

casi 9 años hace | 0

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

casi 9 años hace | 0

| aceptada

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

casi 9 años hace | 1

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

casi 9 años hace | 0

| aceptada

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

alrededor de 9 años hace | 0

| aceptada

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

alrededor de 9 años hace | 0

| aceptada

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

alrededor de 9 años hace | 0

| aceptada

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

alrededor de 9 años hace | 0

| aceptada

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

alrededor de 9 años hace | 0

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

alrededor de 9 años hace | 0

| aceptada

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

alrededor de 9 años hace | 0

| aceptada

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

alrededor de 9 años hace | 1

| aceptada

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

alrededor de 9 años hace | 0

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

alrededor de 9 años hace | 0

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

alrededor de 9 años hace | 0

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

alrededor de 9 años hace | 0

| aceptada

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

alrededor de 9 años hace | 1

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

alrededor de 9 años hace | 0

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

alrededor de 9 años hace | 0

| aceptada

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

alrededor de 9 años hace | 0

Cargar más