Answered
how to build a magic matrix manually of even n*n matrix?
@the cyclist is correct, that this is purely an algorithm question. But you did write code. Anyway, I'd start here, if I were y...

2 years ago | 0

| accepted

Answered
How do I plot the cross sectional area and centroid of an I-Beam using pgon ?
The funny thing is, your code was indeed essentially correct. You just started out wrongly. x = [ 0 0 1 1 2 2 3 3 4 4...

2 years ago | 0

| accepted

Answered
I got Inf when calculating 13959^475, how can I solve this problem?
Yes, you can use syms. However, you do NOT want to compute a huge power using syms directly, and THEN compute a modulus. Just co...

2 years ago | 0

Answered
Error With Least Squares Approximation
There are two serious issues in what you are doing, making this apprach, sadly, truly numerical nonsense. You think you did some...

2 years ago | 0

Answered
I unable to get trial version. Can you help?
No. We cannot help you. We are not your local customer support representatives! Answers is just a volunteer forum. We have no ...

2 years ago | 0

Answered
Initial Conditions for Newton Raphson Method for 9 equations 9 unknowns problem set
Not every system of equations you will write down has a solution. Starting from a random position does not insure you will find...

2 years ago | 0

Answered
Average Optimization using GA or intlinprog algorithms
This is not an optimization problem. You only look at it in that way. It is purely a problem of a Monte Carlo simulation, to com...

2 years ago | 0

Answered
MacOS(14.0) and Matlab 2014a format problem
R2014a does not run on that recent of the Mac OS. It is not supported there, and in fact, I am surprised it even comes that clos...

2 years ago | 0

Answered
Can multiple versions of MATLAB be installed on the same Windows PC using the same license number for code compatibility?"
Yes. I frequently have multiple releases on my machine. It is occasionally useful, but the older releases are usually there in m...

2 years ago | 0

Answered
how to use lsqcurvefit on a function that contain a series
You only have ONE data point. xdata=420; ydata=0.1; So only ONE piece of information! How do you intend to estimate TWO param...

2 years ago | 0

Answered
how does this work some clarification
Honestly, this Cody answer is one of the reasons why I think Cody is seriously flawed. It encourages people to write obscene cod...

2 years ago | 1

Answered
Alternatives to syms?
Well, it is pretty old, but you COULD just use my sympoly toolbox. ;-) It is on the FEX for free download. (Pretty old by now, b...

2 years ago | 2

Answered
Critical points of level curves
But what question about MATLAB are you asking? You have plotted the surface. and the level curves. And your code was correct to ...

2 years ago | 0

Answered
Having -1 as part of the result when factoring a polynomial
You should understand that a factorization is not unique when you get down to a factor of -1. Yes, it may seem strange, but even...

2 years ago | 0

Answered
how can i make ga to reproduce specific result?
No. You cannot enforce that GA will find any specific result. It appears you understand that GA may find different local solutio...

2 years ago | 0

| accepted

Answered
Given a taylor series of a function f, how do I get the original function f
You CANNOT do so. I'm sorry, but you are asking the impossible. Looking at it another way, the solution is absolutely trivial. W...

2 years ago | 0

| accepted

Answered
Gauss seidel method not working for sparse matrices
Um, don't use Gauss-Seidel? It is not that this matrix is sparse. (In fact, it was not even created as a sparse matrix. Sparsit...

2 years ago | 0

Answered
Can using 'angle' to find S21 phase shift ever be done incorrectly?
Hint: Learn about ATAN2, why it exists, and what it does differently. Use of atan gives a 2 quadrant arc tangent. The point is,...

2 years ago | 0

Answered
How to find a sequence from a txt file?
strfind does NOT read a string from a file! You did this: % Open the file fileID = fopen('cDNA1-1.txt', 'r'); % Rea...

2 years ago | 0

Answered
Solving large number of equations
This is not even a remotely large number of equations. Will you please learn to use matrices? X8 appears in only one form in y...

2 years ago | 0

Answered
Expected value with maximal domains
At the VERY least, you have chosen to MULTIPLY the two terms, instead of dividing them. Assuming you really wanted to form a rat...

2 years ago | 0

| accepted

Answered
MATLAB does not run on new iMAC
You do not say what OS version you have on the iMac, though I can guess, since you say it is a new iMac. The problem is most li...

2 years ago | 0

Answered
Will Quality of Documentation be better in 2024 Products?
If there is something specific that you think was lacking, then it is your responsibility to tell TMW what was missing. Don't ju...

2 years ago | 0

Answered
How to get mesh used by integral function adaptive quadrature
Nothing stops you from recording the points sent into your integration kernel. Save them in a persistent variable, for example, ...

2 years ago | 0

| accepted

Answered
Are the rules for element by element matrix operation changed?
Long ago, in a galaxy far, far away, we all used to use repmat to work with arrays of different sizes like that. Our code was go...

2 years ago | 1

Answered
How can I ignore (delete) unwanted peaks of a continious signal?
Just choose some point where the curve should have settled into its long term nominal state. That should be at or about a time o...

2 years ago | 2

| accepted

Answered
I keep this fuzzy function error; "Undefined function or variable 'fuzzy'."
In keeping with a question about the fuzzy toolbox, my response is an oldie, but moldy. That is, do you actually have that toolb...

2 years ago | 0

Answered
lines that meet each other
I think you have what is really a simple question. But you need to formulate it in mathematics, and that is often difficult with...

2 years ago | 1

Answered
problem in curve fitting using summation of sine functions
I'll post this as a separate answer, so as to not get it lost in the comments, and since I will show you how to solve it as a tr...

2 years ago | 0

Answered
problem in curve fitting using summation of sine functions
Ok. Thank you for the data. The plot does help a lot actually. At first glance, the plot of the fit itself looks quite reasonabl...

2 years ago | 0

Load more