Help CenterHelp Center
Create PCBReader object with specified Gerber and drill files
PCBReader
P = gerberRead(T)
P = gerberRead([],B)
P = gerberRead(T,B)
P = gerberRead(T,B,D)
example
P = gerberRead(T) creates a PCBReader object with the top layer Gerber file specified in T.
P
T
P = gerberRead([],B) creates a PCBReader object with the bottom layer Gerber file specified in B.
B
P = gerberRead(T,B) creates a PCBReader object with the specified top and bottom layer Gerber file names.
P = gerberRead(T,B,D) creates a PCBReader object with the specified top and bottom layer Gerber files and the drill file specified in D .
D
collapse all
Use the gerberRead function to import a top layer Gerber file.
gerberRead
P = gerberRead('interdigital_Capacitor.gtl');
Extract the metal layer from the file using the shapes function.
shapes
s = shapes(P);
View the top metal layer.
show(s)
Top layer Gerber file, specified as a character vector or string scalar. The file must be saved as a GTL file.
Example: gerberRead('Filetop.gtl');
gerberRead('Filetop.gtl');
Bottom layer Gerber file, specified as a character vector or string scalar. The file must be saved as a GBL file.
Example: gerberRead([],'FileBottom.gbl');
gerberRead([],'FileBottom.gbl');
Drill file, specified a character vector or string scalar. You can specify either a DRL or a TXT file.
Example: gerberRead('Filetop.gtl','FileBottom.gbl','FileDrill.txt');
gerberRead('Filetop.gtl','FileBottom.gbl','FileDrill.txt');
Gerber and drill files read, returned as a PCBReader object.
PCBReader | PCBServices | PCBConnectors | PCBWriter
PCBServices
PCBConnectors
PCBWriter
You have a modified version of this example. Do you want to open this example with your edits?
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office