syms in MATLAB 2014a

1 visualización (últimos 30 días)
Matilde Sort
Matilde Sort el 24 de Oct. de 2015
Editada: Walter Roberson el 24 de Oct. de 2015
Hello, I am new to matlab, and have downloaded the 2014a-version. When i try to use the syms command I get a
Warning: Explicit solution could not be found.
> In solve at 179
My code looks like this (it should be right, it works for the entire rest of my modelling class..)
clc
clear all
close all
syms R C P r K bc eps dc bp dp
sol1 = solve([r*(1-R/K)*R-bc*C*R==0, ...
eps*bc*R*C - dc*C==0], [R C])
sol2=solve([r*(1-R/K)*R-bc*C*R==0, ...
eps*bc*R*C - bp*P*C==0, ...
eps*bp*C*P - dp*P==0],[R C P])
and I get
sol1 =
[ empty sym ]
Warning: Explicit solution could not be found.
> In solve at 179
sol2 =
[ empty sym ]
Can anyone see what mistake I have done, or guide me to wether I should just get the 2015 version instead?
Thank you very much in advance.
Matilde
  1 comentario
Star Strider
Star Strider el 24 de Oct. de 2015
You only included part of your code. You’re solving for three (of 10) variables, but how many equations do you have? If all your equations are linear, are they linearly independent?

Iniciar sesión para comentar.

Respuestas (0)

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by