Why I am I getting a row
How should I fix it so that x1 can be a column
r = 1;
K = 2;
tspan = [0 10];
x0 = 0.5;
[t,x] = ode45(@(t,x) x*(1- x/K), tspan, y0);
f = @(t) K / (1 + (K / x0 – 1) * exp(-1*r*t));
x1 = f(t);How should I fix it so that x1 can be a column
r = 1;
K = 2;
tspan = [0 10];
x0 = 0.5;
[t,x] = ode45(@(t,x) x*(1- x/K), tspan, y0);
f = @(t) K / (1 + (K / x0 – 1) * exp(-1*r*t));
x1 = f(t); How should I fix it so that x1 can be a column
r = 1;
K = 2;
tspan = [0 10];
x0 = 0.5;
[t,x] = ode45(@(t,x) x*(1- x/K), tspan, y0);
f = @(t) K / (1 + (K / x0 – 1) * exp(-1*r*t));
x1 = f(t); ode45, array MATLAB Answers — New Questions