# Differences

This shows you the differences between two versions of the page.

 public:matlab_tips [2016/04/04 15:44]fangfufu [Sparse vs Dense] public:matlab_tips [2018/02/04 23:51]fangfufu Both sides previous revision Previous revision 2018/02/04 23:51 fangfufu 2016/04/04 15:50 fangfufu old revision restored (2016/04/02 07:41)2016/04/04 15:44 fangfufu [Sparse vs Dense] 2016/04/02 07:41 fangfufu [Prod vs repeated multiplication] 2016/04/02 07:41 fangfufu [Prod vs repeated multiplication] 2016/04/02 07:41 fangfufu [Matlab Tips] 2016/04/02 07:40 fangfufu old revision restored (2016/04/02 07:13)2016/04/02 07:39 fangfufu [Highly unscientific benchmark of prod()] 2016/04/02 07:38 fangfufu [Matlab Tips] 2016/04/02 07:13 fangfufu 2016/04/01 19:39 fangfufu created Next revision Previous revision 2018/02/04 23:51 fangfufu 2016/04/04 15:50 fangfufu old revision restored (2016/04/02 07:41)2016/04/04 15:44 fangfufu [Sparse vs Dense] 2016/04/02 07:41 fangfufu [Prod vs repeated multiplication] 2016/04/02 07:41 fangfufu [Prod vs repeated multiplication] 2016/04/02 07:41 fangfufu [Matlab Tips] 2016/04/02 07:40 fangfufu old revision restored (2016/04/02 07:13)2016/04/02 07:39 fangfufu [Highly unscientific benchmark of prod()] 2016/04/02 07:38 fangfufu [Matlab Tips] 2016/04/02 07:13 fangfufu 2016/04/01 19:39 fangfufu created Line 1: Line 1: + ====== Matlab Tips ====== + ===== General tips ===== + - If you plan to use parallel for-loop, put the parfor statement in the outermost loop to reduce inter-process communication. + ===== Simple text progress bar ===== + + disp(' ​    '​);​ + for i = 1:x + fprintf('​\b\b\b\b\b\b%05.2f%%',​ i/x*100); + %%%%% Do your biddings here %%%%% + end + disp(' '); + ​ + + ===== GPU / Host Performance ===== + These results were obtained using [[https://​uk.mathworks.com/​matlabcentral/​fileexchange/​34080-gpubench|GPUBench]]. + ^ ^Results for data-type '​double'​ (In GFLOPS) ^^^Results for data-type '​single'​(In GFLOPS)^^^ + ^Device ​                      ​^MTimes ^Backslash^FFT ​         ^MTimes ​ ^Backslash ^FFT   | + ^TITAN Xp                         |422.47 |371.37  ​ |207.24 |11607.69|1426.76 ​  ​|763.56| ​     ​ + ^GeForce GTX 1080                 |280.84 |223.05  ​ |137.66 |7707.01 |399.37 ​   |424.60| ​     ​ + ^Core i7-4900MQ (Single Thread)  ​       |123.00 |86.57  ​ |8.47  ​       |272.00 |180.32 ​   |14.31 | + ^GeForce GT 730M                 |27.43 |25.43  ​ |10.54 |346.57 |214.98 ​   |27.09 |
• public/matlab_tips.txt