?? amg_usersetfd.m
字號:
%AMG_USERSET_FD sets us up for User Specified Example using FInite
%Difference Discretization
% Ryan McKenzie
% Department of Computational Sciences
% University of Kentucky
amg_globals;
filename = input('\nPlease enter the file name containing your FD matrix.\n(Press Return for the Default):', 's');
if isempty(filename)
filename = 'anisox_81.txt';
end
fin = fopen (filename,'rt');
dim= fscanf(fin,'%4d',2);
FINEPOINTS = dim(1);
A(1).matrix = fscanf(fin,'%g',[dim(1),dim(2)]);
fclose(fin);
X_Guess = zeros( dim(2), 1 );
RHS = ones( dim(2), 1 );
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -