Answered
How can I change the last marker of a line to a different style?
x = [0 7500 15000 22500 30000 36215 42433]; y = [114.8 112.4 105.5 103.4 103.6 101.9 91.8]; plot(x(1:end-1),y(1:end-1),'-b*',x...

4 years ago | 1

Answered
Loop to distribute the K in Two Variables
I am slightly confused about a couple of aspects, but something like this should work clear,clc K = 1:10; k0 = zeros(2,leng...

4 years ago | 0

Solved


Matrix Manipulation
Given an m*n matrix, see if a matrix contains any 0s in any row. if it contains 0 anywhere in any particular row, delete that ro...

4 years ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

4 years ago

Answered
Stop ode solver when a variable reach some value?
You can use the MatLab ODE event location. https://it.mathworks.com/help/matlab/math/ode-event-location.html I will give an ex...

4 years ago | 0

Answered
How to use two different equations depending on the value
In order to have the value of h displayed in the command window, remove the semicolon after the equations computing it. prompt ...

4 years ago | 1

| accepted

Answered
I am trying to create a function that checks whether an element is a matrix or a vector.
Try with this: function checkSize(A) [m,n] = size(A); if m == 1 || n == 1 error('Input is a vector') else if m >...

4 years ago | 0

| accepted

Question


Convolution integral equation ode15s
I am solving a DAE system in Matlab using the ode15s suite. I'd like to add a further equation that I found in literature which ...

7 years ago | 0 answers | 0

0

answers

Question


DAE in ode15s: Unable to meet integration tolerances without reducing step size
I am solving a DAE system with ode15s and sometimes I get the following warning: Warning: Failure at t=2.567473e-05. Unable to...

7 years ago | 0 answers | 0

0

answers

Question


Calculate the integral in time of a variable that's being integrated with ODE15s
I'm solving a DAEs system using ODE15s with a singular mass matrix. The variable R(t) is one of the outputs. I'd like to impleme...

7 years ago | 1 answer | 0

1

answer

Question


Implicit formulation of finite difference with ode15s
I'm solving a set of 3 PDEs, 4 ODEs, and 1 AE in MatLab. The model describes the dynamic behavior of an argon/water vapor spheri...

8 years ago | 1 answer | 0

1

answer

Question


Approximate derivative within ODE function.
Hi, I am solving a pretty big system of differential equations using 'ode15s'. Within the ODE function, I would like to calcu...

8 years ago | 1 answer | 0

1

answer