Download data/eit-data/matlab-code/heartNlungs_plot.m from introvoyz041/InversePDE: direct link, hf CLI and curl.
- Browser
- Download file 445 Bytes
-
https://huggingface.co/datasets/introvoyz041/InversePDE/resolve/main/data/eit-data/matlab-code/heartNlungs_plot.m
- Command line
-
hf download hf://datasets/introvoyz041/InversePDE/data/eit-data/matlab-code/heartNlungs_plot.m
-
curl -L -o heartNlungs_plot.m https://huggingface.co/datasets/introvoyz041/InversePDE/resolve/main/data/eit-data/matlab-code/heartNlungs_plot.m
445 Bytes
| % Plot the conductivity | |
| % | |
| % Samuli Siltanen May 2012 | |
| % Set font size | |
| fsize = 14; | |
| % Create evaluation points | |
| t = linspace(-1,1,256); | |
| [x1,x2] = meshgrid(t); | |
| z = x1 + i*x2; | |
| % Evaluate potential | |
| c = heartNlungs(z); | |
| c(abs(z)>1) = NaN; | |
| % Two-dimensional plot | |
| figure(2) | |
| clf | |
| imagesc(c,[0.4,2]) | |
| colormap jet | |
| map = colormap; | |
| colormap([[1 1 1];map]); | |
| axis equal | |
| axis off | |
| colorbar | |
| %print -dpng heartNlungs2D.png | |