Re: solving an equation
- From: farshad <farshad.kooshesh@xxxxxxxxx>
- Date: Sat, 31 Mar 2007 03:17:38 -0500
Nasser Abbasi wrote:
My problem in renaming my mfile solved but I still cant solve my
"farshad" <farshad.kooshesh@xxxxxxxxx> wrote in message
news:ef52ef1.-1@xxxxxxxxxxxxxxxxxxxxxxxxxx
HI
Please help,what is my mistake in this code:
(I want to solve an equation like below)
clear all
syms x
ga=input ('ga')
gb=input ('gb')
f=(ga*gb*(pi/x)^2-36)/(6*(ga+gb))-(pi/x)/tan(pi/x)
solve(f,'x')
Matlab gives me this error
??? Attempt to execute SCRIPT solve as a function.
Error in ==> D:\MATLAB6p5\toolbox\symbolic\@sym\solve.m
On line 49 ==> [varargout{1:max(1,nargout)}] = solve(S{:});
Error in ==> d:\MATLAB6p5\work\solve.m
On line 6 ==> solve(f,'x')
Thank you
try to rename your file in work\solve.m to something like
work\mysolve.m
and see if that helps.
Nasser
Thank you for your help
equation.
my equation is:
(a*b*(pi/x)^2-36)/(6*(a+b))-(pi/x)/tan(pi/x)=0
where a,b are reading from input
a=input ('a')
b=input ('b')
and 0<x<inf
please help me how I can find x.
thank you.
.
- References:
- solving an equation
- From: farshad
- Re: solving an equation
- From: Nasser Abbasi
- solving an equation
- Prev by Date: Re: C#? and Matlab? which one has future?
- Next by Date: Re: How do I mirror a image vertically?
- Previous by thread: Re: solving an equation
- Next by thread: simulink with fft
- Index(es):
Relevant Pages
|