For Programmers: Free Programming Magazines  


Home > Archive > Matlab > December 2005 > why syms formula can not pass?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author why syms formula can not pass?
Samuel Mo

2005-12-18, 7:06 pm

I use syms to input some formula in the codes below, but it can not
work only with a response "Missing operator, comma, or semicolon." I
check it several times and can not find any problem, can somebody
help me please, thanks very much in advance!!!!

My code:

clear
clc

syms a b K P1 N rr;
temp2=-4*b^4*rr *N^2*K+4*a^2*b^4*rr^2*N^2*K;
Sergey Litvinov

2005-12-18, 7:06 pm

Samuel Mo wrote:
> I use syms to input some formula in the codes below, but it can not
> work only with a response "Missing operator, comma, or semicolon." I
> check it several times and can not find any problem, can somebody
> help me please, thanks very much in advance!!!!
>
> My code:
>
> clear
> clc
>
> syms a b K P1 N rr;
> temp2=-4*b^4*rr *N^2*K+4*a^2*b^4*rr^2*N^2*K;


Works for me (MATLAB Version 7.0).
Strange...please check do you have Symbolic Math Toolbox.

help ver

Nasser Abbasi

2005-12-18, 7:06 pm



"Samuel Mo" <hmo2@uiuc.edu> wrote in message
news:ef201da.-1@webx.raydaftYaTP...
>I use syms to input some formula in the codes below, but it can not
> work only with a response "Missing operator, comma, or semicolon." I
> check it several times and can not find any problem, can somebody
> help me please, thanks very much in advance!!!!
>
> My code:
>
> clear
> clc
>
> syms a b K P1 N rr;
> temp2=-4*b^4*rr *N^2*K+4*a^2*b^4*rr^2*N^2*K;
>


do you have the symbolic toolbox installed?

type 'ver' and check.

Nasser



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com