blob: 8fdb4e5ce40d1631c912d36e7bf1b70bc06d238f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//Example number 3.5, Page number 48
clc;clear;
close;
//Variable declaration
a=1;
b=2;
c=3; //intercepts
//Calculation
h=int(c/a);
k=int(b);
l=int(c*b); //miller indices
//Result
printf("miller indices are (%d,%d,%d)",h,k,l)
|