Answered
Spherical Interpolation of data
So, you have some function, known at points only on the surface of a sphere, where the locations are given by Latitude and Longi...

9 years ago | 0

Answered
HELP REQUIRED IN PROGRAMMING
Sorry. But this is just a bad idea. A novice style or programming, only headed for worse things to come. What will you do wit...

9 years ago | 3

| accepted

Answered
Improving my code - I'm trying to generate a checkerboard of size (222,786); length of each size 20. My code did work but I feel the logic can be improved. Kindly help.
Shiver. Yes, it can be improved. :) Honestly, what you have done is highly convoluted. That is not bad for someone learning to p...

9 years ago | 1

| accepted

Answered
What is a simple code for the chapman cycle involving only hydrogen and oxygen.This code should produce a curve but it only produces straight lines?
You have massive problems with the dynamic range of your numbers here, to the extent that you literally cannot solve this in dou...

9 years ago | 0

Answered
Efficient way of storing a triangular matrix
If all of your matrices are the same size, it is trivial to store them, extracting the upper triangle. Just create one vector...

9 years ago | 2

| accepted

Answered
Finding zero values of a matrix for different parameters
You want to know what combinations of K and Ma give you zero? help contourc Yes, I know that a contour plot does not se...

9 years ago | 0

| accepted

Answered
how can i fit smooth curve through these points ?
<https://www.mathworks.com/matlabcentral/fileexchange/34874-interparc Download interparc from the file exchange.> xyzint = ...

9 years ago | 2

| accepted

Answered
what size does a image need to be for
The optimal image size? Simple: 1 pixel. So a square image of size 1x1. Fast. Efficient as hell. Only requires ONE colo...

9 years ago | 0

Answered
What algorithm is being used by triplequad?
When you have questions like this, LOOK AT THE HELP. READ IT! At the command line in MATLAB, try this: help triplequad ...

9 years ago | 0

| accepted

Answered
Sum of row and column #?
Matt's answer of result=(1:n).'+(1:n); is the best way, at least in current versions of MATLAB, because it is most clea...

9 years ago | 0

Answered
Application of Particle Swarm Optimization to solve linear system of equations
Ok. I have some free time to answer this now. Using PSO to solve a singular problem is a bit silly. Sorry, but it is. Yes, i...

9 years ago | 1

| accepted

Answered
how to display A nonuniform randomly perturbed quadrilateral mesh
Easy peasy? [X,Y] = meshgrid(0:.1:1); X(2:10,2:10) = X(2:10,2:10) + randn(9,9)/100; Y(2:10,2:10) = Y(2:10,2:10) + ran...

9 years ago | 0

Answered
Analytic solution not possible. Can i solve with curve fitting?
No, you cannot "fit a curve" to this. At least not anything remotely useful, nor do you need to do so. That a solution is gen...

9 years ago | 2

| accepted

Answered
How to plot several confidence intervals together?
Can you plot ONE regression line with a confidence band around it? Of course. The CI is trivial - basic stats. You can plot t...

9 years ago | 0

| accepted

Answered
customising the boxplot with data points.
Well, you could have just tried it. That is often the best approach. But you may just not know how to use the hold command. ...

9 years ago | 1

| accepted

Answered
How to get X values given an Y from a Spline
I provide code for this in my <https://www.mathworks.com/matlabcentral/fileexchange/24443-slm-shape-language-modeling SLM toolbo...

9 years ago | 0

Answered
How do I plot a solution from a PDE within a unit square?
help contour

9 years ago | 0

| accepted

Answered
How can I evaluate a bessel function inside an integral?
That MATLAB returns the integral just means that no analytical solution was found. But if you need only find a NUMERICAL result,...

9 years ago | 1

Answered
Extract overlay matrix containing the same number
Easy peasy, the MATLAB way. C = A.*(A == B);

9 years ago | 0

Answered
Set boundaries to a plane equation
In THREE dimensions, FOUR points do NOT define a plane. (Well, you might get lucky, and all 4 points lie in the same plane. Luck...

9 years ago | 0

| accepted

Answered
Matlab jokes or puns
A comment that I frequently find useful when answering questions about MATLAB. *Eat a programming elephant one byte at a time...

9 years ago | 1

Answered
Why is fmincon finding the maxima instead of minima?
Never start an optimization at the point [0,0]. While it may succeed, it is dangerous, because some tools may decide to do thing...

9 years ago | 1

| accepted

Answered
finding multiple roots using newton raphson
Newton's method cannot be used to find multiple roots. You basically find one root, and you are done. Then you can start at a...

9 years ago | 0

| accepted

Answered
Can we do something like this similar to union()?
My guess is that your ambiguous example was not even representative of your problem, given your words. So let me guess and try t...

9 years ago | 0

Answered
regarding the use of fmincon with large set of data
This is not even remotely a large problem. That you have a moderately large (but not really) array of size 24000x3 is not releva...

9 years ago | 0

| accepted

Answered
How to divide the circle into specified sectors????
So generate a mesh of points at the desired polar angle and radius. help meshgrid Convert to cartesian coordinates. ...

9 years ago | 0

Answered
Plotting the mean and variance of 100 Brownian/Wiener paths
Computing the mean INSIDE the loop is wrong. If you will compute the paths in a loop, wait until after the loop to compute th...

9 years ago | 0

| accepted

Answered
My plot is not showing the points
Are you saying the original points are not shown on the plot? Of course they are not, since you never plotted them! You could...

9 years ago | 1

| accepted

Answered
How to optimize two optimization variables within the same objective function?
Yes. I agree with Torsten. And just think! You saved the time of trying to figure that out with an optimizer. Were you to try...

9 years ago | 0

Answered
I get a wrong answer solving the following system of equations please help me out
What do you think is the correct answer? And why do you think that these equations should give you that? Looking at eqna, we ...

9 years ago | 1

Load more