سه شنبه 15 تیر 1395 02:58 ق.ظ
نظرات ()
کدهای متلب :
clear all
close all
clc
x = linspace(-2,2,20);
y = 1./(x+(1-x).^2);
p = polyfit(x,y,3);
xx = linspace(-2,2,100);
plot(x,y,'.',xx,polyval(p,xx),'-','MarkerSize',30,'LineWidth',2)
close all
clc
x = linspace(-2,2,20);
y = 1./(x+(1-x).^2);
p = polyfit(x,y,3);
xx = linspace(-2,2,100);
plot(x,y,'.',xx,polyval(p,xx),'-','MarkerSize',30,'LineWidth',2)
نتیجه :

منبع کدها :
کتاب MATLAB Guide - D.J. Higham - second edition - صفحه 161 از فایل pdf کتاب
found this post at this web site.
blog, and I used to pay a visit this weblog all the time.
layout on your blog. Is this a paid theme or did you modify it yourself?
Anyway keep up the nice quality writing, it
is rare to see a great blog like this one nowadays.
like to say that this write-up very pressured me to check out and do so!
Your writing taste has been amazed me. Thank
you, very nice post.
start to end.
.. I will bookmark your site and take the feeds also? I'm glad
to search out numerous helpful info here within the publish, we
need work out more techniques in this regard, thanks for sharing.
. . . . .
Your website offered us with valuable info to work on. You've done a formidable
job and our entire community will be grateful to you.
because if like to read it after that my friends will too.