Answered
What am I getting wrong with trying to create a sphere mesh using a golden spiral?
So you are not looking for a mesh at all, just a uniform sampling? Simplest might be to use a random sampling, with a twist. Tha...

6 years ago | 0

| accepted

Answered
Why do I get a graph that is symmetrical based on x=-2 when I draw a graph of y1=4*log((x+2))?
It is not clear what you wanted to plot. However, I think you misunderstand. It is still possible to evaluate the log of a nega...

6 years ago | 0

Answered
Tabulated Gauss-Kronrod weights and abscissae
I might presume the mp indicates some variation of the multi-precision toolbox. An old free version has been on the File Exchang...

6 years ago | 0

Answered
Solving symbolic trig equation
You can NEVER solve for those variables, at least as the equations are written. First of all, z never even appears. But since y...

6 years ago | 1

| accepted

Answered
How to get the value of an extra variable with fsolve
The simple trick is to use the output arguments from a function. Change your function header to look like this: function [F,r...

6 years ago | 0

| accepted

Answered
Find the intersection points between two data sets
Finding the intersection point is easy enough. [intx,inty] = intersections(data1(:,1),data1(:,2),data2(:,1),data2(:,2)) intx =...

6 years ago | 2

| accepted

Answered
numerical solution of a system of ODE which is not in standard form
Your question seems to be one of solving a system of ODEs with a mass matrix. For example in the help for ODE45, we see this opt...

6 years ago | 1

Answered
calculate tension by raphson newton in matlab
You have indicated these coefficients, although I worry there may be issues, because of the use of lower versus upper case W, et...

6 years ago | 0

Answered
Interpolating n-dimensional functions
First, IF you have a complete gridded lattice, then you don't want to use griddatan. That is DEFINITELY a BAD idea. Why? Because...

6 years ago | 1

| accepted

Answered
What am I missing here?
Thank you. That makes it much easier for someone to offer you help. Now I'll be willing to look at the problem you had. It loo...

6 years ago | 1

Answered
How to extrapolate a contour plot?
Let me see. You have data in only 25% of the region of interest. Now you want to extrapolate that data into a region that compri...

6 years ago | 0

Answered
To solve non-linear equation by inversion notion
STOP. Is this nonlinear? Or is it linear? A*X = b is still LINEAR, even if the array is not square. Even in the linear case, t...

6 years ago | 0

Answered
how to use reshape ?
The good thing about reshape is IF you put in an empty argument, then it figures out how many columns you will need. But first,...

6 years ago | 2

Answered
Is an infinite for loop infinite?
We can always try it. Perhaps we can learn something about how the loop works, done by a careful test. Remember that doubles are...

6 years ago | 1

| accepted

Answered
how to fit 3 lines with one equation
Easy to answer. Is it possible? Of course. Anything is possible, though it may take a heck of a lot of work. I could even fin...

6 years ago | 0

Answered
Image Processing on point clouds
If you want to use image processing tools, you pretty much need an image. Those tools are not written to work without one, certa...

6 years ago | 0

Answered
Error in Eigen Values
Is KSr a double precision matrix, or a function, in the form of a function handle, or the name of an m-file function? That seems...

6 years ago | 0

Answered
Multiplication of two polynomials having different variables
The simple answer is to use the symbolic toolbox. If you have it, I cannnot think of a good reason why you would not use it. sy...

6 years ago | 1

| accepted

Answered
geometric progression and multiply by a common variable, help me pls.
So, you want this? B = 3; C = B*20*sqrt(2).^(0:10) C = Columns 1 through 9 60 84.853 120 ...

6 years ago | 1

Answered
f(x,y)<=0
I can see several ways off the top of my head. Consider some arbitrary implicit function. fun = @(x,y) x.^2 + y.^3 - 3; Easy ...

6 years ago | 1

Answered
how to decode the message 67 44 41 49 39 19 113 76 62 104 69 55.
A good clue to the answer "Is this code correct", when applied to a homework assignment like this is if you get something that m...

6 years ago | 0

Answered
Baseball trajectory with drag and wind
This is almost a classical problem, and the reason stiff ODE solvers were provided. Essentially, when you get that error using O...

6 years ago | 0

Answered
Generating dispersed (non-integer) random matrix/array that sums to a particular value
I think you do not understand what you are asking. randfixedssum indeed produces results that are uniformly sistributed within...

6 years ago | 0

| accepted

Answered
What frustrates you about MATLAB? #2
That the mind reading toolbox has never become available for general use? ;-) Truly, that scares me just a bit if it ever truly...

6 years ago | 6

Answered
Code to produce orthogonal rows in a N* N matrices
Not that hard. First check, is this homework? Hmm. Highly unlikely, since I had to think for at least a second about how to solv...

6 years ago | 2

| accepted

Answered
Double integration of a binomial function (in x and y) generated from two row arrays
I follow what you did (possibly) A = 10; B = 20; a = [0, 1, 2, 3, 4]; b = [5, 6, 7, 8, 9]; syms x y x = sym('x'); y = sym...

6 years ago | 1

| accepted

Answered
Bilinear and Trilinear Interpolation
Wow. I guess I've been working with those tools for so many years, as well as building variations of them, that I think of them ...

6 years ago | 1

| accepted

Answered
How to solve PDE problem
This is second order in the time derivative, so there is a utt term. But that should make in not in the realm of pdepe, which al...

6 years ago | 0

Answered
1D Linear Elasticity Equivalent Stiffness Solution not being solved (6 equations and 6 vars)
These are differential equations, a boundary value problem. We use dsolve to solve it. For example, a simple example is: syms ...

6 years ago | 1

| accepted

Answered
Double integration of a binomial function (in x and y) generated from two row arrays
Let me explain, because you either have a simple problem to solve, or an impossible one. I've restated my comment as an answer,...

6 years ago | 1

Load more