Welcome![Sign In][Sign Up]
Location:
Search - matlab sum

Search list

[Compress-Decompress algrithmsSPIHT(Matlab).zip

Description:

% Matlab implementation of SPIHT (without Arithmatic coding stage)
%
% By Jing Tian, scuteejtian@hotmail.com

fprintf('-----------   Welcome to SPIHT Matlab Demo!   ----------------\n');

fprintf('-----------   Load Image   ----------------\n');
infilename = 'lena512.bmp';
outfilename = 'lena512_reconstruct.bmp';

Orig_I = double(imread(infilename));

rate = 1;

OrigSize = size(Orig_I, 1);
max_bits = floor(rate * OrigSize^2);
OutSize = OrigSize;
image_spiht = zeros(size(Orig_I));
[nRow, nColumn] = size(Orig_I);

fprintf('done!\n');
fprintf('-----------   Wavelet Decomposition   ----------------\n');
n = size(Orig_I,1);
n_log = log2(n);
level = n_log;
% wavelet decomposition level can be defined by users manually.
type = 'bior4.4';
[Lo_D,Hi_D,Lo_R,Hi_R] = wfilters(type);

[I_W, S] = func_DWT(Orig_I, level, Lo_D, Hi_D);

fprintf('done!\n');

fprintf('-----------   Encoding   ----------------\n');
img_enc = func_SPIHT_Enc(I_W, max_bits, nRow*nColumn, level);  

fprintf('done!\n');
fprintf('-----------   Decoding   ----------------\n');
img_dec = func_SPIHT_Dec(img_enc);

fprintf('done!\n');
fprintf('-----------   Wavelet Reconstruction   ----------------\n');
img_spiht = func_InvDWT(img_dec, S, Lo_R, Hi_R, level);

fprintf('done!\n');
fprintf('-----------   PSNR analysis   ----------------\n');

imwrite(img_spiht, gray(256), outfilename, 'bmp');

Q = 255;
MSE = sum(sum((img_spiht-Orig_I).^2))/nRow / nColumn;
fprintf('The psnr performance is %.2f dB\n', 10*log10(Q*Q/MSE));


Platform: | Size: 232873 | Author: jasonchang | Hits:

[matlabmatlab下带有缺测数据的平均与求和

Description: cmean使用起来与mean一样,可以对高维数组进行统计,其中cmean把数据中的nan完全剔除了,返回的是有值时的平均(如果都是缺测,也是返回nan)。不会向mean那样,如果有缺测,平均值也为缺测 csum与sum类似。 实际观测中常常有意外产生缺测,这两个函数希望对大家有用。
Platform: | Size: 1111 | Author: zhoudg@gmail.com | Hits:

[OtherAn Introduction to Matlab

Description: 1 MATLAB 2 2 Starting Up 2 2.1 Windows Systems . . . . . . . . . . 2 2.2 Unix Systems . . . . . . . . . . . . . 2 2.3 Command Line Help . . . . . . . . . 2 2.4 Demos . . . . . . . . . . . . . . . . . 3 3 Matlab as a Calculator 3 4 Numbers & Formats 3 5 Variables 3 5.1 Variable Names . . . . . . . . . . . . 3 6 Suppressing output 4 7 Built{In Functions 4 7.1 Trigonometric Functions . . . . . . . 4 7.2 Other Elementary Functions . . . . . 4 8 Vectors 4 8.1 The Colon Notation . . . . . . . . . 5 8.2 Extracting Bits of a Vector . . . . . 5 8.3 Column Vectors . . . . . . . . . . . . 5 8.4 Transposing . . . . . . . . . . . . . . 5 9 Keeping a record 6 10 Plotting Elementary Functions 6 10.1 Plotting|Titles & Labels . . . . . . 7 10.2 Grids . . . . . . . . . . . . . . . . . . 7 10.3 Line Styles & Colours . . . . . . . . 7 10.4 Multi{plots . . . . . . . . . . . . . . 7 10.5 Hold . . . . . . . . . . . . . . . . . . 7 10.6 Hard Copy . . . . . . . . . . . . . . 8 10.7 Subplot . . . . . . . . . . . . . . . . 8 10.8 Zooming . . . . . . . . . . . . . . . . 8 10.9 Formatted text on Plots . . . . . . . 8 10.10Controlling Axes . . . . . . . . . . . 9 11 Keyboard Accelerators 9 12 Copying to and from Word and other applications 10 12.1 Window Systems . . . . . . . . . . . 10 12.2 Unix Systems . . . . . . . . . . . . . 10 13 Script Files 10 14 Products, Division & Powers of Vectors 11 14.1 Scalar Product (*) . . . . . . . . . . 11 14.2 Dot Product (.*) . . . . . . . . . . . 11 14.3 Dot Division of Arrays (./) . . . . . 12 14.4 Dot Power of Arrays (.^) . . . . . . 12 15 Examples in Plotting 13 16 Matrices|Two{Dimensional Arrays 13 16.1 Size of a matrix . . . . . . . . . . . . 14 16.2 Transpose of a matrix . . . . . . . . 14 16.3 Special Matrices . . . . . . . . . . . 14 16.4 The Identity Matrix . . . . . . . . . 14 16.5 Diagonal Matrices . . . . . . . . . . 15 16.6 Building Matrices . . . . . . . . . . . 15 16.7 Tabulating Functions . . . . . . . . . 15 16.8 Extracting Bits of Matrices . . . . . 16 16.9 Dot product of matrices (.*) . . . . 16 16.10Matrix{vector products . . . . . . . 16 16.11Matrix{Matrix Products . . . . . . . 17 16.12Sparse Matrices . . . . . . . . . . . . 17 17 Systems of Linear Equations 18 17.1 Overdetermined system of linear equations . . . . . . . . . . . . . . . . . . 18 18 Characters, Strings and Text 20 19 Loops 20 20 Logicals 21 20.1 While Loops . . . . . . . . . . . . . . 22 20.2 if...then...else...end . . . . . . 23 21 Function m{ les 23 21.1 Examples of functions . . . . . . . . 24 22 Further Built{in Functions 25 22.1 Rounding Numbers . . . . . . . . . . 25 22.2 The sum Function . . . . . . . . . . . 25 22.3 max & min . . . . . . . . . . . . . . . 26 22.4 Random Numbers . . . . . . . . . . 26 22.5 find for vectors . . . . . . . . . . . . 27 22.6 find for matrices . . . . . . . . . . . 27 23 Plotting Surfaces 27 24 Timing 28 25 On{line Documentation 29 26 Reading and Writing Data Files 29 26.1 Formatted Files . . . . . . . . . . . . 30 26.2 Unformatted Files . . . . . . . . . . 30 27 Graphic User Interfaces 31 28 Command Summary 32
Platform: | Size: 877346 | Author: taffy320 | Hits:

[matlabwavelift

Description: 暂时只支持jpeg2000支持的 cdf97 和spline53 可以这样来测试: x=imread( E:\study\jpeg2000\images\lena.tif ) % see the decomposition coefficients y=wavelift(x, 1, spl53 ) using spline 5/3 wavelet figure subplot(1,2,1) imshow(x) subplot(1,2,2) imshow(mat2gray(y)) % see the reconstruction precision yy=wavelift(x, 5) using cdf 9/7 wavelet ix=wavelift(yy,-5) inverse sum(sum((double(x)-ix).^2)) -only temporary support jpeg2000 support cdf97 and spline53 this can be measured Examination : x = imread (E : \ study \ jpeg2000 \ images \ lena.tif)% see the d ecomposition coefficients wavelift y = (x, 1, spl53) using spline 5/3 wavelet figure subplot (1,2,1) imshow (x) subplot (1,2, 2) imshow (mat2gray (y))% see the reconstructi on precision wavelift yy = (x, 5) using cdf 9/7 wavelet ix = wavelift (yy.-5) inverse sum (sum ((double (x)- ix). ^ 2
Platform: | Size: 6144 | Author: 余庆红 | Hits:

[matlabovrlpadd

Description: realize overlapped-add method %[y]=overlpadd(x,h,Nfft) %y:output sequence %x:input sequence %h:filter impulse response sequence %Nfft:points of each DFT operation %重叠相加法实现分段卷积-realize overlapped-add method% [y] = over lpadd (x, h, Nfft)% y : x% output sequence : % h input sequence : impulse response filter% Nfft sequence : DFT points of each operation% of the sum of overlapping sub-convolution Method
Platform: | Size: 1024 | Author: 吴江华 | Hits:

[Special Effectsmotion_detect

Description: motion detection, use two method to detect motion. sum of differences and difference of sum.-motion detection, use two method to detect motion. sum of differen ces of sum and difference.
Platform: | Size: 1024 | Author: oyc | Hits:

[Othermatlabtoolbox

Description: matlab工具箱里的程序函数总概与解释-Matlab toolbox functions Lane procedures and interpretation sum
Platform: | Size: 44032 | Author: 李小小 | Hits:

[Documentsdatamining

Description: 一个数据挖掘爱好者的总结,涉及数据挖掘的应用领域,有参考价值-a data mining lovers sum up, involving the application of data mining areas, a reference value
Platform: | Size: 328704 | Author: youyou | Hits:

[matlabIterativeClosestPointMethod

Description: ICP fit points in data to the points in model. Fit with respect to minimize the sum of square errors with the closest model points and data points. Ordinary usage: [R, T] = icp(model,data) INPUT: model - matrix with model points, data - matrix with data points, OUTPUT: R - rotation matrix and T - translation vector accordingly so newdata = R*data + T . newdata are transformed data points to fit model see help icp for more information -ICP fit points in data to the points in model. Fit with respect to minimize the sum of square errors with the closest model points and data points. Ordinary usage: [R, T] = icp(model,data) INPUT: model- matrix with model points, data- matrix with data points, OUTPUT: R- rotation matrix and T- translation vector accordingly so newdata = R*data+ T . newdata are transformed data points to fit model see help icp for more information
Platform: | Size: 5120 | Author: 阳关 | Hits:

[MPIMATLAB

Description: 卷积运算:取x(t)和h(t)的长度为nx,nh。平移量n=nh+nx-1,利用for和if语句实现倒序求和运算。外循环用一个for语句实现平移,通过在求和时取数组元素的顺序实现倒序求和-Convolution operation: take x (t) and h (t) of length nx, nh. Translational volume n = nh+ Nx-1, use for and if statements to achieve reverse summation operator. Outside the circle with a for statement to achieve translation, when taken in sum array elements to achieve reverse the order of summation
Platform: | Size: 1024 | Author: 1 | Hits:

[matlabRanksum_test

Description: 秩和检验的Matlab源码程序,计算两类变量所含显著差异的变量-Rank sum test of the Matlab source code program to calculate two types of variables contained in significant differences in the variables
Platform: | Size: 48128 | Author: wangli | Hits:

[matlabWaterfilling.Algorithm

Description: Waterfilling algorithm (from [Palomar and Fonollosa, Trans-SP2004]) to compute: pi = (mu*ai - bi)^+ sum(pi) = Pt By Daniel Perez Palomar (last revision: May 10, 2004).-Waterfilling algorithm (from [Palomar and Fonollosa, Trans-SP2004]) to compute: pi = (mu*ai- bi)^+ sum(pi) = Pt By Daniel Perez Palomar (last revision: May 10, 2004).
Platform: | Size: 1024 | Author: 马文 | Hits:

[ERP-EIP-OA-Portalssd_cross-correlation

Description: Relationship Between the Sum of Squared Difference (SSD) and Cross Correlation for Template Matching Konstantinos G. Derpanis York University kosta@cs.yorku.ca Version 1.0 December 23, 2005
Platform: | Size: 41984 | Author: li | Hits:

[DSP programDSP-c-Matlab-Programs-ManualV19

Description: 印度GURUNANAK ENGINEERING COLLEGE数字信号处理实验室的DSP+c+Matlab联合编程手册-DIGITAL SIGNAL PROCESSING LAB (IV-I SEM) INDEX 1. Architecture of DSP chips-TMS 320C 6713 DSP Processor 2. Linear convolution 3. Circular convolution 4. FIR Filter (LP/HP) Using Windowing technique a. Rectangular window b. Triangular window c. Kaiser window 5. IIR Filter(LP/HP) on DSP processors 6. N-point FFT algorithm 7. Power Spectral Density of a sinusoidal signals 8. FFT of 1-D signal plot 9. MATLAB program to generate sum of sinusoidal signals 10. MATLAB program to find frequency response of analog
Platform: | Size: 1582080 | Author: wangjin | Hits:

[matlabOFDMA-resource-Allocation(matlab)

Description: 基于OFDMA系统的多用户资源分配算法,论文配备MATLAB代码,入门的好教材。-— Orthogonal Frequency Division Multiple Access (OFDMA) basestations allow multiple users to transmit simultaneously on different subcarriers during the same symbol period. This paper considers basestation allocation of subcarriers and power to each user to maximize the sum of user data rates, subject to constraints on total power, bit error rate, and proportionality among user data rates. Previous allocation methods have been iterative nonlinear methods suitable for ofine optimization. In the special high subchannel SNR case, an iterative root-nding method has linear-time complexity in the number of users and N logN complexity in the number of subchannels. We propose a non-iterative method that is made possible by our relaxation of strict user rate proportionality constraints. Compared to the root-nding method, the proposed method waives the restriction of high subchannel SNR, has signicantly lower complexity, and in simulation, yields higher user data rates.
Platform: | Size: 160768 | Author: 王刚名 | Hits:

[Special Effectsmatlab

Description: 基于Matlab平台实现目标信息提取。求未含噪声的原图像的周长需先对图像进行二值化,然后选择一种算法进行边缘检测,包含prewitt,canny,sobel等算法,再通过sum(sum())函数进行周长的计算并显示在相应的位置。为求包含特定目标的噪声污染图像的周长或面积,首先对图像进行去噪,再进行二值化,接着进行微小分割,实现边缘提取或者区域分割,进一步统计目标周长或者目标面积。-Based on Matlab platform to achieve the goal of information extraction. Perimeter need to seek not contain the original noise image binarized image, and then select an algorithm for edge detection, including prewitt, canny, sobel algorithm, the circumference of the sum (sum ()) function calculated and displayed in the appropriate location. Seeking to contain a specific target image the perimeter or area of noise pollution, the first image noise, and then binarized, followed by small split, edge detection or region segmentation, and further statistical target circumference or target area.
Platform: | Size: 1024 | Author: 李丽 | Hits:

[Algorithmdelay-and-sum(1)

Description: beamforming tutorial in matlab
Platform: | Size: 437248 | Author: ugur | Hits:

[matlabSUM OF SIN

Description: SUM OF SINUSOIDAL SIGNALS
Platform: | Size: 21504 | Author: mandelli | Hits:

[matlabFourier transform based on Riemann sum

Description: 基于黎曼和,已知傅里叶计算的公式,积分计算傅里叶级数(Fourier transform based on Riemann sum.)
Platform: | Size: 203776 | Author: malvina | Hits:

[matlabMATLAB

Description: 本章先分析说明伪谱法求解波动方程的算法原理,再给出弹性波场伪谱法数值模拟的改进算法;然后,通过直接引入P波波场变量和S波波场变量,给出可实现弹性波场的P波和S波分解的波动方程,并用伪谱法实现弹性波场的P波和S波分解的数值模拟;最后用伪谱法对井间地震的复杂波场作数值模拟,分析井间地震波场中各种波的传播规律。(In this chapter, the principle of pseudo-spectral method for solving wave equation is analyzed, and then an improved algorithm for numerical simulation of elastic wave field is given. Then, by directly introducing P-wave field variable and S-wave field variable, the wave equation which can realize P-wave and S-wave decomposition of elastic wave field is given, and the P-wave sum of elastic wave field is realized by pseudo-spectral method. Numerical simulation of S-wave decomposition; finally, pseudo-spectral method is used to simulate the complex cross-well seismic wave field and analyze the propagation law of various waves in cross-well seismic wave field.)
Platform: | Size: 115712 | Author: bingwuhen1 | Hits:
« 12 3 4 5 6 7 8 9 10 »

CodeBus www.codebus.net