The difference between using and not using '' in the solve() function
Show older comments
what is The difference between using and not using '' in the solve() function?
and should we use '' ?
codes are as this
clc;
clear all;
close all;
syms x;
syms a b c;
solution1=solve(a*x^2+b*x+c==0,x)
solution2=solve(a*x^2+b*x+c==0,'x')
solution3=solve('a*x^2+b*x+c==0','x')
equation=a*x^2+b*x+c==0;
solution4=solve(equation,'x')
solution5=solve(equation,x)
solution6=solve('equation',x)
Accepted Answer
More Answers (0)
Categories
Find more on Common Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!