Beantwortet
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...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
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,...

mehr als 4 Jahre vor | 1

Beantwortet
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...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
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,...

mehr als 4 Jahre vor | 1

| akzeptiert

Beantwortet
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...

mehr als 4 Jahre vor | 0

Beantwortet
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 ...

mehr als 4 Jahre vor | 0

Beantwortet
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...

mehr als 4 Jahre vor | 0

Beantwortet
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...

mehr als 4 Jahre vor | 0

Beantwortet
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...

mehr als 4 Jahre vor | 0

Beantwortet
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...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 4 Jahre vor | 0

Beantwortet
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 ...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
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 ...

mehr als 4 Jahre vor | 1

Beantwortet
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...

mehr als 4 Jahre vor | 0

Beantwortet
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...

mehr als 4 Jahre vor | 2

Beantwortet
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 ...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
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 ...

mehr als 4 Jahre vor | 0

Beantwortet
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...

mehr als 4 Jahre vor | 1

Beantwortet
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...

mehr als 4 Jahre vor | 0

Beantwortet
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.)...

mehr als 4 Jahre vor | 1

Beantwortet
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...

mehr als 4 Jahre vor | 0

Beantwortet
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...

mehr als 4 Jahre vor | 0

Beantwortet
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. ...

mehr als 4 Jahre vor | 0

Beantwortet
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....

mehr als 4 Jahre vor | 0

Beantwortet
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...

mehr als 4 Jahre vor | 0

Discussion


Counting the passengers on a train: solving a basic problem using MATLAB
I saw this problem online recently. <https://www.youtube.com/watch?v=-rbozrj9poo Passenger distribution on a train> Not a...

mehr als 4 Jahre vor | 8

Beantwortet
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...

mehr als 4 Jahre vor | 1

Beantwortet
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...

mehr als 4 Jahre vor | 1

Beantwortet
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) == (...

mehr als 4 Jahre vor | 1

Beantwortet
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...

mehr als 4 Jahre vor | 0

Mehr laden