تبلیغات
مهندسی مکانیک و هوافضا - دستور randperm در متلب
 
آخرین مطالب
 
پیوندهای روزانه
دستور randperm در متلب

این دستور تو خط اول یه سری عدد تصادفی تولید میکنه که تعدادش ۵*۱ یعنی ۱ سطر و ۵ ستون

حالا دستور بعدی یه ماتریسی تولید میکنه که عددای توی اون ماتریس (مثلا تو اینجا ۵) از ۱ تا ۵ به صورت تصادفی چیده میشه حالا دستور بعدی که خیلی مهمه کارش اینه که عددای توی ماتریس اولیو به ترتیبی که توی ماتریس randperm اومده بچینه یعنی مثلا عدد دوم  از ماتریس A باید بیاد تو ستون اول بشینه و عدد سوم از ماتریس A باید بیاد تو ستون دوم بشینه و ....

 


>> A=rand(1,5)

A =

    0.9161    0.4809    0.8015    0.6016    0.8509

>> m=randperm(5)

m =

     2     3     1     4     5

>> A(m)

ans =

    0.4809    0.8015    0.9161    0.6016    0.8509



مرتبط با: متلب ( MATLAB ) ,
برچسب‌ها: randperm , randperm matlab ,
می توانید دیدگاه خود را بنویسید
How do you get taller? پنجشنبه 16 شهریور 1396 02:36 ق.ظ
Hello there! I could have sworn I've been to this blog before but after reading through some of the post I realized
it's new to me. Nonetheless, I'm definitely happy I found it and I'll be book-marking and checking back often!
http://mysteriousbirth84.snack.ws/lead-to-leg-pain.html شنبه 14 مرداد 1396 11:26 ق.ظ
Aw, this was a really good post. Taking a few minutes
and actual effort to create a good article… but what
can I say… I hesitate a whole lot and never seem to get anything
done.
How do you get rid of Achilles tendonitis? جمعه 6 مرداد 1396 08:08 ب.ظ
Hello to all, the contents existing at this web page are genuinely awesome for people knowledge, well,
keep up the nice work fellows.
How do you get Achilles tendonitis? شنبه 24 تیر 1396 08:32 ب.ظ
This is very interesting, You're a very skilled blogger.

I've joined your rss feed and look forward to seeking more of your fantastic post.
Also, I have shared your web site in my social networks!
http://MartiVanderkooi.bravesites.com دوشنبه 22 خرداد 1396 11:28 ق.ظ
Thanks for finally writing about >مهندسی مکانیک و هوافضا - دستور
randperm در متلب <Liked it!
http://maniegalaz.wordpress.com/2015/01/04/exercise-sessions-for-thickened-nails جمعه 12 خرداد 1396 11:55 ق.ظ
I am sure this paragraph has touched all the internet visitors,
its really really nice paragraph on building up new weblog.
manicure یکشنبه 3 اردیبهشت 1396 11:50 ق.ظ
Greetings! I know this is kind of off topic but I was wondering which blog platform are you using
for this website? I'm getting tired of Wordpress because I've had problems with hackers and I'm
looking at options for another platform. I would be great if you could point
me in the direction of a good platform.
manicure یکشنبه 3 اردیبهشت 1396 05:28 ق.ظ
Greetings I am so grateful I found your website, I
really found you by accident, while I was researching
on Askjeeve for something else, Anyhow I am here now and would just like
to say many thanks for a marvelous post and a all round exciting blog (I also love the theme/design), I don’t have time to go through it all at the
moment but I have bookmarked it and also included your RSS feeds, so when I have time I will be back to read a lot more, Please do keep up the superb work.
BHW چهارشنبه 30 فروردین 1396 09:17 ب.ظ
Thanks in favor of sharing such a good thought, paragraph is
fastidious, thats why i have read it fully
 
لبخندناراحتچشمک
نیشخندبغلسوال
قلبخجالتزبان
ماچتعجبعصبانی
عینکشیطانگریه
خندهقهقههخداحافظ
سبزقهرهورا
دستگلتفکر