Skip to content

Commit

Permalink
avoid using clear all and ~ in return value
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed May 16, 2022
1 parent 21f9bd7 commit 6fa1580
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mcxlab/examples/demo_polarized_photon.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
%
% This file is part of Monte Carlo eXtreme (MCX) URL:http://mcx.sf.net
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clear
clc
close all
clear cfg

%% simulation configurations
% domain bounding box
Expand Down Expand Up @@ -78,7 +76,7 @@
cfg.maxdetphoton=1e7; % max number of detected photons

%% run simulation and plot results
[~,detphoton]=mcxlab(cfg);
[frate,detphoton]=mcxlab(cfg);

% compute backscattered IQUV
phi=atan2(detphoton.v(:,2),detphoton.v(:,1));
Expand Down

0 comments on commit 6fa1580

Please sign in to comment.