Month: July 2017

3D surface Animation

Posted on

result

3D Surface Plot တခုကို ဘယ္လို Animation လုပ္မလဲ .. ရွိျပီးသား function ကိုပဲ ယူသံုးမလား.. ကိုယ္တိုင္ function ေရးမလား. . MATLAB မွာ ေတာ့ ေရးရတာ လြယ္ပါတယ္.

စာေၾကာင္း ၄ – ၅ ေၾကာင္းကို အေျခခံျပီး ေရးလို ့ရတဲ့ အတြက္.. MATLAB နဲ ့ ပရိုဂရမ္ေရးရတာ.. ေပ်ာ္စရာေကာင္းသလို .. စိတ္ခ်မ္းသာဖို ့လဲ ေကာင္းပါတယ္။

စိတ္၀င္စားတဲ့သူမ်ား. ေအာက္ပါ လင့္ မွာ ရယူႏိုင္ပါတယ္။

surfplot

MATLAB – zombie program

Video Posted on

iSTARzoombieframe_001

This is the main file. Change the file extension to .m. In this program, a zombie (a lazy student shown in Red) looks for the nearest targets (students shown in Yellow STARs) in the classroom and persuade them to be zombies (lazy). Surprisingly, there are only few students who can survive from the zombies. 🙂 Enjoy the programs below.

Change the extensions of the following function to .p.

initialize

This function initializes the positions of the targets (students) and zombie.

findprey

This function finds the nearest targets and convert them into zombies.

updateposition

This function updates the positions of the targets and zombies.

drawgraph

This function draws the new positions of the targets and zombies.