How to run encoder.m file .following message appears: Undefined function or variable 'raw_message'? appears as i press run button

조회 수: 1 (최근 30일)
How to run encoder.m file downloaded from the matlab website .
Undefined function or variable 'raw_message'? appears as i press run button
  댓글 수: 2
Image Analyst
Image Analyst 2018년 12월 13일
Attach your code, AFTER you read this link.
Either pass in raw_message via the argument list, or assign it a value before you try to use it.
Harshit verma
Harshit verma 2020년 10월 15일
%% Manchester Encoding
clear all; close all; clc;
len_input = 20;
menchester_input = floor(1.8*rand(1,len_input));
for i = 1:1:len_input
if menchester_input(i) == 1
menchester_output(2*(i-1) + 1 : 2*(i-1) + 2) = [0 1];
else
menchester_output(2*(i-1) + 1 : 2*(i-1) + 2) = [1 0];
end
end
[Menchester_Decode_out] = Menchester_Decoding(menchester_output);

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by