Skip to content

Commit 572eaa6

Browse files
author
Thurston
committed
cheat_sheet : update example sizing; add FieldII job syntax.
1 parent 5aa7059 commit 572eaa6

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

cheat_sheet.m

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,9 @@
259259

260260
% get sampling delay tensors
261261
% NOTE: we assume chd.ord == 'TNM', which means time(T) x receives(N) x transmits(M)
262-
tau_rx = zeros([1024, chd.N, 1 ]); % delay matrix: pixels x receives x 1
263-
tau_tx = zeros([1024, 1 , chd.M]); % delay matrix: pixels x 1 x transmits
264-
tau = tau_tx + tau_rx; % delay tensor: pixels x receives x transmits
262+
tau_rx = zeros([64, chd.N, 1 ]); % delay matrix: pixels x receives x 1
263+
tau_tx = zeros([64, 1 , chd.M]); % delay matrix: pixels x 1 x transmits
264+
tau = tau_tx + tau_rx; % delay tensor: pixels x receives x transmits
265265

266266
% sample the data applying transmit delays only, for all transmits
267267
y = sample(chd, tau_tx);
@@ -464,9 +464,17 @@
464464
% k-Wave
465465
chd = kspaceFirstOrder(us, med, cscan);
466466

467-
% run on a local or remote cluster
468-
clu = parcluster('local');
467+
% run simulations on a local or remote cluster
468+
clu = parcluster(); % your default cluster
469469
[job, rfun] = kspaceFirstOrder(us, med, cscan, 'parenv', clu);
470+
% submit(job);
471+
% wait(job);
472+
% chd = rfun(job);
473+
474+
[job, rfun] = calc_scat_multi(us, scat, 'parenv', clu, 'job', true);
475+
% submit(job);
476+
% wait(job);
477+
% chd = rfun(job);
470478

471479

472480

0 commit comments

Comments
 (0)