ولی من مطمئنم همه ی ریشه های این معادله حقیقی هستند.
من فکر میکنم به دلیل نزدیک بودن بعضی از ضرایب معادله به صفر مطلب اونارو صفر فرض میکنه.
کس راه حلی نداره؟
ولی من مطمئنم همه ی ریشه های این معادله حقیقی هستند.
من فکر میکنم به دلیل نزدیک بودن بعضی از ضرایب معادله به صفر مطلب اونارو صفر فرض میکنه.
کس راه حلی نداره؟
این جوابها رو maple می دهد
0.005395673636i + 0.0002212701970
-0.06589738447
0.0002212701970 - 0.005395673636i
دو جواب اول و آخر با B متفاوت اند (مانند جواب شما)
با سلام
دوستان من قصد دارم دو تابع مختلف رو تو مطلب به صورت همزمان رسم کنم.
به گونه ای که مثلاً از x=0 تا x=25 مقادیر تابع اول و از x=25 تا x=50 مقادیر تابع دوم چاپ بشه. (y بر حسب x)
خواهشاً اگه کمکی از دستتون بر میاد دریغ نکنید.
Last edited by emgjey; 13-05-2009 at 19:23.
شما میتونید برای دامنه دو متغیر x1 و x2 رو با دو بازه جداگانه در نظر بگیرید و بعد دستور plot اجرا شود . این دستورات را تایپ کنید :
; x1=0:0.001:25
; x2=25:0.001:50
; (1 y1=f( x
; (2 y2=f( x
البته از خط بالا منظور نوشتن تابع y بر حسب x هست
(plot(x1,y1,x2,y2بهترین خودآموز نرم افزار همون help اونه . مثلا برای دستور plot ، در خط فرمان متلب تایپ کنید : help plot
و نتیجه را ببینید !!!:help plot
PLOT Linear plot.
PLOT(X,Y) plots vector Y versus vector X. If X or Y is a matrix,
then the vector is plotted versus the rows or columns of the matrix,
whichever line up. If X is a scalar and Y is a vector, length(Y)
disconnected points are plotted.
PLOT(Y) plots the columns of Y versus their index.
If Y is complex, PLOT(Y) is equivalent to PLOT(real(Y),imag(Y)).
In all other uses of PLOT, the imaginary part is ignored.
Various line types, plot symbols and colors may be obtained with
PLOT(X,Y,S) where S is a character string made from one element
from any or all the following 3 columns:
b blue . point - solid
g green o circle : dotted
r red x x-mark -. dashdot
c cyan + plus -- dashed
m magenta * star (none) no line
y yellow s square
k black d diamond
v triangle (down)
^ triangle (up)
< triangle (left)
> triangle (right)
p pentagram
h hexagram
For example, PLOT(X,Y,'c+:') plots a cyan dotted line with a plus
at each data point; PLOT(X,Y,'bd') plots blue diamond at each data
point but does not draw any line.
PLOT(X1,Y1,S1,X2,Y2,S2,X3,Y3,S3,...) combines the plots defined by
the (X,Y,S) triples, where the X's and Y's are vectors or matrices
and the S's are strings.
For example, PLOT(X,Y,'y-',X,Y,'go') plots the data twice, with a
solid yellow line interpolating green circles at the data points.
The PLOT command, if no color is specified, makes automatic use of
the colors specified by the axes ColorOrder property. The default
ColorOrder is listed in the table above for color systems where the
default is blue for one line, and for multiple lines, to cycle
through the first six colors in the table. For monochrome systems,
PLOT cycles over the axes LineStyleOrder property.
If you do not specify a marker type, PLOT uses no marker.
If you do not specify a line style, PLOT uses a solid line.
PLOT(AX,...) plots into the axes with handle AX.
PLOT returns a column vector of handles to lineseries objects, one
handle per plotted line.
The X,Y pairs, or X,Y,S triples, can be followed by
parameter/value pairs to specify additional properties
of the lines. For example, PLOT(X,Y,'LineWidth',2,'Color',[.6 0 0])
will create a plot with a dark red line width of 2 points.
Backwards compatibility
PLOT('v6',...) creates line objects instead of lineseries
objects for compatibility with MATLAB 6.5 and earlier.
See also plottools, semilogx, semilogy, loglog, plotyy, plot3, grid,
title, xlabel, ylabel, axis, axes, hold, legend, subplot, scatter.
Overloaded functions or methods (ones with the same name in other directories)
help timeseries/plot.m
help phytree/plot.m
help channel/plot.m
help cfit/plot.m
help fints/plot.m
help idmodel/plot.m
help idfrd/plot.m
help iddata/plot.m
help mpc/plot.m
help rfckt/plot.m
help frd/plot.m
help dspdata/plot.m
help wdectree/plot.m
help ntree/plot.m
help dtree/plot.m
help wvtree/plot.m
help rwvtree/plot.m
help edwttree/plot.m
Reference page in Help browser
doc plot
Last edited by saber57; 14-05-2009 at 12:31.
ضمن تشکر از شما دوست گرامی
البته من با دو دستور for هم تونستم این کارو بکتم
یه سوال داشتم
در چه مواقعی ما باید از دستور for استفاده کنیم؟
for یک دستور کلی هست که در چند زبان برنامه نویسی(مثل c ,basic , .....) برای تکرار استفاده میشوند . توابعی مثل for توابع حلقوی به حساب می آیند . این دستور شامل سه قسمت زیر است :
for i =a:b:c
در دستور فوق :
i : متغیری است که آنرا میشماریم
a : شروع یا اولین مقدار متغیر
b : گام شمارش یعنی متغیر بعدی با قبلی چقدر اختلاف دارند
c : مقدار نهایی متغیر
دستورهای حلقوی مانند for ، شرطی مانند if ، شرطی حلقوی مانند while همگی با دستور end خاتمه میپذیرند .
مثال : در خط فرمان متلب این دستورات را تایپ کنید :; syms x <<
for i=15 <<
; x( i )= i <<
end <<در هر بار شمارش (حلقه تکرار) مقدار متغیر i در x ذخیره میشود که در واقع یک آرایه از x به تعدا عناصر 5 تشکیل میشود . حالا برای دیدن آرایه کافیست در خط فرمان متلب تایپ کنیم : x
نتیجه :5 4 3 2 1
بهترین کمک برای یادگیری همان help نرم افزار هست که از هر کتابی بهتر است .
با سلام
لينك دانلود اولين جلسهي دورهي آموزشي مقدماتي MATLAB در دانشكدهي رياضي دانشگاه فردوسي مشهد:
از اينجا
يا اينجاکد:برای مشاهده محتوا ، لطفا وارد شوید یا ثبت نام کنید
کد:برای مشاهده محتوا ، لطفا وارد شوید یا ثبت نام کنید
Last edited by eh_mn; 03-12-2009 at 21:00.
اگه می شه توی یه سایت دیگه آپلودش کنید![]()
ويرايش شد!
سلام مرسی
جلسه های بعدیشم می شه بزارید؟؟ بازم تشکر
هم اکنون 1 کاربر در حال مشاهده این تاپیک میباشد. (0 کاربر عضو شده و 1 مهمان)