Answered
find a solution to a function subject to certain constrains
Sigh. Why, in the name of god and little green apples??? I suppose you have a reason. And why do you think that you needed to...

9 years ago | 0

Answered
i have a non positive correlation matrix define ?
I might suggest <https://www.mathworks.com/matlabcentral/fileexchange/42885-nearestspd nearestSPD> , as found on the File exchan...

9 years ago | 1

Answered
The question for my assignment is asking for a plot of the Maxwell-Boltzman Distribution as a function of energy. I do not understand why my graph only has one point plotted
What is this? 0:0.5:0.00000000000000000000 How many elements do you expect that to hold? What is the start point? What i...

9 years ago | 0

Answered
Floating-point scalars
Um, lets be serious. You are trying to integrate the "function" z/Lf, over simple limits. Lf is 12. With limits of 0 and max_zli...

9 years ago | 0

Answered
How to plot solid tetrahedrons in MATLAB?
You don't plot a solid tetrahedron. You plot 4 facets of a tetrahedron. Done. WTP? Use patch. There are some things you can d...

9 years ago | 0

Answered
fitness type in genetic algorithm
It does very little. A variable is created of name Fitness_type. It is assigned the value 4. Anything that starts with a ...

9 years ago | 0

Answered
how would i solve for t2 and t3 in the last matrix? ive never dealt with variables in matrices before.
Sorry. But no solution exists. You have 4 equations, in only two unknowns. l1 = .1; %m l2 = .06; %m l3 = .08; %m k...

9 years ago | 0

| accepted

Answered
Problem with factorization of a matrix in a linear system
Argh. Well, you did make an effort. But this is for what appears to be a basic numerical linear algebra class. So you need to st...

9 years ago | 0

| accepted

Answered
How can I plot certain columns of a matrix?
plot(A(:,[1:10,25,150:155])) So pretty basic matrix indexing, as well as how to create a vector. You need to learn to creat...

9 years ago | 4

| accepted

Answered
How to solve non-linear langmuir type equations which have 4 variables?
So, for each combination of p,aer,xeq, you wish to estimate a,b,c,k variables. To do this at each such combination you say that ...

9 years ago | 0

Answered
Deformed surf using griddata ?
Easy, peasy. Griddata will fail here. In fact, my own gridfit will produce some artifacts. But essentially, you have a sim...

9 years ago | 1

| accepted

Answered
Finding Maximum Difference Between Element and All Neighboring Elements in An Arary
If all you want are horizontal and vertical comparisons, then this too easy. Essentially two calls to diff, then a few max calls...

9 years ago | 1

| accepted

Answered
How can I find the intersection between a line and a 3D surface?
The "surface" exists only in your mind. All you have are points. Isolated points. So until you find away to connect those points...

9 years ago | 2

| accepted

Answered
Iteration Without the Implementation of Loops
q = sym('q',[1,10]); i = 1:10; F = i - 2*q == 0; solq = solve(F,q) solq = struct with fields: q1...

9 years ago | 0

| accepted

Answered
Matlab gradient does not follow exact numerical formula
Actually, it DOES use the proper formula. The formula divides by delta. (I used delta here, because otherwise you have h in two ...

9 years ago | 1

| accepted

Answered
Regression with dependent independent variables
Um, yes. ANY regression computation takes into account the relation between the variables. So backslash, regress, lscov, lsqr...

9 years ago | 0

| accepted

Answered
Any way to speed up symbolic calculations?
Hmm. Surely if there was a faster method for symbolic calculations, they would use it? Symbolic computations are SLOW. That is e...

9 years ago | 4

Answered
using the linprog function for two constraints?
There are MULTIPLE problems here. Read carefully what I write, because it exposes a major problem with what you are trying to do...

9 years ago | 0

Answered
I want to draw an implicit form 2-D function.
fxy = @(x,y) 0.97*x.^6-280.2*x.^5+2.9*x.^4.*y.^2-104.38*x.^4.*y+ ... 16060.71*x.^4-560.39*x.^3.*y.^2+18788.73*x.^3.*y+134...

9 years ago | 0

Answered
Fmincon is not using multiple processor
Having a billion cores will not help if you have a problem that is inherently not parallel. So small computations, branches, ...

9 years ago | 0

| accepted

Answered
Find path along steepest gradient in an array
You have what appears to be a complete surface, a noisy one, but still. Why cannot you just use a tool like gradient to compu...

9 years ago | 0

Answered
How to plot a surface from x and y having different values of z, i.e. (x,z1) and (y,z2)?
Insufficient information to draw a "surface". You have essentially marginal data, in the sense of a marginal distribution. S...

9 years ago | 0

| accepted

Answered
Is there any tool to draw specific Pourbaix diagrams?
You will need to write it, I am afraid. I did only find one link online, where MATLAB code was written. So you might contact the...

9 years ago | 0

| accepted

Answered
Implicit indexing with structures - A question
It is not at all clear what does not make sense. clear all ; a.x = 1; b.x = 2; So, a and b are structs, each wit...

9 years ago | 3

Answered
i am defining my nodes . the first set is how i want it but when i run it, it gives me the error of #Subscript indices must either be real positive integers or logicals but if i swap the last two enteries it works fine
It works fine either way. What matters is what you will do with that array AFTERWARDS. crackplanenodes = [ 4 0 7; 4 0.5 7; ...

9 years ago | 1

| accepted

Answered
Fitting weibull parameters when sample x data that is not perfectly continuous
You asked the same question before. I think you misunderstand the idea of estimating a Weibull distribution from sample data. ...

9 years ago | 0

Answered
How to download Antenna Toolbox
This is not a question for Answers. Answers is not customer service, or sales. Answers is NOT official MATLAB support at all. ...

9 years ago | 1

Answered
Graphing a transcendental Equation
ezplot('sind(beta - phi)+sind(phi).*exp(-beta./atand(phi))',[0 380 0 100]) When you are not sure how to plot something, ezp...

9 years ago | 1

| accepted

Answered
how do i deal with the warning error: Matrix is singular to working precision.
1. Don't write your own ODE solvers. If you don't know how to deal with numerical problems, this is just asking for trouble. Yes...

9 years ago | 0

Answered
Generate random negative and positive values with specific average
This the 1 millionth time I've seen the question. In fact, this question has at least several problems that make it not well pos...

9 years ago | 3

Load more