Вы находитесь на странице: 1из 7

MATPOWER

.m Vs .mat
• Ans1:
• MATLAB code is in files with extension .M.
• MATLAB data is in files with extension .MAT.

• Ans2:
• Files with a .m extension contain MATLAB code, either in the form of
a script or a function.
• Files with a .mat extension contain MATLAB formatted data, and data
can be loaded from or written to these files using the functions load
and save , respectively.
Case file
• Each case is denoted by an .m file.
• It returns a structure having many fields
• CASEFORMAT.m: A commented file which specifies convention for
MATLAB Case file
• IDX_BUS, IDX_BRCH, IDX_GEN, IDX_AREA and IDX_COST regarding
constants which can be used as named column indices for the data
matrices.
Tips
• Whatever you write as comments below (1st line ) function definition
will appear as help results

Blue are with continuous comm


come as help result

Вам также может понравиться