Answered
help me in performing summation
It is useless to attempt a symbolic summation of these quantities. Each of the x quantities would have to appear. Just use mat...

13 years ago | 0

| accepted

Answered
why do I face problem with matlab solve function?
Your equations are of the form d1*cos(q1) = K1 d1*sin(q1) = K2 for which the solutions can easily be determined without...

13 years ago | 0

Answered
Steady State Probability Calculation - (Solve simultaneous eq. with 33 unknowns)
I didn't realize that by "33x33 nnormalized matrix" you meant that its rows each have a sum of 1. In that case I believe there ...

13 years ago | 2

Answered
Steady State Probability Calculation - (Solve simultaneous eq. with 33 unknowns)
There will be no non-zero solution unless one or more of the eigenvalues of the 33 by 33 matrix is equal to 1. Furthermore ther...

13 years ago | 4

Answered
How to find a vector in a matrix?
Another way: [m,n] = size(A); k = length(B(:)); p = hankel(1:k,k:n); f = find(all(bsxfun(@eq,reshape(A(:,p).',k,n-k+1,...

13 years ago | 0

Answered
curvature of a discrete function
Let (x1,y1), (x2,y2), and (x3,y3) be three successive points on your curve. The curvature of a circle drawn through them is simp...

13 years ago | 6

Answered
how can we separate term of taylor series of k(x,t) (as a summation of product terms of fi(x) by gi(t))?
Your statement "any continuous function of two variables can be approximated by the Taylor expansion" is not entirely correct. ...

13 years ago | 0

Answered
Value of unknown/Parameter Estimation from non-linear equations
Azzi has given you a good solution. However, these two equations have a great many solutions, many of them complex, and to find...

13 years ago | 0

Answered
Why is MATLAB not solving for the internal heat generation components of my loop?
Besides the trouble Walter describes, you apparently lack an ellipsis following this line: T(i,m+1)= T(i,m)+k_skull*del_t_sk...

13 years ago | 0

Answered
Vectorizing code to calculate radial distance for all points
You can also do: [X,Y,Z] = ndgrid(xmin:step:xmax,ymin:step:ymax,zmin:step:zmax); r = sqrt(X.^2+Y.^2+Z.^2);

13 years ago | 1

Answered
Generating possible sets that do not violate some condition
It looks as though in the line if(ismember(poss(i,:), vec)==length(vec)) you meant that if the number of true values in "...

13 years ago | 0

| accepted

Answered
How to generate matrix with mean equal to a specific number?
You are asking for the sum of n = 100 random numbers with values between 0 and 1 to have a sum of exactly 50. That is just what...

13 years ago | 1

| accepted

Answered
How to populate 2D array from 2 vectors perpendicular to each other?
This is my attempt to generalize your description. Let (x0,y0,z0) be the point of intersection of your two lines. (Note: The l...

13 years ago | 0

| accepted

Answered
For loop not saving answers into matrix.
If you wrote the code just as you show it, you would need to add an ellipsis after the equal sign: MIChinacorr(k,1)= ...

13 years ago | 0

Answered
Projection and distance of vectors - MATLAB
dot(u,v)*v/norm(v)

13 years ago | 1

Answered
code problem of semivariogram
Based on my brief reading of varigrams there appear to be a number of objections to this calculation. First, if your stochastic...

13 years ago | 0

Answered
wrong answer for solving function
That first answer is not as wrong (or bizarre) as you might think. When you present 'solve' with fractional powers you must exp...

13 years ago | 1

Answered
how to change data
Let x be the original row vector of 1's and 0's. n = length(x); d = diff([0,x,0]); f1 = find(d(1:n)>0); f2 = find(d(2:...

13 years ago | 1

Answered
Please help me! how to solve double integral in matlab with the variance are matrix numbers.
For discrete data such as you have, use 'trapz': K = trapz(trapz(A*delta_epsilon.*e_1.*e_2))*(0.1)^2; I assume here that ...

13 years ago | 1

Answered
help me find basis and dimension
Assume that a subspace is represented as being the subspace spanned by a set of columns vectors. To find a basis of the "sum"...

13 years ago | 0

Answered
Seeking help creating a transition probability matrix for a markov chain
It would be very similar to the solution I gave in your earlier posting. Let VA be your list of velocities and accelerations. ...

13 years ago | 1

Answered
how can i get a matrix from an array like this:
M = hankel(a,fliplr(a)); or if you can't use the 'hankel' function do this n = length(a); M = reshape(a(mod(floor(((n+...

13 years ago | 1

Answered
Estimating the error of a trapezoid method integral
As Matt J has indicated with his reference to http://en.wikipedia.org/wiki/Trapezoidal_rule#Error_analysis the error can b...

13 years ago | 0

Answered
"Solve" function in 2 dimensional image
Why write exp(x/2)^2 when you could write exp(x) instead? Also if by 256x256 you mean 256*256, why not just write x + exp(x...

13 years ago | 0

Answered
how to calculate degree between 3 points in MATLAB?
Let row vectors P0 = [x0,y0], P1 = [x1,y1], and P2 = [x2,y2] be Calcaneus, L-Knee, and 2th_MT points, respectively. The angle s...

13 years ago | 4

Answered
Sorting by number groups, Need help makeing a better function...
List = NG(floor((WPL(:,1)-1)/5)+1,2).*WPL(:,2); WPL = sortrows([WPL(:,1),List/sum(List)],-2); You may be unhappy with this...

13 years ago | 0

| accepted

Answered
Finding roots of a nonlinear equations
For your equation -R*T/(V-b)+(2*a*(V+b))/(V^2+2*V*b-b^2) = 0 the two roots are quite simple: s = (R*T+sqrt(2*R^2*T^2...

13 years ago | 0

Answered
need help in to write a matlab script
ix = 1:n; s = sum(1./ix+1./((ix+2).*(ix+3)));

13 years ago | 0

Answered
Matrix with all possibilities
Here is a variation on Azzi's solution: A = ones(2^n,n); p = 1; for k = 0:n-1 A(p+1:2*p,n-k:n) = [zeros(p,1),A(1:p,n...

13 years ago | 0

Answered
How to make combinations of given condition?
This is a problem for matlab's 'nchoosek' function.

13 years ago | 0

Load more