
Torsten
Statistics
0 Questions
5,856 Answers
RANK
16
of 284,710
REPUTATION
14,338
CONTRIBUTIONS
0 Questions
5,856 Answers
ANSWER ACCEPTANCE
0.00%
VOTES RECEIVED
1,639
RANK
of 19,223
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 137,497
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Content Feed
There is an error when i run my 'subplot' command in MATLAB
Rename your script file "subplot.m" to something else. "subplot" is a reserved name in MATLAB.
8 hours ago | 1
Please help for objectiveFunction command.
You don't supply k1, k2, c1 and c2 to the objective function. If these are the parameters to be optimized, you don't need to pa...
9 hours ago | 1
1D HEAT CONDUCTION
In each time step, you have to solve the linear system of equations T(1,k+1) = Tleft T(i, k+1) - deltat/deltax^2*alpha* (T(i-...
14 hours ago | 1
Finding a definite integral
x = linspace(0,1,101); u = [0.1600 0.1600 0.1599 0.1599 0.1597 0.1596 0.1594 0.1592 ... 0.1590 0.1...
15 hours ago | 0
Compute a function that has Double summation
All the series involved are geometric series for which the finite and infinite sums are known: sum_{i=1}^{i=n} q^i = q * (1-q^n...
1 day ago | 0
What does this mean: K12_global(1:3:6,1:3:6)?
Do you see what happens ? The new matrix K12 is formed of the elements (1,1),(1+3,1),(1,1+3) and (1+3,1+3) of the original mat...
1 day ago | 0
Unable to meet integration tolerances without reducing the step size below the smallest value allowed (1.136868e-13) at time t.
I had to add the line global alpha pD K g_T IFN at the beginning of your program to make the code work because the above globa...
1 day ago | 0
Numerical Differentiation using Finite Differences
h = 0.01; x = 0:h:2*pi; fx = sin(x); %df1 = (sin(x+h) - sin(h))/h; df1 = (sin(x+h) - sin(x))/h; df2 = (sin(x) - sin(x-h...
1 day ago | 0
| accepted
Efficiently evaluating ODE event that depends on only some variables
Use OutputFcn to check your condition after each successful time step. But I think it will be difficult to check for complanari...
1 day ago | 0
Finding real and imaginary part of an equation
U = 0:0.1:10; P = sqrt((((20*U.^2)-15) + sqrt((400*U.^4)+ (1080*U.^2) + 25 -600 - 450 - (1125./U.^2)))./((36*U.^2) + 30)); Pim...
2 days ago | 0
I have a code related to thermodynamic subject, i don't know how to run it in order to get the different plot out of it. for example plot (p,rho). plot of pressure vs density.
I think there is something wrong in the calculation of the compressibility factor. p = EOS(2.0,150) function p=EOS(rho,temp)...
2 days ago | 0
| accepted
compute sums by accumulating in a for-loop
sum(xprime(1:100-l)) This is a scalar. sum(xprime(1:100-l)).*xprime(1+l:100) This is a vector of length 100-(1+l)+1. (sum(xp...
2 days ago | 0
Financial optimization of heston
Assuming that Price_SV returns a vector of the same size as P_data, your call would look somehow like fun =@(p)Price_SV(p(1), p...
3 days ago | 0
| accepted
I don't know why this code is saying, "Arrays have incompatible sizes for this operation."
Your vector of initial conditions is 6x1 y0 = [Pi; Si; Li; Ii; Ri; Bi]; but you only return a 5x1 vector in PSLIR dydt = [dPd...
4 days ago | 0
| accepted
Matlab grader discretization help
Use off_diagonal = coefficient * ones(N-1, 1); instead of off_diagonal = coefficient * ones(N-2, 1); See the example "Create...
4 days ago | 0
Apply fmincon nonlinear parameter inequality constraints into SimBiology for parameterization
function [c,ceq] = nonlincon(params) %Nonlinear inequality constraints c(1) = params(1)*params(2) - params(5)*params(7); % For...
4 days ago | 0
Trouble with For Loop
for i = 1:35 dataN_(i) = ecg_data (:,i); mean_HR_subject(i) = ... ... end
4 days ago | 0
| accepted
Solving first order ODE with initial conditions and symbolic function
You solved it in your code. The second solution out of the three MATLAB returned is the "correct" one giving real-valued tempera...
4 days ago | 0
| accepted
It takes too long to run the program and in the end I get an error, could you tell me what the error is?
You can't change the input for x in function "campo_pendulo". So you can delete this part of your code because it doesn't influ...
5 days ago | 0
Can someone help me check if I did this correctly?
Replace syms r a0 by syms r a0 positive to get the limits resolved.
5 days ago | 0
| accepted
Fixed Bed Adsorption Column Using Dimensionless Equations
The usual procedure is to define a grid 0 = X(1) < X(2) < ... < X(n) = 1 approximate the spatial derivative dA/dX in grid poin...
5 days ago | 1
| accepted
Index exceeds the number of array elements. Index must not exceed 4.
Maybe you mean for i = 1:nt1 G1 = [(1-(1/2-beta)*w2.*t1(i).^2)/(1+(beta*w2.*t1(i).^2)),t1(i)/(1+(beta*w2.*t1(i).^2)); ...
5 days ago | 1
| accepted
Empty plot is showing because of my er
What x-y data are given to build the Lagrange Polynomial and in which x-data do you want to interpolate ? I assume that x-y are ...
5 days ago | 0
Any availiable function to find the Taylor series of multi variables function in Matlab?
https://uk.mathworks.com/matlabcentral/answers/92764-how-do-i-generate-the-taylor-series-as-a-function-of-several-variables-in-m...
6 days ago | 0
| accepted
I need help displaying the eigenvalue after each iteration
A = rand(10); ATA = A'*A; x0 = rand(10,1); for iter = 1:10 y = ATA*x0; x = y/norm(y); x0 = x; y end lar...
6 days ago | 0
Solving 4 nonlinear equation for 4 unknowns numerical - doesn't find an answer [0×1 sym]
Try S = vpasolve(E,[x1,x2,y1,y2],[0.086 -0.176 1.0125 1.0099]) But the solution is complex-valued since your function h is com...
6 days ago | 0
symbolic solving system of non-linear equations
A system of 12 equations in 6 unknowns usually has no solution since it is overdetermined. Or can you extract 6 of the 12 equati...
7 days ago | 1
how to code a sum of function in matlab
Generate the elements that you want to sum in a matrix M of size (N,nt) where N is the index up to which you want to sum and nt ...
7 days ago | 1
| accepted
square matrix containing Chebyshev polynomials becomes singular when its size becomes greater than a certain value
t0 = 0; tf = 4; N = 75; syms x h = chebyshevT(0:N, x); A = zeros(N+1,N+1); d = zeros(N+1,1); for c=1:N+1 d(c,1) = ...
8 days ago | 1
| accepted
I was calculated using the Simpson 1/3 rule numerical method, why my running results doesn't appear in the command window?
Use ai=((b-a)/6)*(xa+4*(xb)+xc) %main equation instead of ai=((b-a)/6)*(xa+4*(xc)+xb) %main equation clear all; clc; %in...
8 days ago | 0