Answered
How does one find the max value of one column and relate it to another column?
Read the help for max. What are the outputs? help max Do you see the SECOND output argument from max? That tells you where the...

4 years ago | 0

Answered
multiple 2d plot in 1 3D plot with common origin point
Not nearly as hard as it may seem. Or, maybe this seems like it should be easy, and so my solution is actually harder than you w...

4 years ago | 0

| accepted

Answered
How to plot x=y2
Has nobody yet fully answered this question? Since it is now long past the time when a homework answer would have done homework ...

4 years ago | 2

Answered
Can I input data with multiple column lengths into one matrix?
No. Sorry, but no. A matrix cannot have columns that vary in length. A matrix in MATLAB is a rectangular array of scalar element...

4 years ago | 1

Answered
hi my assignment requires product of all diagonal elements, i did a simply look as copied below, but could only pass the test on one case and failed all others. can you please
If I had to guess, it is because the value of n was never properly defined as the size of the matrix U! For example: U = rand(...

4 years ago | 0

Answered
I am trying to make a matrix (10x100) called 'DemClay' with a slope of -1 to -0.5 incrementally if possible, so that the first row is -1 and the last row is -0.5
Pretty easy. And soooo many ways to do it. This is a simple one: DemClay = repmat(linspace(-1,-0.5,10)',[1,100]); size(DemClay...

4 years ago | 1

| accepted

Answered
Counting liberties on a Go (Baduk, Weiqi) board
This link defines the rules for a liberty: https://www.yourturnmyturn.com/rules/go.php I read them only quickly, but I think I...

4 years ago | 0

| accepted

Answered
Finding identity matrix-like square matrix given two rectangular matrices
Since you have A which is mxn, and n>m, the problem is not that A is singular, or even rank deficient, it is that the problem is...

4 years ago | 2

Answered
how to remove uncertainty from data in order to plot it
You could do something as simple as: S = "2.19479E-8 ± 2.46286E-10"; substrs = split(S); N = double(substrs(1)) That is, bre...

4 years ago | 0

Answered
How to solve the below numerical
So for any given value of H, y, znd z, you want to be able to write x as a function of them, then drawing a nice pretty picture....

4 years ago | 1

| accepted

Answered
To find the similar function
Why would there be a different one? Do you really need multiple ways to do this, especially since any other way you would do it ...

4 years ago | 0

Answered
How can I determine the the X and Y equation using coefficients of cscvn function?
Congratulations! You are the 1 millionth person to ask essentially the same question. Your reward for this is a one-way un-paid ...

4 years ago | 1

Answered
Obtaining half-spaces from the convex hull in MATLAB
What is a half space? Well, what do you mean by that? And what do you mean by "manually calculating" them? And is there some sim...

4 years ago | 0

Answered
I CODED THE PROGRAM BUT DON'T KNOW WHY STATEMENT IS NOT SHOWING, Using the singular value decomposition, prove that σ¯(AB) ≤ σ¯(A)¯σ(B)
I assume your question applies to a theorem about the singular values of the product of matrices. That is, if we compute the sin...

4 years ago | 1

Answered
Creation of a fitting function with if conditions involved
NEVER do things like this using floating point numbers. round(y(1),1)==0.7 While that may work, will it always? Will it ne...

4 years ago | 1

Answered
How to plot sin(xy)=sin(x)+sin(y)?
This is called an implicit function. Use fimplicit. Again, easy. fimplicit(@(x,y) sin(x.*y) - sin(x) - sin(y))

4 years ago | 1

| accepted

Answered
how to get common range between 20 intervals?
Your question is too fuzzy. You want to satisfy some of the intervals. Most. How many is most? And how is a computer to choose? ...

4 years ago | 2

Answered
Optimization problem giving inconsistent answers upon changing initial guesses
There are several issues you need to understand. First. not all optimization problems have a single, unique solution, arrived a...

4 years ago | 1

Answered
Do constants created in primary function transfer over to subsidiary functions created?
There are TWO distinct type of subsidiary functions in MATLAB, sub-functions, and nested functions. Consider first the function...

4 years ago | 0

| accepted

Answered
How to create a 1x2 row vector names AB that stores A as the first entry and B as the scond entry?
Since this is impossible in the most basic sense, I assume it is not homework. Simple matrices in MATLAB cannot store a variab...

4 years ago | 0

Answered
Using function of newer MATLAB version in older version
No. Sorry, but no. You cannot use functions from one release in another release. They essentially check for this. Could you wri...

4 years ago | 0

Answered
how can I get better interpolation from the scatteredInterpolant command?Gives incorrect answers.
Again, there are INFINITELY many ways to interpolate a set of discrete points. You apparently used scatteredInterpolant, but it ...

4 years ago | 0

Answered
How to generate M *almost* mutually orthogonal vectors of dimensionality N, where M>>N ?
I'm sorry, but your goal is difficult, virtually impossible. It depends on how close they must be to "orthogonal". In fact, in o...

4 years ago | 3

Answered
Negation of a function handle
minusf2 = @(x) -f2; "This is working" No. In fact, that does NOT work. That will simply not work. If f2 is a function handle, ...

4 years ago | 0

| accepted

Answered
how to get a number from integration
syms x L=3000/1000; b=40/1000; t=4/1000; h=100/1000; H=200/1000; E=70e9; Ra=11.25e3; I=((b/12)*(h+x*(H-h)/L)^3)-((b-2*t)...

4 years ago | 0

Answered
Unrecognized function or variable 'ys'
This has ABSOLUTELY NOTHING to do with the symbolic toolbox, or your download of that TB. LOOK AT YOUR CODE. READ THE ERROR MES...

4 years ago | 2

Answered
MATLAB won't allow me to work with an Array of 7000 rows. It doesn't display an error but It gives me all different values and won't allow me to calcolate the mean
No. 7000 rows is not a limit in MATLAB. Do you need a better PC? Well, Of COURSE YOU DO. We all need better computers. ;) Person...

4 years ago | 1

Answered
How to perform symbolic integration?
Do you presume that every integral you write down has a symbolic, analytical solution? Is that perhaps really a good idea? syms...

4 years ago | 0

Answered
Finding values of n for which the equation has a real root
First, as long as n is real, ALL values of n will produce an equation with either one or THREE real roots. That is to say, a cub...

4 years ago | 0

Answered
SVD of complex matrix to get the desired eigenvectors
K=[-0.469586517065409 + 0.175378013674380i,-0.162669155608248 + 0.474138893683794i,0.187585296250523 + 0.464844814234381i,-0.047...

4 years ago | 0

| accepted

Load more