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

Réponse apportée
Converting Matrix of binary in to decimal
What does this do? mat*2.^(4:-1:0)'

environ 4 ans il y a | 0

Réponse apportée
How to solve the following homogenous equation?
A =1.0e+08 *[ -3.1265 -1.0000 0 -1.0000 -4.5841 -1.0000 0 -1.0000 -0.2345]; First, let me verify ...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
Replace values with zero and zero with values in matrix simultaneously
Easy. SwRailNodeDemand = [1 0 4 -5 0 6 8 -11 7 9 10 0; 2 1 0 0 0 0 0 0 0 2 0 -3; 3 3 4 1 1 0 0 0 0 0 0 -1; ...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How can I determine the value experimental data settled on?
I don't see the problem. Throw away most of your data. (At least to determine the long term behavior.) Then compute the mean. O...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
fsolve completed because the vector of function values is near zero as measured by the value of the function tolerance,
I think you do not understand these things: A system of NONLINEAR equations can have multiple solutions. That a numerical solv...

environ 4 ans il y a | 2

Réponse apportée
Changing numerical precision for math operations
You have TWO choices for floating point precision, double or single. A = double(1); B = single(2); C = A + B class(C) Arith...

environ 4 ans il y a | 1

Réponse apportée
Random triplets not asymmetrically distributed
If you wish to sample from the set of triplets that sum to exactly 1, where each elemnt is discrete, then you do NOT want to use...

environ 4 ans il y a | 3

Réponse apportée
Find minimum enclosing circle
So let me use my own code to solve your problem. im = imread('IMG_3108.jpg'); [redpixr,redpixc] = find((im(:,:,1) > 140) & (...

environ 4 ans il y a | 0

Réponse apportée
Smoothing just part of the data
Um, No. Why should there be? In fact, extracting the part you want to smooth, and then overwriting that smoothed fragment back ...

environ 4 ans il y a | 0

Réponse apportée
Matrix dimensions must agree when doing an elementwise operation
How many elements are there in the vector a? (101) How many elements are there in the vector b? (101) How many elements are th...

environ 4 ans il y a | 1

Réponse apportée
what is the time complexity of function 'reshape'
Essentially, almost zero time (a small constant amount that is almost negligable.) All reshape itself does is modify a flag atta...

environ 4 ans il y a | 1

Réponse apportée
Error in solving using Ode45 initial condition are y(1) = 0, y(2) =0 and y(3) =0.
Sorry, but not easily. ODE45 is an INITIAL value solver. This is a variation of boundary value problem, where you have values at...

environ 4 ans il y a | 1

Réponse apportée
Linear constraints not satisfied during optimization using fmincon
First, learn to use function handles. myfun = @(x) (0.0114*x(1)+0.01032*x(2)+0.0228*x(3)+0.0081*x(4))+15*((log(0.0114*x(1)))+(l...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Getting odd output, want to understand the meaning of it
syms Ed m V L En Eqn = (Ed-m-(1/2)*(V))*(2/L)^(2/(0.1+2))*(m+Ed)^(0.1/(0.1+2)) - m*En*(m*L)^(-2/(0.1+2)) == 0 S = simplify(so...

environ 4 ans il y a | 1

Réponse apportée
I am trying to create this matrix ; How can i do this using for loops or without loops?
Without loops? Trivial. A=[0 0 0 0 0 0 0 0 0 ; 1 1 1 0 0 0 0 0 0 ; 1 1 1 1 1 1 0 0 0 ]; A As you can see, that works nicely. ...

environ 4 ans il y a | 0

Réponse apportée
logarithmic binning data in matlab
It is not clear what you mean by logarithmic binning. Looking at your data however, tells me that you were told to do something...

environ 4 ans il y a | 0

Réponse apportée
MATLAB license renewal Master License 3XXXXXXXXXX
It was renewed. You don't need to download anything at this point. You can just keep on using MATLAB.

environ 4 ans il y a | 1

| A accepté

Réponse apportée
How can i save the values i get in a for loop in a matrix?
Pretty basic, really. You probably need to spend some time with the MATAB Onramp tutorial. N = 100; SavedData = NaN(1,N); % Pr...

environ 4 ans il y a | 2

Réponse apportée
i am getting this error "Brace indexing is not supported for variables of this type" at line which contains (S_bar{i}=R{i}*T_1{i}*R_1{i}*S{i}*T{i});.
Is S a regular matrix? S=[1/E1 -mu_12/E1 0;-mu_12/E1 1/E2 0;0 0 1/G12]; Yes. You then you assume it is a cell array for some r...

environ 4 ans il y a | 0

Réponse apportée
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...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
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,...

plus de 4 ans il y a | 1

Réponse apportée
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...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
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,...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 4 ans il y a | 0

Réponse apportée
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 ...

plus de 4 ans il y a | 0

Charger plus