Author Archives: mabouali

Parallelizing loops in MATLAB – Nested parfor

parallelizing a loop in MATLAB could be as easy as changing: to However, you can not have nested parfor in matlab. So, the following will NOT work: An easy work around is to combine these two loops into one loop … Continue reading

Posted in Program, Script, Tech Tips | Tagged , | Leave a comment

Clearing Memory Cache

Ubuntu caches the memory. While that could be useful in some cases, it could cause problem in other cases. You can clear the cache using the following command sync && echo 3 | tee /proc/sys/vm/drop_caches Make sure that you have … Continue reading

Posted in Uncategorized | Leave a comment

Interpolation Extrapolation and Curve-Fitting using higher order polynomial

There are numerous cases that you want to transfer data from one location (source grid) onto another locations (destination grid). Let’s say you have measured the concentration of some pollutants along the river every 1km from the river mouth. Now … Continue reading

Posted in Program | Leave a comment

C, CUDA-C, and MATLAB interface to CUDA-C implementation of SEBS are available for public download now.

Finally, I uploaded the code and an example on how to use the code on code.google.com. You can access the C, CUDA-C, and MATLAB interface to CUDA-C. I am going to add some more documentation. Just one note on MATLAB … Continue reading

Posted in Uncategorized | Leave a comment

slow network connection on Ubuntu

I recently got a new PC with ASUS mainboard. I installed both Windows and Ubuntu 11.10. Everything was fine except that on Ubuntu, the connection was slow, quite often disconnected, downloads from the Internet were halted without being completed or they were … Continue reading

Posted in Tech Tips | Leave a comment

exFAT for your USB Flash Drives

It is not that uncommon to use multiple different operating systems. I personally use Mac, Linux, and for some applications also Windows. In these situations it is not uncommon that you want to transfer file between different computers with different … Continue reading

Posted in Tech Tips | 2 Comments

Animating Graphic Files

If you are doing any numerical simulation or modeling, it happens quite often that you want to show a series of your solution snapshots one after each other to make an animation on how the solution is evolving. There are different … Continue reading

Posted in Uncategorized | Leave a comment