تبلیغات
مهندسی مکانیک و هوافضا - ترسیم نمودار در متلب - 1
 
درباره وبلاگ


سایت تخصصی مهندسی مکانیک و هوافضا - جزوه - کتاب - مطالب آموزشی - نرم افزار - مقاله و ...

مدیر وبلاگ : حسین اتحادی
نویسندگان
صفحات جانبی
نظرسنجی
به وبلاگ ما چه امتیازی میدهید ؟







آمار وبلاگ
  • کل بازدید :
  • بازدید امروز :
  • بازدید دیروز :
  • بازدید این ماه :
  • بازدید ماه قبل :
  • تعداد نویسندگان :
  • تعداد کل پست ها :
  • آخرین بازدید :
  • آخرین بروز رسانی :
مهندسی مکانیک و هوافضا
هر آنچه که یک مهندس بخواهد اینجا هست!
صفحه نخست             تماس با مدیر           پست الکترونیک               RSS                  ATOM
سه شنبه 15 تیر 1395 :: نویسنده : حسین اتحادی

کدهای متلب :


clear all
close all
clc

x = [0 pi/4 3*pi/8 3*pi/4 pi]; y = sin(x);
xi = linspace(0,pi,40)';
yn = interp1(x,y,xi,'nearest');
yl = interp1(x,y,xi,'linear');
ys = interp1(x,y,xi,'spline');
yp = interp1(x,y,xi,'pchip');
xx = linspace(0,pi,50);
plot(xi,yn,'*', xi,yl,'+', xi,ys,'v', xi,yp,'o')
legend('nearest','linear','spline','pchip')
hold on
plot(xx,sin(xx),'-',x,y,'.k','MarkerSize',30)
set(gca,'XTick',x)set(gca,'XTickLabel','0|pi/4l3pi/8|3pi/4|pi')
set(gca,'XGrid','on')
axis([-0.25 3.5 -0.1 1.1])
hold off

نتیجه :

مثال شماره 17

منبع کدها :

کتاب MATLAB Guide - D.J. Higham - second edition - صفحه 163 از فایل pdf کتاب





نوع مطلب : متلب ( MATLAB )، 
برچسب ها : ترسیم نمودار در متلب، Plot matlab، plot متلب، ترسیم plot، ترسیم نمودار matlab،
لینک های مرتبط :


دوشنبه 16 مرداد 1396 05:47 ب.ظ
Hi there, You have done an excellent job. I'll definitely
digg it and personally recommend to my friends.
I'm confident they will be benefited from this web site.
دوشنبه 16 مرداد 1396 03:13 ق.ظ
I know this site presents quality based posts and other data, is there
any other web site which gives these kinds of information in quality?
شنبه 14 مرداد 1396 02:10 ب.ظ
That is really attention-grabbing, You're an excessively skilled blogger.

I've joined your feed and stay up for seeking more of your great post.
Also, I have shared your site in my social networks
جمعه 6 مرداد 1396 07:43 ب.ظ
I don't even know how I ended up here, but I thought this post was good.
I do not know who you are but certainly you are going
to a famous blogger if you aren't already ;) Cheers!
جمعه 6 مرداد 1396 06:51 ب.ظ
If you are going for finest contents like I do, simply pay a visit this site all the time because it gives feature contents, thanks
شنبه 24 تیر 1396 09:35 ق.ظ
I must thank you for the efforts you've put in penning this site.
I'm hoping to see the same high-grade blog posts by you in the future as
well. In truth, your creative writing abilities has motivated me to get my own, personal site now ;)
دوشنبه 12 تیر 1396 08:57 ق.ظ
First off I would like to say superb blog!
I had a quick question in which I'd like to ask if you don't mind.
I was curious to find out how you center yourself and clear your
mind prior to writing. I have had a difficult time clearing my mind in getting my ideas out
there. I truly do enjoy writing however it just seems like the first 10
to 15 minutes tend to be wasted simply just trying to
figure out how to begin. Any recommendations or tips? Many thanks!
شنبه 9 اردیبهشت 1396 08:52 ب.ظ
Hi there, simply turned into aware of your weblog thru Google,
and found that it's really informative. I'm gonna watch out for brussels.
I will be grateful should you continue this in future. Numerous
other people can be benefited out of your writing.
Cheers!
سه شنبه 5 اردیبهشت 1396 05:37 ب.ظ
Hi! I know this is kinda off topic nevertheless I'd figured
I'd ask. Would you be interested in trading links
or maybe guest authoring a blog post or vice-versa? My website discusses a lot of the same subjects as yours and I believe we
could greatly benefit from each other. If you happen to be interested feel free to
send me an e-mail. I look forward to hearing from you!
Great blog by the way!
شنبه 2 اردیبهشت 1396 11:58 ب.ظ
Whats up this is somewhat of off topic but I was wondering if blogs use WYSIWYG editors or if you have to manually code with HTML.

I'm starting a blog soon but have no coding experience so I wanted to get
advice from someone with experience. Any help would be enormously
appreciated!
شنبه 2 اردیبهشت 1396 04:59 ب.ظ
Hi, its good post on the topic of media print, we all
be familiar with media is a great source of information.
شنبه 26 فروردین 1396 09:56 ق.ظ
I am curious to find out what blog platform you are using?

I'm having some minor security problems with my latest website
and I would like to find something more safeguarded. Do you have any suggestions?
چهارشنبه 23 فروردین 1396 10:03 ب.ظ
I'm not sure exactly why but this site is loading very slow for me.

Is anyone else having this problem or is it a problem
on my end? I'll check back later and see if the problem still exists.
 
لبخندناراحتچشمک
نیشخندبغلسوال
قلبخجالتزبان
ماچتعجبعصبانی
عینکشیطانگریه
خندهقهقههخداحافظ
سبزقهرهورا
دستگلتفکر


 
 
برچسب ها
پیوندها
آخرین مطالب