You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: blackbody.m
    path of file: ./repos/Image-Harmonization-Dataset-iHarmony4/Xue et al/dependency/optprop/colordata
    
    the code of the file until where you have to start completion: function varargout=blackbody(varargin)
%BLACKBODY Calculate radiation from a Planck black body radiator.
%   Z=BLACKBODY(T,WL) returns the blackbody

    
function varargout=blackbody(varargin)
%BLACKBODY Calculate radiation from a Planck black body radiator.
%   Z=BLACKBODY(T,WL) returns the blackbody
%   radiation spectra at wavelengths WL for given temperatures T. T have
%   size [M N ... P] and WL is a row vector [1 W]. Z will then have 
%   size [M N ... P W]. If WL is empty or omitted, DWL is be used for WL.
%
%   The returned spectra are normalized to 100 at 560 nm.
%
%   Example:
%      lam=380:10:720;
%      T=[5000 5500 6500]';
%      plot(lam,blackbody(T,lam));
%      xlabel('Wavelength(nm)'); ylabel('Emittance');
%      legend