Beantwortet
Nonorthogonal eigenvectors for general eigenvalue problem with eig() and eigs()
From the documentation: [V,D] = eig(A,B) returns diagonal matrix D of generalized eigenvalues and full matrix V whose columns a...

mehr als 2 Jahre vor | 0

Beantwortet
Finding the minimum distance between two matrices
https://uk.mathworks.com/matlabcentral/fileexchange/34869-distance2curve Use one matrix to generate the curve and the other dat...

mehr als 2 Jahre vor | 0

Beantwortet
How to solve a fourth order differential equation (boundary value problem) with constraint?
And as far as I see, a necessary and sufficient condition that w'''' is bounded on [0 l] is w(0) = 0, and that's what you alread...

mehr als 2 Jahre vor | 0

Beantwortet
How to delete variables in a table within a cell array
for i=1:10 c{i}(:,1:2) = []; end

mehr als 2 Jahre vor | 0

Beantwortet
Index in position 1 exceeds array bounds. Index must not exceed 1.
A is a single value, namely A = b*h + z*h^2; % Cross-sectional area (m^2) But in your double loop, you treat A as if it we...

mehr als 2 Jahre vor | 0

Beantwortet
Why are these interations not working?
x1 = 16/2; y1 = 25/5; fyx = -1/2; fxy = 1/5; x2 = fyx*y1 y2 = fxy*x1; x3 = fyx*y2 y3 = fxy*x2; x4 = fyx*y3 y4 = fxy...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Crank-Nicholson method
I suggest the following code: xstart = 0; xend = 1; tstart = 0; tend = 1; nx = 10; nt = 100; x = linspace(xstart,xend,nx)...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Calculate total heat loss by conduction given temperature and depth profile vectors
Here is another way to determine the temporal change of heat content in the substratum. rho*cp*dT/dt = d/dx (k*dT/dx) Integrat...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Calculate total heat loss by conduction given temperature and depth profile vectors
How can I estimate the total heat loss (w/m2) at each time interval (i.e., the heat loss for every profile)? Total heat flow in...

mehr als 2 Jahre vor | 0

Beantwortet
data not generating and error in plotting
And what is the "correct" result ? According to your mathematical description, I get this: % Define initial parameters lambda...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Problem with the fitting
% Define the data dr_data = [2.5453, 0.042123; 5.0907, 0.075326; 7.636, 0.059506; 10.1813, 0.071553; 12.7267, 0.071365; 15.272,...

mehr als 2 Jahre vor | 0

Beantwortet
Second order coupled differential equation
X0 = [0; 0; 0]; % initial conditions r = linspace(1, 50, 100); % resistance range tspan = linspace(0,100, 100); freq_vector...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Use of Fmincon for stress relax data
I suggest you read the examples for the different suitable solvers. They will show you exactly how to proceed for your case. Ma...

mehr als 2 Jahre vor | 0

Beantwortet
use of pdepe for a space-dependent diffusivity
First: Don't name the vector "diff" since "diff" is an internal MATLAB function. Name it D, e.g. Second: To get the correct val...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
If I have an array and I need to find an element in the array how do I go about it?
Compute 100*states(:,1)+10*states(:,2)+states(:,3) and use "find" to compare with C.

mehr als 2 Jahre vor | 1

Beantwortet
Solve a differential equation and determine when it gets close to steady state
You can use an event function for the ODE integrator and stop integration when abs(dy/dt) (in your case abs(0.1 * (c-20) * (23-c...

mehr als 2 Jahre vor | 0

Beantwortet
the degradation of ozone in aqueous solutions (water). When I plot the all three components, the plot stays at the 0 value for all components.
There seems to be a singularity in the solution at t approximately 320. ProjectOzone() function ProjectOzone clc ki = 7e-3;...

mehr als 2 Jahre vor | 0

Beantwortet
The code below runs nonstop, and the results are not shown. why is that?
The code below runs nonstop, and the results are not shown. why is that? "solve" won't succeed for your system of equations bec...

mehr als 2 Jahre vor | 0

Beantwortet
Create number of for loops depending on size of N
The N columns of the resulting C-matrix contain i_first, i_second,... imax = 8; N = 4; i_average = (sum(0:N-1)/N+sum(imax:-1:...

mehr als 2 Jahre vor | 0

Beantwortet
How to make Matlab recognize that an expression rewritten by using subexpr() is equal to the original expression?
You have to resubstitute sigma by (a+b+c+d+e)^(1/2) in x_2 to compare with x: syms a b c d e f x x = a + (a+b+c+d+e)^(1/2) + c...

mehr als 2 Jahre vor | 0

Beantwortet
plot the output c(t) using mathlab and show setting time on you graphf
Use "fplot" as done in your code above.

mehr als 2 Jahre vor | 0

Beantwortet
Describe the solution trajectory of differential systems with mixed time-varying delay
To write your equations as a system of delay differential equations that can be handled by a MATLAB solver, set x3 = integral_{...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
Plot between Nu vs Ra
Replace Ra_values = 10:100:100000; by Ra_values = (10:100:100000).';

mehr als 2 Jahre vor | 0

Beantwortet
Resetting only a section of my state during event driven ode45 simulation
After the event has been triggered, control is returned to the calling program. If you want to continue integration with the e...

mehr als 2 Jahre vor | 1

Beantwortet
Index exceeds the number of array elements. Index must not exceed 1.
path_length_BS_IRS_reflect_UE(i) does not exist for i > 1 because path_length_BS_IRS_reflect_UE is a scalar value, namely 223.60...

mehr als 2 Jahre vor | 0

Beantwortet
Dot indexing is not supported for variables of this type.
Test before your loop % Loop through each entry in the list and extract data for i = 1:numEntries dt(i) = dateti...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How do I know what method Matlab is using when plotting ltiview?
I don't know Itiview nor risetime, but isn't there a literature link in the documentation for the function you are using ? If ...

mehr als 2 Jahre vor | 0

Beantwortet
How to solve algebraic equations for different values of variables ?
% Solve the equation eqn = Ac.*I.*eta-m.*c.*(Te-Ti)==0 for i=1:numel(eqn) s = solve(eqn(i),Te); S(i) = vpa(s(s>=0)); en...

mehr als 2 Jahre vor | 0

Beantwortet
function file used with 2 Matrices as input
You are not allowed to use the same name for the function and an output array. Thus rename one of them. And ln_AOU as output pa...

mehr als 2 Jahre vor | 0

| akzeptiert

Mehr laden