blob: 023554179c9d00faadcfd27ac6debd7023435052 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clc;
clear;
// r = p*a + q*b + s*c
p=1
q=2
s=3
//Calculation
LCM=lcm({p,q,s}) //LCM for computing miller indices
rx=1/p*LCM //reciprocals
ry=1/q*LCM
rz=1/s*LCM
mprintf("The plane depicted in the figure is denoted by (%i,%i,%i)",rx,ry,rz)
|