Download MuPAD from SciFace

MuPAD Pro Computing Essentials - Examples 

Example 8.11 - Plotting L-systems

We can use MuPAD to plot L-systems.  More about this how to develop L-systems, and their interpretation you can find in my book. Here I enclose only one example showing how L-systems can be plotted using MuPAD.  A number of other L-systems you can find in examples enclosed at the end of chapter 8.  

tree := plot::Lsys(45, "F",
   "F"="BR[+HF][-HF]HRF",
   "R"="BRR",
   "F"=Line,
   "R"=Line,
   "B"=RGB::Brown,
   "H"=RGB::ForestGreen
):
 
tree::generations := 7:
 
plot(tree, Axes = None, Scaling=Constrained)

 

TOP