Answered
How do i keep track of eigenvalue on pzmap for a pariticular system matrix A containing a variable D?
You can use the tool I wrote, eigenshuffle. It sorts the eigenvalues in as consistent an order as possible, by assuming the corr...

3 years ago | 0

Answered
Error using "*" in my equation, assumes I am trying to do matrix multiplication.
Even though you are not using matrices, does not mean that linear algebra could not be intended. MATLAB does not know what you a...

3 years ago | 0

| accepted

Answered
Finding the turning points
If all you will use are the 100 coarsely sampled points you are plotting, then min and max will do what you want. Look at the se...

3 years ago | 0

Answered
surface area of 3D surface
Would our doing your exam for you really help you? Seriously? If you need help that badly, then you should have been studying mo...

3 years ago | 0

Answered
How do I place a point anywhere along x axis (with range 100m) in a plot?
Highly confusing. Do you want to plot a single point? What y value? Maybe you want to do this? k = 53; plot(k,0,'ro') % A sing...

3 years ago | 0

Answered
Cantor function in matlab
To be honest, I'd probably be lazy, and just use the simple algorithm found in wikipedia. https://en.wikipedia.org/wiki/Cantor_...

3 years ago | 1

Answered
Wrong answer for ODE
As is so often the case, a DIFFERENT answer is not always a WRONG answer. It may just look different. But different is not alway...

3 years ago | 0

| accepted

Answered
function of two uniformly random variables
I think you need to learn how to write a function. You also seriously need to learn about the dotted operators. What you wrote f...

3 years ago | 0

| accepted

Answered
Create a series of variables with names that include numbers
https://www.mathworks.com/matlabcentral/answers/304528-tutorial-why-variables-should-not-be-named-dynamically-eval The funny th...

3 years ago | 0

| accepted

Answered
Can we trace the qualification of person using matlab?
Huh? If I had to guess, you want to see if an algorithm exists to know the degree of skill a person has as a MATLAB coder, based...

3 years ago | 2

Answered
Non linear fit of y=f[x] where y can have multiple values for a single value of x
No. You cannot use polyfitn. It is designed to solve a SINGLE valued problem, but with 1 or more independent variables. You cann...

3 years ago | 0

| accepted

Answered
How to give a condition based on the following situation
Why does it matter? Just pick one of them. Or choose randomly between them. Or on odd numbered days, choose the first, on even n...

3 years ago | 0

| accepted

Answered
How to replace the non zero values of a matrix with another value?
A(A ~= 0) == 0.1; One line of code. That applies to ANY release of MATLAB. As far back as I have been using MATLAB, so only bac...

3 years ago | 0

| accepted

Answered
how to script rectangular function in MATLAB
Define what a rect function is, since I find it difficult to read your mind. I'll guess it might be a unit rectangular pulse of ...

3 years ago | 0

Answered
How can I 3d interpolate a function f: R^3 --> R^3 ?
This is a common problem, at least in the world of color modeling as I worked for many years. You will want to build 3 interpola...

3 years ago | 0

| accepted

Answered
Positive definite and LQR
R = 1; C = [0 0 1]; Q1 = 25*C'*C; N = zeros(3,1); matrix = [Q1 N;N' R]; The matrix Q1 has rank 1. You formed it from a vect...

3 years ago | 1

Answered
How do I simplify polynomial coefficients with symbolic variables to the least possible forms?
The simplest form in your eyes is not always what a computer sees as the simplest form. It may require factoring the polynomial ...

3 years ago | 0

Answered
Smoothing a distribution curve
The distributions you show are not at all unsmooth. And they don't look at all uncommon for problems of that kind. So I'm not su...

3 years ago | 2

| accepted

Answered
how can i see the steps in ref and rref.
You can't really. But you could, sort of. For example, you could use the debugger, and trace through the code as it runs on your...

3 years ago | 0

Answered
How to solve a singular matrix problem?
Probable user error. How can you solve it? Almost always with a FEM problem, a singularity arises when you have made a mistake....

3 years ago | 0

Answered
How to find max value for a function between 2 specified values
Use fminbnd. fun = @(x) sin(x); [xloc,fval] = fminbnd(@(x) -fun(x),0,pi); xloc maxval = -fval So the maximum arises at x==p...

3 years ago | 0

Answered
Find combination of 12 matrix rows, fulfilling certain criterion, from matrix of size 3432 *7
Finding all possible computations there are would be a computationally hard problem, certainly if you used brute force. It would...

3 years ago | 0

Answered
Find (local?) maxima when two maxima are adjacent to each other (maybe using islocalmax or findpeaks?)
help islocalmax Now, look carefully at the elements of that array. freq = [37 37 23 1 1 1]; m = islocalmax(freq) Is element ...

3 years ago | 0

Answered
How to use lsqnonlin with multiple constraints?
These are not so much constraints, as bounds. They are simpler things. lsqnonlin allows bounds, but not equality or inequality c...

3 years ago | 0

| accepted

Answered
Count all pairwise interactions in a matrix
If you have only one row, then it is trivial. Just use nchoosek. Row = [2 3 5 7]; Row(nchoosek(1:4,2)) But you have multiple ...

3 years ago | 0

| accepted

Answered
Can anyone please help me with PSAT 1.34 software
What is the problem? You can download it. http://faraday1.ucd.ie/psat.html It appears the documentation is not available for ...

3 years ago | 0

Answered
Different ways to solve a problem based , non linear function (sum(K.^2) -K is a 20*1 matrix) problem with linear equality constrains and having binary, continuous variables
None of the optimizers in the optimization toolbox (except for intlinprog, which handles only linear problems, so it does not ap...

3 years ago | 0

| accepted

Answered
How to create a surface plot having 3 vectors?
Without knowing what your data looks like, it is difficult to help. And we don't see any data. For example, do you think that s...

3 years ago | 0

Answered
How to calculate the volume of trisurf?
If the points are on a sphere, thus a convex object, then a convex hull is what you want, not Crust anyway. Crust will allow the...

3 years ago | 0

Answered
Asymmetric intervals built-in vectorisation
You can decide that some syntax is what you want to have work, but there are limits. And I would no be surprised if someone else...

3 years ago | 1

| accepted

Load more