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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 1

| akzeptiert

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

mehr als 4 Jahre vor | 1

| akzeptiert

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 1

| akzeptiert

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 1

| akzeptiert

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

mehr als 4 Jahre vor | 2

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

mehr als 4 Jahre vor | 1

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

mehr als 4 Jahre vor | 3

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 1

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

mehr als 4 Jahre vor | 1

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

mehr als 4 Jahre vor | 1

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 1

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 1

| akzeptiert

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

mehr als 4 Jahre vor | 2

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

mehr als 4 Jahre vor | 0

Mehr laden