Answered
Is it possible to solve this equation without symbolics?
K = (-0.875/F1)^2+(-0.625/F2)^2+(0.21651/F6)^2-(-0.875)*(-0.625)/(F1)^2; F0 = sqrt(1/K); or (Two solutions) F0 = -sqrt...

12 years ago | 0

Answered
Optimization of a sum with unknown coefficients
If the values of the D elements are non-zero, you have a very undetermined system for which there are infinitely many values of ...

12 years ago | 1

Answered
How to find the critical points of a 2x2 jacobian matrix in matlab?
Presumably the critical points are those for which the determinant of the matrix is zero, but you don't need matlab to solve tha...

12 years ago | 1

Answered
how to plot these functions?
Successfully plotting such relationships often involves selecting the appropriate parameter. In the case of the first equation,...

12 years ago | 0

Answered
calculate an angle and distance from three points
I'll show you how to find one of the angles in the triangle P1 = [x1;y1], P2 = [x2;y2], P3 = [x3;y3]. The inner angle at vertex...

12 years ago | 3

| accepted

Answered
speed up 3 nested for loops
I think you have the nested for-loops in the wrong order for maximum efficiency. You are having to repeat the same computation ...

12 years ago | 0

| accepted

Answered
can anybody tell me the logic of this code
This is not good code. The index 'i' of the for-loop is advanced by 15 if y(i)>th is true, apparently expecting to skip the nex...

12 years ago | 0

Answered
Evaluating an integral with symbolic integral limits
It is not surprising that 'int' was unable to obtain an explicit expression for this integral, which I believe involves incomple...

12 years ago | 1

| accepted

Answered
I don't understand the why the distributive property (in math) is not always true in MatLab?
Yes, even the associative law can fail in numerical procedures in the presence of round-off errors. Try this on your matlab com...

12 years ago | 2

| accepted

Answered
How can I sum the digits of an interval of numbers and write in a file the ones that sum 13?
As I stated two days ago, there is an easy recursive procedure for determining the count of n-digit numbers whose digits sum to ...

12 years ago | 1

Answered
for loop to calculate the value of a recurrence relation
You haven't indexed your for-loop correctly. It should read: y(1) = 2; for t = 2:9 y(t) = 0.2*x(t)+0.8*y(t-1); end ...

12 years ago | 1

| accepted

Answered
How can I solve these 3 nonlinear equations for eqn1, eqn2 and eqn3 goes to zero?
You are asking for the two intersections between three spheres, (that is, provided they do intersect.) I wrote up a method of f...

12 years ago | 0

| accepted

Answered
Solve integral with a power
The quadrature routine 'integral', in the process of computing an integral, will call on its given integrand function with vecto...

12 years ago | 1

| accepted

Answered
Electron concentration as a function of quasi fermi level
It is possible you could have trouble numerically evaluating those integrals as x (and y) approach infinity. The integrand, x^(...

12 years ago | 0

Answered
How do i get x value from Y input from matlab polynomial plot
Use matlab's 'roots' function to solve equation: -0.0025*x.^6 + 0.0483*x.^5 ..... + 2.6569*x + 192.94 - maxY = 0 and sele...

12 years ago | 0

Answered
Error on summation of three numbers
To give you a very brief answer, your computer is using a binary representation of floating point numbers and cannot therefore e...

12 years ago | 1

Answered
How to plot a line parallel to a line with a distance of d between them ?
My guess is that where Priya says "a parallel line above and below to this line with at a distance of d between them", the _orth...

12 years ago | 1

Answered
Jacobian of scalar matrix
If you use discrete values for the variables x1 and x2, only an approximation to the partial derivatives can be achieved. That ...

12 years ago | 1

Answered
Vectorization fail with sub2ind?
Here's a simple example to show you how repeated values of 'ind' will produce different results from your for-loop: wts = ze...

12 years ago | 0

| accepted

Answered
How to reduce the length of a vector?
B = A(1:2:end,:);

12 years ago | 2

| accepted

Answered
How do I Solve for the unknowns phi and s using the newton-raphson method?
How about solving first for phi in the first equation and then solving for s in the second equation in terms of this phi? t ...

12 years ago | 1

Answered
Plot of Quadratic Equation coming out Linear...What do I do??? Emergency
Try putting a dot on your division symbols: y1=-x+x.^2./(1+x.^2); As you have it the division is matlab's matrix division...

12 years ago | 0

| accepted

Answered
how to find the area of the triangles formed as a result of delaunay triangulation
If a triangle is in two dimensional space with vertices at (x1,y1), (x2,y2), and (x3,y3), its area is given by: area = 1/2*a...

12 years ago | 1

| accepted

Answered
index must be a positive integer or logical. error in matlab
You will have to rethink how your y vector is to be indexed. It cannot accept index values of zero which you have used here: wh...

12 years ago | 0

Answered
How do I generate histogram of values in a vector, n bins, spread uniformly in an interval [a,b]?
The line "histarray(1,v(i)+1) = histarray(1,v(i)+1)+1;" is in error. You need to figure out some way to add 1 to the bin corres...

12 years ago | 0

Answered
Calculting a function with limits
Your first integral has a singularity at x = 0, but it was my impression that 'integral' can handle such singularities. However...

12 years ago | 0

Answered
x-coordinate for specific point in a triangle
This is an elementary analytic geometry problem. Write an expression for the slope of the line segment between B and C, and set...

12 years ago | 2

| accepted

Answered
How can I do linear indexing in matlab?
If you convert each of the integers 0:15 to binary, permute the digits appropriately, recalculate the numbers from these permute...

12 years ago | 0

Answered
Is this code correct for the ellipse equation given below..?? Will I get rotated ellipse from this code..??
Your attempt to parameterize is invalid, Santhosh. If you do a plot of your original expression, you will see it does not have ...

12 years ago | 1

| accepted

Load more