Answered
How can I fit a smooth curve to this data and get the equation of the curve?
It is a bad idea to name your variables with the same name as an existing and useful MATLAAB function. Power is one such example...

1 month ago | 0

| accepted

Answered
Solving a highly non linear equation in Matlab
This is a differential equation. An ODE, because it involves derivatives wrt only one variable. It is high order, and nonlinear,...

1 month ago | 1

Answered
When chromaticity diagram meets a line
Describe the diagram border as a polygon. That just means you need to get the sequence of points on the boundary, IN SEQUENCE, a...

1 month ago | 0

| accepted

Answered
How to plot a set as the constraint in 2D?
Think clearly about what you are asking to plot. sqrt(x1^2 + x2^2) < x1 Do you agree that x2^2 is ALWAYS a positive number,...

2 months ago | 1

| accepted

Answered
How to convert variables in a function handle ?
Um, not easily, and yes, sort of. If you want to actually modify the function handle, then that would take some effort and text...

2 months ago | 0

Answered
How to create a matrix using Booleans that looks like this:
There are always a million ways to solve such a problem, however, there is no need to use booleans at all. Best is if you learn ...

2 months ago | 0

Answered
How to solve trigonometric equation x*cos(x)+sin(x)=0 with function fsolve?
This is just a variation of a problem I've seen given many times. It is one of the simplest equations I can think of that has no...

2 months ago | 0

Answered
Why are there variations in values when using floor function?
Do you understand that it is impossible to represent most fractinos as floating point numbers, and do so exactly? That is, is th...

2 months ago | 0

Answered
Spline Interpolation for Motion Profile
You can't get an "equation" for a spline. Well, you can, IF you understand splines in some depth, but it is a bit of a piecewise...

2 months ago | 0

Answered
How to make matlab give me a numeric answer to a matrix with infinite solutions
MCh =[ 1 0 -1 0 5 0 0 -1 0 2 -3 -1 0 1 -4 0]; rank(MCh) You wish to solve the 4x4 homoge...

2 months ago | 0

| accepted

Answered
null() fails for a symbolic numeric 5x5 matrix
It is often difficult to know what a compiled code has done under the hood, especially when symbolic operations are involved. Ho...

2 months ago | 0

Answered
generating random numbers from poisson distribution
Since the request has now morphed to do so without using poissrnd, that makes it very likely homework. In that case, you might ...

2 months ago | 0

| accepted

Answered
the meaning of a sentence in command window
I think you are perhaps confused. And the answers are a bit confusing too. And, of course, we don't know any characteristics of ...

2 months ago | 1

Answered
Find rows with common values using intersect
Intersect is the wrong way to approach this, I think. And at the same time, the solution is probably going to seem easy, once yo...

2 months ago | 0

Answered
Optimization of weighted sum
First, LEARN TO USE ARRAYS!!!!!!!! Don't create 8 different numbered variables. Why does that make sense, when you can create O...

2 months ago | 2

Answered
Associating another Person's Academic MatLab License with my name.
You can contact Mathworks, and ask them. To be honest, the answer is your scheme is probably not legal, since it is essentially ...

2 months ago | 0

| accepted

Answered
I need to find the length of the longest strictly increasing subsequence array from a given array I just need a tip to start. Any type of help will be appreciated
Can you use diff on your vector? What property does the result of diff have on strictly increasing sequences? Will all elements ...

2 months ago | 0

Answered
error in integration of function
You don't understand. You define x. i and N are numbers. i = 1; N = 100; h = 1/N; x = (i-1)*h; What is x now? A number. Gr...

2 months ago | 1

Answered
Cannot simplify a result
You got a "numerical" result. But because the result is symbolic, that is the symbolic result. pi, and square roots are as you w...

2 months ago | 0

Answered
before running the code then Px would be considered to be a variable instead of a function. You might have assigned something to Px in an earlier version of the code and not c
for i = 0:len-1 dif = a(i+1,1) - a(i,1) i starts out at 0 in the for loop. Does MATLAB alow a 0 index for an array? (NO.)...

2 months ago | 1

Answered
How to speed up the code to check if randomly generated number in a certain range is a prime ?
The simple answer is to generate the primes in that range, ALL of them, and then look to see which of your randomly generated el...

2 months ago | 0

Answered
swapping two matrices with similar randomness
You just need to learn how to use indexing. A = [1 2 3 4 5]; B = zeros(5,2); B(:,2) = A/10 Note that even thoiug...

2 months ago | 0

Answered
how to set a loop to calculate time
EVERY pass through your loop, you REDEFINE the variable t. Learn to use MATLAB. Stop thinking in terms of loops for everything. ...

2 months ago | 0

Answered
I need to find a way to plug in unknown values into a function I curve-fitted to known data.
This is not as hard as you make it seem. (Honestly, I tend not to use cftool at all. I just use fit.) Look at the menu options....

2 months ago | 0

Answered
Irregular intervals inside a for loop
There are multiple ways to do this. For example: P = primes(20); % Note that P is a ROW vector P SumP = 0; for P_i = P Su...

2 months ago | 0

Answered
Which triangulation method does alphaTriangulation?
An alpha shape starts with a Delaunay triangulation. Then some parts of it are deleted as defined by the alpha shape. (Having wr...

2 months ago | 0

Answered
Locate index and weights for linear interpolation for a monotonically increasing vector
I cannot compare your code to something meaningful because your code is not complete. It lacks mustBeLogical, and possibly other...

2 months ago | 1

Answered
Solving 3 equations with 3 unknowns using for loop ?
syms Xb Xm a E1 = (Xb-Xm*25e-3)*(-230.6815e-6*a) == (1.05e3-1.01038e3)*9.81*1.2566e-6 ; E2 = (Xb-Xm*50e-3)*(-108.65e-6*a) == (...

2 months ago | 1

Answered
Can the equations in the differential equation group be represented by symbols when matlab ode solves the differential equation group ?
Sorry, but the numerical ode solvers, such as ODE45 are NOT symbolic tools. They CANNOT solve an ode with symbolic parameters. P...

2 months ago | 0

Answered
How to I find x in sin(x) = 0.65
Simple enough. I'll use solve, since you mentioned that. What happens if you just call solve? syms x solve(sin(x) == 0.5) So ...

2 months ago | 1

Load more