Réponse apportée
Revolving a curve about the y-axis to generate a 3D surface
Certainly. Just write the code yourself. Seriously, it is not difficult. Consider the function y = f(x). f = @(x) x.*(1-x); ...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
matlab rank of a matrix
Because the call: R = ones(100,100); rank(R,1e-20) attempts to do something that is demonstrably silly, in terms of double pr...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
which project of these projects will be easy with matlab?
I think you do not understand. ANY project can be either easy, or too difficult for you to handle. What matters is if you unders...

environ 4 ans il y a | 0

Réponse apportée
How should I approach solving differential equation as function of two variables r, k?
While you COULD use an ODE solver, this is something you would ONLY do if the ODE had no analytical solution. And this ODE has a...

environ 4 ans il y a | 1

Réponse apportée
Fmincon too many input arguments
How are you using it? That is, how did you call the function try_no_gradient(u0)? When you get an error message, show the COMPL...

environ 4 ans il y a | 0

Réponse apportée
How to subtract only certain elements of a vector
a and b are not vectors in your question, they are arrays. However, if you want to do this, nothing stops you from selecting th...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Plot the graph using non linear equation
A nonlinear problem like this is called an implicit function. You can think of the value of h, as a function of theta, but there...

environ 4 ans il y a | 1

Réponse apportée
convert current date and time to char
Easier than you think. First, what is the current time? format long g CurrentTime = now That might not seem terribly helpfu...

environ 4 ans il y a | 1

Réponse apportée
Limit angle in [-90, 90] degree
You cannot simply constrain an ODE solver to stay within bounds. However, almost certainly, if the ODE solver wants to go outsid...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Code involving factorials and a given value
Now that you have a looped solution, let me show how to solve the problem more directly. There are actually several solutions I ...

environ 4 ans il y a | 1

Réponse apportée
how to solve this differential equation system symbolically?
This seems like a homework problem. But Walter has already given an answer, that I think is not helpful, since dsolve will fail ...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Optimization to find a deterministic number
Huh? This question is pretty confusing. But let me see where it goes. First, it seems you claim that g(x) is the solution of an...

environ 4 ans il y a | 0

Réponse apportée
How to rotate about an axis parallel to x axis?
Simple. Effectively, you transform the problem to a rotation around the x axis, then after the rotation, you tranform back. For...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
Matrix from measured data is singular, what could be the reason?
In no place in this thread have I seen the matrix A. I've seen various versions of it however, with various numbers of rows. I'v...

environ 4 ans il y a | 0

Réponse apportée
Reinforcement Learning toolbox missing functions
If you have a current version of that toolbox, it should have those tools. which rlDiscreteCategoricalActor which rlValueFunct...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Calculate the distance between points in a large data set
LEARN TO USE MATLAB. Do not create numbered and named variables. DO create vectors and arrays. Use them. Since all you have pos...

environ 4 ans il y a | 2

| A accepté

Réponse apportée
Optimization terminated: average change in the fitness value less than options.FunctionTolerance.
Star has answered your uestion. However, I want to expand on what was said there. Too often, I see people confused by this messa...

environ 4 ans il y a | 0

Réponse apportée
Describe non-convex region with linear inequality constraints
Nothing stops you from dissecting a polygonal region into triangles, even if not convex. As Matt said, you CANNOT use a set of l...

environ 4 ans il y a | 1

Réponse apportée
How to find area of enclosed region (i.e., calculate Green's Theorem) in MATLAB?
You have a sequence of points in a loop. Create a potyshape from them, then compute the area. help polyshape methods polyshape...

environ 4 ans il y a | 0

Réponse apportée
How to find matrix S, given by this equation
There is no unique solution. Or, there may be no solution at all. This looks vaguely like an algebraic Riccati equation. Your p...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Random Numbers from Stationary Distribution
Simpler to accomplish than others have said. But first, do NOT define those probabilities as separate variables!!!!!!!!!!!!!!!!!...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Vpa conversion of whole file
I'm sorry. You cannot now convert those files automatically, to take lines like a = 5; And automatically have MATLAB see thos...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Fitting line to a curve
Easy. Use findpeaks, to locate the sequence of points that represent the successive maxima of the curve. Use an interpolatin...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Symbolic toolbox substitution causing large values
A REALLY bad idea is to name your variables things like var, as that is also the name of a terribly useful function. So your n...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How can a curved surface be generated with a thickness and density?
Sorry, but this is the kind of thing that is virtually impossible to do in any intelligent way. You are asking for some strange ...

environ 4 ans il y a | 0

Réponse apportée
dsolve isn't solving my symbolic ODE correctly
Look carefully at your solution, because you missed something. gamma_s_sol(t) = -7.7215e-11*exp(-8.6936*t)*(5.7469e+08*exp(8....

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How to fit a curve into contour plot?
Sometimes it is easier to just draw the curve yourself. I say this because the curve you drew might not have been the curve I wo...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
curve fitting tool custom equation
A general problem with the curve fitting toolbox is that it does not understand the mathematics of a model you pose to it. Not t...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
how to determine the arithematic operations in a code?
Sorry, but not easily. Flop counts were removed from MATLAB over 20 years ago. https://www.mathworks.com/matlabcentral/answers/...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
How do I I get the first 15 solution of the equation
First, make the problem simpler. You have TWO constants. Change the problem to have only one constant. That is, essentially tran...

environ 4 ans il y a | 0

Charger plus