channel flow gif
Version 1.0.0 (7.77 MB) by
Jitong Ding
This code allows you to make a gif file dynamically illustrating a channel flow system.
- Click download on the right-hand-side of the webpage to download the zip file containing the code 'make_gif_channel.m' and the dataset 'gif_data_180.mat'.
- Put files 'make_gif_channelflow.m' and 'gif_data_180.mat' in a same folder.
- Open the file 'make_gif_channelflow.m' to run the file.
- Change the parameter DelayTime to control the display speed of the gif. The smaller the value is, the faster the gif displays.
- The gif file will be saved as '180.gif' in the same folder. You can drag it into your slides for presentation purposes.
File 'gif_data_180.mat' contains the dataset for generating the figures on the three surfaces of the channel box. The dataset has been attained separately. First, we plot the figure using the command imagesc (alternatives such as contourf and pcolor could also be used). Second, we extract the data representing the colors using commend getframe and store it in a cell array. We do the procedures for each surface and each time step.
Cite As
Jitong Ding (2023). channel flow gif (https://www.mathworks.com/matlabcentral/fileexchange/122262-channel-flow-gif), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2022b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |