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?
syms in MATLAB 2014a
1 次查看(过去 30 天)
显示 更早的评论
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
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!