PNG開放源接口 The interface has
been designed to be as simple and intuitive as possible. It supports plotting and reading in the RGB (red, green,
blue), HSV (hue, saturation, value/brightness) and CMYK (cyan, magenta, yellow, black) colour spaces, basic
shapes, scaling, bilinear interpolation, full TrueType antialiased and rotated text support, bezier curves, opening
existing PNG images and more.
PlotSphereIntensity(azimuth, elevation)
PlotSphereIntensity(azimuth, elevation, intensity)
h = PlotSphereIntensity(...)
Plots the intensity (as color) of a number of points on a unit sphere.
Input:
azimuth (phi), in degrees
elevation (theta), in degrees
intensity (optional, if not provided, a green sphere is produced)
All inputs must be vectors or matrices of the same size. Data does not have to be evenly spaced. When there aren t enough points to draw a smooth sphere, additional points (with color) are interpolated.
Output:
h - a handle to the patch object
The axes are also plotted:
positive x axis is red
positive y axis is green
positive z axis is blue
看n2實例 #Create a simulator object
set ns [new Simulator]
#Define different colors for data flows
#$ns color 1 Blue
#$ns color 2 Red
#Open the nam trace file
set nf [open out-1.nam w]
$ns namtrace-all $nf
set f0 [open out0.tr w]
set f1 [open out1.tr w]
#Define a finish procedure
proc finish {} {
global ns nf
$ns flush-trace
#Close the trace file
close $nf
#Execute nam on the trace file
exit 0
}
#Create four nodes
set n0 [$ns node]
set n1 [$ns node]
set n2 [$ns node]
set n3 [$ns node]
#Create links between the nodes
$ns duplex-link $n0 $n2 1Mb 10ms
This a GUI based system. The GUI is invoked from the command line by typing "ui_start". The GUI is self explanatory.
Tool tips are given in blue color. The cursor needs to be positioned on these for detailed explanation. The main file is
"runsim.m". In these simulations the SISO option is not explicitly given. This is because the SISO result for a particular
type of modulation is shown in every plot for purposes of comparison.
This software has been tested on MATLAB version 6.0 and above with signal processing and communication toolbox options.
IEC 62056 的很有價值的參考文檔,包括:
DLMS UA 1000-1 ed.8, Blue book, COSEM Identification System and Interface Classes
DLMS UA 1000-2 ed.6, Green book, DLMS/COSEM Architecture and Protocols
DLMS UA 1001-1 ed.3,Yellow book, DLMS/COSEM Conformance Testing Proce