码迷,mamicode.com
首页 > Web开发 > 详细

Matlab代写、代写Matlab、Matlab编程代写代写Matlab编程test_TDPC_encoder

时间:2018-04-18 23:42:38      阅读:261      评论:0      收藏:0      [点我收藏+]

标签:val   ISE   等等   oracle   mat   data   inux   cto   OWIN   

disp(‘===================================================================‘);
disp(‘Test 1‘);
radix = 2;
rows = 0;
columns = 4;
message_vector = [0 1 1 0];
try
encoded_vector = TDPC_encoder(message_vector, radix, rows, columns);

disp(‘FAILED: an error message should be generated for these invalid function parameters‘);
catch err
if isequal(err.identifier,‘Soton:argChk‘)
disp(‘PASSED: the following error message was generated‘);
disp(err.message);
else
disp(‘FAILED: the following error message was generated‘);
disp(err.message);
end
end

disp(‘===================================================================‘);
disp(‘Test 2‘);
radix = 1;
rows = 3;
columns = 3;
message_vector = [0 1 1 0];
try
encoded_vector = TDPC_encoder(message_vector, radix, rows, columns);

disp(‘FAILED: an error message should be generated for these invalid function parameters‘);
catch err
if isequal(err.identifier,‘Soton:argChk‘)
disp(‘PASSED: the following error message was generated‘);
disp(err.message);
else
disp(‘FAILED: the following error message was generated‘);
disp(err.message);
end
end

disp(‘===================================================================‘);
disp(‘Test 3‘);
radix = 2;
rows = 3;
columns = 3;
message_vector = [0 1; 1 0];
try
encoded_vector = TDPC_encoder(message_vector, radix, rows, columns);

disp(‘FAILED: an error message should be generated for these invalid function parameters‘);
catch err
if isequal(err.identifier,‘Soton:argChk‘)
disp(‘PASSED: the following error message was generated‘);
disp(err.message);
else
disp(‘FAILED: the following error message was generated‘);
disp(err.message);
end
end

disp(‘===================================================================‘);
disp(‘Test 4‘);
radix = 2;
rows = 3;
columns = 3;
message_vector = [0 2 1 0];
try
encoded_vector = TDPC_encoder(message_vector, radix, rows, columns);

disp(‘FAILED: an error message should be generated for these invalid function parameters‘);
catch err
if isequal(err.identifier,‘Soton:argChk‘)
disp(‘PASSED: the following error message was generated‘);
disp(err.message);
else
disp(‘FAILED: the following error message was generated‘);
disp(err.message);
end
end

disp(‘===================================================================‘);
disp(‘Test 5‘);
radix = 2;
rows = 3;
columns = 3;
message_vector = [0 1 1 0];
correct_encoded_vector = [0 1 1 1 0 1 1 1 0];
try
encoded_vector = TDPC_encoder(message_vector, radix, rows, columns);

if isequal(encoded_vector, correct_encoded_vector)
disp(‘PASSED‘);
else
disp(‘FAILED: encoded_vector does not match correct_encoded_vector‘);
end
catch err
disp(‘FAILED: the following error message was generated‘);
disp(err.message);
end

disp(‘===================================================================‘);
disp(‘Test 6‘);
radix = 2;
rows = 2;
columns = 5;
message_vector = [0 1 1 0];
correct_encoded_vector = [0 0 1 1 1 1 0 0 0 0];
try
encoded_vector = TDPC_encoder(message_vector, radix, rows, columns);

if isequal(encoded_vector, correct_encoded_vector)
disp(‘PASSED‘);
else
disp(‘FAILED: encoded_vector does not match correct_encoded_vector‘);
end
catch err
disp(‘FAILED: the following error message was generated‘);
disp(err.message);
end

disp(‘===================================================================‘);
disp(‘Test 7‘);
radix = 10;
rows = 3;
columns = 4;
message_vector = [1 3 2 4 1 3];
correct_encoded_vector = [1 3 6 2 4 4 1 3 6 6 0 4];
try
encoded_vector = TDPC_encoder(message_vector, radix, rows, columns);

if isequal(encoded_vector, correct_encoded_vector)
disp(‘PASSED‘);
else
disp(‘FAILED: encoded_vector does not match correct_encoded_vector‘);
end
catch err
disp(‘FAILED: the following error message was generated‘);
disp(err.message);
end

disp(‘===================================================================‘);
disp(‘Test 8‘);
rng(0); % Seed the random number generator
radix = 10;
rows = 5000;
columns = 5000;
message_vector = randi(radix,1,(rows-1)*(columns-1))-1; % Generate a big set of random uncoded symbols
try
tic;
encoded_vector = TDPC_encoder(message_vector, radix, rows, columns);
toc; % Measure the efficiency of the function
disp(‘PASSED‘);
catch err
disp(‘FAILED: the following error message was generated‘);
disp(err.message);
end

本团队核心人员组成主要包括硅谷工程师、BAT一线工程师,国内Top5硕士、博士生,精通德英语!我们主要业务范围是代做编程大作业、课程设计等等。

 

我们的方向领域:window编程 数值算法 AI人工智能 金融统计 计量分析 大数据 网络编程 WEB编程 通讯编程 游戏编程多媒体linux 外挂编程 程序API图像处理 嵌入式/单片机 数据库编程 控制台 进程与线程 网络安全  汇编语言 硬件编程 软件设计 工程标准规等。其中代写代做编程语言或工具包括但不限于以下范围:

C/C++/C#代写

Java代写

IT代写

Python代写

辅导编程作业

Matlab代写

Haskell代写

Processing代写

Linux环境搭建

Rust代写

Data Structure Assginment 数据结构代写

MIPS代写

Machine Learning 作业 代写

Oracle/SQL/PostgreSQL/Pig 数据库代写/代做/辅导

Web开发、网站开发、网站作业

ASP.NET网站开发

Finance Insurace Statistics统计、回归、迭代

Prolog代写

Computer Computational method代做

 

因为专业,所以值得信赖。如有需要,请加QQ:99515681 或邮箱:99515681@qq.com

微信:codinghelp

Matlab代写、代写Matlab、Matlab编程代写代写Matlab编程test_TDPC_encoder

标签:val   ISE   等等   oracle   mat   data   inux   cto   OWIN   

原文地址:https://www.cnblogs.com/codinghelp168/p/8878112.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!