x = pcg(A,b) attempts to solve the system of linear equations A*x = b for x using the Preconditioned Conjugate Gradients Method. When the attempt is successful, pcg displays a message to confirm convergence. If pcg fails to converge after the maximum number of iterations or halts for any reason, it displays a diagnostic message that includes the relative residual norm(b-A*x)/norm(b) and the iterat
応答曲面計画の紹介. 2 次応答曲面は、応答の形について追加の仮定をせずに、最大または最小を与える簡単なモデルです。
文法 行の途中で改行するには、末尾に ... を付ける。 VBでいうところのアンダーバーと同じ。 行列 行列のインデックスは常に1から始まる。0ではない。 行列の次元を拡大するのに、特別な操作は要らない。 元々、3×3の行列だったとしても、A(5, 5) = 1; などとすれば、自動的に 5×5 に拡大され、空所は自動的にゼロで埋められる。 簡単で便利ではあるが、エラーメッセージも警告も出ないので、意図しないバグの場合には困る。 行列の結合 C = [A, B] は、同じ行数の A と B を横に並べて、横長の行列を作る。 C = cat(2, A, B) と同じ。 C = [A; B] は、同じ列数の A と B を縦に並べて、縦長の行列を作る。 C = cat(1, A, B) と同じ。 C = cat(3, A, B) は、同じ
MATLABグラフの書き方入門 2次元グラフの簡単な描き方を2つの例で説明する。 例1: % Demo program for plot() No.1 t=linspace(0.0, 20.0, 201); % array of 101 from 0.0 to 10.0 t=[0: 0.1: 20.0]; % same as above x=exp(-0.3*t).*cos(2*t); % projection on x-axis y=exp(-0.3*t).*sin(2*t); % projection on y-axis plot(x); pause; % plot of x x軸は時間 plot(t,x,t,y); pause; % plot of x and y x軸は時間 plot(t,x,'xr',t,y,'ob'); pause; % x は「ばってん」記号, o は「まる」
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く