[Image processing] based on matlab gif picture generation [including Matlab source code 623]

1. Introduction

Based on matlab gif image generation

Second, the source code

% session 1
% convection and diffusion in 2D!!

% small initialization
clear all
clf
syms x m

% finding am
L = 50;
f = sin(pi*x*m/L);
a1 = 2/L*int(x*f,x,[0,1]);
a2 = 2/L*int((2-x)*f,x,[1,2]); 
am = a1 + a2;

% from sym2double
clear x 
m1 = 1:100;
am1 = double(subs(am,m,m1));

% space discretization
dx = -2:0.25:10;
dy = 1:20;
[xx,yy] = meshgrid(dx,dy);

% preallocation
phi = zeros(1,size(dx,2));
phi2D = zeros(size(dy,2),size(dx,2));

% time loop
for t = 0:0.1:10
    clf
    n = 1;
    
    % calculate phi
    for x = dx
        % convection (comment if other option used)
        % phi(n) = sum(am1.*sin(m1*pi*(x-t)/L));
        
        % diffusion (comment if other option used)
        % phi(n) = sum(am1.*exp(-0.1*(m1*pi/L).^2*t).*sin(m1*pi*(x)/L));
        
        % convection & diffusion (comment if other option used)
        phi(n) = sum(am1.*exp(-0.1*(m1*pi/L).^2*t).*sin(m1*pi*(x-t)/L));
        n = n+1;
    end
    
    % create phi matrix
    for y = dy
        phi2D(y,:) = phi;
    end
    
    % plot 1D line (comment if plot 2D is used)
    % plot(dx,phi)   
    % axis([min(dx) max(dx) -1 1])
    
    % plot 2D surface (comment if plot 1D is used)
    surface(xx,yy,phi2D)
    axis([min(dx) max(dx) min(dy) max(dy) -1 1])
    
    % some other plot options
    title(sprintf('Simulation time = %f s', t))
    xlabel('x'); ylabel('y'); zlabel('z')
    grid on
    rotate3d on
    % view(0,90) % view from above
    view(3)
    pause(0.01)

Three, running results

Insert picture description here

Four, remarks

Complete code or writing add QQ 1564658423 past review
>>>>>>
[Image recognition] based on matlab pavement crack recognition with GUI [including Matlab source code 009]
[Image recognition] based on matlab ID card number recognition [including Matlab source code 014 s]
[image compression] compressed image matlab image processing tutorial series based [containing Matlab source code 024]
[image segmentation] based on image segmentation matlab image processing tutorial series of (a) [containing Matlab source code 025]
[image segmentation] based Image segmentation of matlab image processing tutorial series (two) [including Matlab source code 026]
[Pattern recognition] based on matlab fingerprint recognition [including Matlab source code 029]
[Pattern recognition] based on matlab bank card number recognition [including Matlab source code 030]
[ Image clustering] based on matlab FCM and improved FCM brain CT image clustering [including Matlab source code issue 074]
[Image evaluation] Image quality evaluation based on matlab CCF algorithm [including Matlab source code issue 075]
[Image enhancement] based on matlab part Histogram enhancement of the contrast-enhanced CLAHE algorithm [Include Matlab source code 076]
[Image fusion] Image fusion based on matlab Frequency Partition [Include Matlab source code 077]
[Image evaluation] Image based on matlab SVM without reference quality evaluation [Include Matlab Source code Issue 078]
[Image processing] Based on matlab DWT+DCT+PBFO to improve image watermark hidden extraction with GUI [Include Matlab source code Issue 081]
[Image transformation] based on matalb DIBR-3D image transformation [including Matalb source code 082]
[Image fusion] based on matlab CBF algorithm image fusion [including Matlab source code 083]
[Image segmentation] based on matlab fuzzy clustering algorithm FCM image segmentation [Include Matlab source code 084]
[Image segmentation] Image segmentation based on morphological reconstruction and filtering improved FCM algorithm (FRFCM) [Matlab 085]
[Image denoising] Image denoising based on matlab adaptive morphology [including Matlab Source code Issue 086]
[Image enhancement] Submerged scattering image enhancement based on matlab DEHAZENET and HWD [Including Matlab 087]
[Image enhancement] Image enhancement based on matlab PSO optimization ACE [Including Matlab source code 088]
[Image enhancement] Based on Gray-scale image enhancement of matlab area similarity transformation function and dragonfly algorithm [including Matlab source code 089]
[Image reconstruction] Based on matlab image reconstruction ASTRA algorithm [including Matlab source code 090]
[Image segmentation] Matlab quadtree image segmentation[ Contains Matlab source code 091]
[Image segmentation] Based on matlab heart centerline extraction [Contains Matlab source code 092]
[Image recognition] Based on matlab svm plant leaf disease detection and classification [Contains Matlab source code 093]
[Image recognition] Based on matlab template Matching handwritten digit recognition system GUI interface [including Matlab source code 094]
[Image recognition] Matlab invariant moment-based digital verification code recognition with GUI interface [including Matlab source code 095]
[Image recognition] based on matlab barcode recognition system [including Matlab source code 096]
[Image recognition] RMB recognition system based on matlab RGB and BP neural network with GUI interface [including Matlab source code 097]
[Image recognition] Matlab cnn convolutional neural network based verification code recognition [including Matlab source code 098]
[Image straight line Fitting] Image straight line fitting based on matlab least squares method [including Matlab source code 100 period]
[Image defogging] image defogging based on matlab dark channel [Containing Matlab source code 101 period]
[Image segmentation] Based on matlab intuitionistic fuzzy C mean clustering image segmentation Matlab source containing IFCM [120]
[image segmentation based image segmentation between matlab] Otsu (Otsu) containing Matlab source [121]
{mode identification} Face Bank monitoring system [matlab Include Matlab source code 125 period]
[Pattern recognition] Fatigue detection system based on matlab GUI interface [Include Matlab source code 126 period]
[Image recognition] Based on matlab foreign license plate recognition [Include Matlab source code 128 period]
[Image segmentation] Based on matlab ant colony optimization Image segmentation
based on fuzzy clustering [Including Matlab source code 130] [Pattern recognition] Fruit detection system based on matalb GUI interface [Including Matlab source code 173]
[Pattern recognition] Fruit classification system based on matalb GUI interface [Including Matlab source code 174 ]
[] pattern recognition fruit grading system matalb GUI-based interface with Matlab source code [175]
[] pattern recognition matlab face recognition based on the detection of the face, eyes, nose and mouth with Matlab source code [178]
based on matlab GUI interface treatment Recording and audio [including Matlab source code 181]
[Image processing] Image encryption and decryption based on matlab GUI interface [Including Matlab source code 182]
[Pattern recognition] Handwritten capital letter recognition based on matlab GUI interface BP network [Including Matlab source code 183]
[Image segmentation] Based on matlab GUI interface medicine Image segmentation [Include Matlab source code 184]
[Image processing] Based on matlab GUI interface ring image processing and music playback system [Include Matlab source code 185]
[Image hiding] Image hiding based on matlab Laguerre transform [Include Matlab source code 193]
[Image processing] based on matlab dwt function to achieve two-dimensional wavelet transform [including Matlab source code 198]
[Image processing] based on matlab fractal interpolation algorithm to exchange pictures [including Matlab source code 197]
[Image edge detection] based on matlab GUI interface image edge detection System [Includes Matlab source code 203]
[Image geometry operation] Image geometry operation system based on matlab GUI interface [Includes Matlab source code 206]
[Image processing] Image processing system based on matlab GUI interface [Includes Matlab source code 207]
[Image Recognition] based on matlab cell recognition and edge detection [including Matlab source code 210]
[Pattern recognition] Matlab feedback neural Hopfield-based digital recognition [including Matlab source code 226]
[Pattern recognition] based on matlab fingerprint image detail feature extraction [including Matlab Source code issue 227]
[Image segmentation] Image segmentation based on matlab RGB HSV YCbCr Lab color space face detection [including Matlab source code issue 228]
[Image compression] Image compression based on matlab wavelet transform [Including Matlab source code 229]
[Pattern recognition] Fire detection based on matlab GUI interface [Including Matlab source code 249]
[Pattern recognition] Answer sheet recognition based on matlab Hough transform [Including Matlab source code 250]
[Pattern recognition] Matlab binary dilation difference and salt-and-pepper filtering based on the number of people recognition system in the classroom [including Matlab source code 251]
[Wavelet transform] digital watermark based on matlab GUI interface DWT and SVD algorithm [including Matlab source code Issue 253]
[Pattern Recognition] Three-dimensional human pose behavior recognition based on matlab subtraction method [Including Matlab source code 277]
[Image segmentation] Based on matlab particle swarm optimization T entropy image segmentation [Including Matlab source code 286]
[Image segmentation] Matlab particle swarm optimization exponential entropy image segmentation [including Matlab source code 287]
[Edge detection] based on matlab interpolation method sub-pixel edge detection [including Matlab source code 306]
[Pattern recognition] based on matlab GUI Bayesian minimum error rate handwritten number recognition [Include Matlab source code 308]
[Pattern recognition] Based on matlab PCA handwritten digit recognition [Include Matlab source code 309]
[Pattern recognition] Based on matlab feature matching English printed character recognition [Include Matlab source code 310]
[ Pattern recognition] Based on matlab Recognition of handwritten digits in knowledge base [including Matlab source code 311]
[Pattern recognition] Matlab-based bank card digital recognition [including Matlab source code 312]
[Image recognition] Matlab facial expression detection [including Matlab source code 317]
[Image detection] based on matlab LSD line detection [including Matlab source code 318]
[Image fusion] Infrared and visible light fusion and registration algorithm [including Matlab source code 319]
[Image recognition] based on matlab frame difference method fall detection [including Matlab Source code 320 period]
[Image recognition] based on matlab combined BCOSFIRE filter for wall crack recognition [including Matlab source code 321]
[Pattern recognition] based on matlab median filter and binarization of fall detection [including Matlab source code 344]
[ Image steganography] image steganography based on matlab DCT [including Matlab source code 365]
[Image steganography] image steganography extraction based on matlab LSB [including Matlab source code 366]
[Image steganography] JPEG image based on matlab Gaussian model Steganography [Contains Matlab source code 367]
[Image steganography] Based on matlab image adaptive steganography algorithm wow [Contains Matlab source code 368]
[Pattern recognition] Face recognition based on matlab GUI SVM and PCA [Contains Matlab source code 369 】
【Video recognition】Based on matlab trajectory method behavior recognition 【Including Matlab source code 375】
【Pattern recognition】Based on matlab GUI HSV and RGB model fruit classification 【Including Matlab source code 380】
【Image processing】Based on matlab GUI digital image processing platform【 Include Matlab source code 381]
[Image segmentation] Matlab-based retinal image segmentation [Include Matlab source code 382]
[Pattern recognition] Matlab k-means clustering-based gesture recognition [Include Matlab source code 386]
[Image processing] Human iris location based on Hough transform [Contains Matlab source code 387]
[Image processing] Matlab Kalman filter based target tracking [Matlab source code 388]
[Image segmentation] Image segmentation based on matlab GAC level set method [Contains Matlab source code 389]
[Image segmentation] Image segmentation based on matlab watershed algorithm [Contains Matlab source code 390]
[Image denoising] Image denoising based on wavelet transform [Contains Matlab source code 391]
[Image fusion] Based on matlab Image fusion
based on wavelet transform [including Matlab source code 392] [Image recognition] Matlab image recognition object count [including Matlab source code 393]
[Image enhancement] Matlab fuzzy set-based image enhancement [including Matlab source code 394]
[Image retrieval ] Image retrieval based on the comprehensive features of matlab GUI [including Matlab source code 395]
[Image processing] Matlab image RGB three-color synthesis and separation [including Matlab source code 401]
[Image processing] Matlab mouse drawing [including Matlab source code 402] ] of
[] image recognition based on the binarized barcode recognition matlab containing Matlab source [403]
[image compression stroke matlab compressed image] coding based on Matlab source containing [404]
[image] based on geometric projection distance [matlab Include Matlab source code 405]
[Image segmentation] FLICM image segmentation based on matlab key pixels [Include Matlab source code 406]
[Image recognition] Based on matlab gabor filter cloth defect detection [Include Matlab source code 407]
[Image recognition] based on matlab GUI license plate library recognition [including Matlab source code 416]
[Image recognition] based on matlab domestic license plate recognition [including Matlab source code 417]
[Image segmentation] Image segmentation based on matlab snake model [including Matlab source code 418] ]
[] based on image denoising matlab algorithm for image denoising total variation Matlab source containing [419]
[image denoising filter denoising] [420 containing source Matlab matlab-based non-local means (the NLM)]
[image denoising ] Image denoising based on matlab median filter [Including Matlab source code 421]
[Edge detection] Based on Matlab cellular automata image edge detection [Including Matlab source code 427]
[Image recognition] Based on LBP+LPQ algorithm fusion facial expression recognition [Including Matlab source code 432]
[Image recognition] Based on matlab OCR recognition system [Including Matlab source code 438]
[Edge detection] Based on Matlab Laplacian edge detection and image enhancement [Including Matlab source code 456]
[Image processing] Based on Matlab total variation image processing [including Matlab source code 457]
[Image processing] Matlab histogram-based medical image processing [including Matlab source code 458]
[Image segmentation] Based on GMM-HMRF image segmentation [including Matlab source code 459]
[ Image recognition] Facial expression recognition based on matlab ksvd dictionary learning [including Matlab source code 460]
[Image denoising] Matlab curvelet transform image denoising [Matlab source code 461 included]
[Image denoising] Image denoising based on wavelet transform (median, hard threshold, soft threshold) [Include Matlab source code 462]
[Image registration] Based on matlab sift image registration [Include Matlab source code 463]
[ Image recognition] based on matlab gray-scale binarization of playing cards [including Matlab source code 464]
[Image conversion] based on matlab two-dimensional image to three-dimensional image [including Matlab source code 465]
[image recognition] based on matlab threshold of cracks and scratches Trace detection [Including Matlab source code 467]
[Image recognition] Based on matlab Hough transform shape detection [Including Matlab source code 468]
[Image recognition] Based on Matlab vehicle entry and exit timing system [Including Matlab source code 469]
[Image recognition] Based on matlab Dangerous goods recognition
based on color histogram [Including Matlab source code 470] [Image recognition] Based on matlab RBF handwritten digit recognition [Including Matlab source code 471]
[Image recognition] Based on matlab flower classification [Including Matlab source code 472]
[Image enhancement] Image quality improvement based on matlab Laplace filter [including Matlab source code 488 period]
[Edge detection] Based on matlab CNN gray image edge extraction [including Matlab source code 490 period]
[Image enhancement] based on matlab iris image Gaussian filtering, low-pass filtering , Butterworth filtering [including Matlab source code 501]
[Video recognition] based on matlab Gaussian model video vehicle count [including Matlab source code 503]
[Video recognition] Matlab video-based traffic statistics [including Matlab source code 504]
[Image recognition] based on matlab Fisher classification of handwritten digit recognition [including Matlab source code 505]
[Image denoising] Based on matlab GUI wavelet, median, Wiener and filtering in the frequency domain [including Matlab source code 506]
[Image segmentation] Super pixel segmentation based on matlab DBSCAN [including Matlab source code 515]
[Image segmentation] Matlab RGB color layered image segmentation [including Matlab source code 516]
[Image stitching] Image stitching based on matlab Harris corner detection [including Matlab source code 517 ] of
[] image recognition based on neural network matlab GUI BP containing handwritten digit recognition Matlab source [518]
[image] recognition matlab apple quality inspection and grading system based on Matlab containing source [519]
[] based on image denoising matlab GUI butterworth , Median, Wiener, wavelet denoising [including Matlab source code 520]
[Image steganography] Digital watermark based on the combination of discrete wavelet transform (DWT) and singular value decomposition (SVD) [including Matlab source code 521]
[image Recognition] Vehicle detection and recognition based on matlab yolo v2 [including Matlab source code 581]
[Image segmentation] GUI FCM&KFCM MRI image segmentation [Matlab source code 582 included]
[Image segmentation] Based on GUI inter-class variance threshold image segmentation and corrosion expansion [ Contains Matlab source code 583]
[Image segmentation] 3D medical image segmentation based on matlab 2D level set [Contains Matlab source code 584]
[Image recognition] Image acquisition and detection based on matlab GUI fingertips [Contains Matlab source code 585]
[Image recognition] based on matlab GUI fingerprint recognition [including Matlab source code 586]
[Image recognition] based on matlab machine vision color recognition system [including Matlab source code 588]
[Face recognition] based on matlab PCA+SVM expression recognition scoring system [including Matlab source code 593]
[image recognition] based on matlab self-service fresh supermarket [including Matlab source code 594]
[image recognition] based on matlab GUI QR code recognition and generation [including Matlab source code 600]
[image processing] based on matlab DWT Image watermark embedding and extraction attack [including Matlab source code 622]

Guess you like

Origin blog.csdn.net/TIQCmatlab/article/details/115190607