SlideShare a Scribd company logo
charvec = handles.charvec;
selected_net = get(handles.editNN,'string');
selected_net = evalin('base',selected_net);
result = sim(selected_net,charvec);
[val, num] = max(result);
if num>5
num = num -5;
charvec = ['A','B','C','D','E'];
% In this case, output is character, defined as a number from num
else
charvec = [1, 2, 3, 4, 5];
% Else, output is number, defined from num
end
oknum = charvec(1,num);
set(handles.editResult, 'string',oknum);

More Related Content

PPTX
Csci101 lect08a matlab_programs
PPTX
Session05 iteration structure
PDF
10 2 배열 응용
PPTX
C Programming Language Step by Step Part 5
PDF
The solution manual of c by robin
PPTX
Program presentation
PDF
DOCX
Chapter 8 c solution
Csci101 lect08a matlab_programs
Session05 iteration structure
10 2 배열 응용
C Programming Language Step by Step Part 5
The solution manual of c by robin
Program presentation
Chapter 8 c solution

What's hot (15)

DOCX
C programs
DOCX
Core programming in c
RTF
PPTX
Pointer example
PPT
Pointers in c
DOCX
Let us C (by yashvant Kanetkar) chapter 3 Solution
PPTX
C Programming Example
PDF
Chapter 4 : Balagurusamy Programming ANSI in C
PDF
C Programming Example
PDF
Chapter 3 : Balagurusamy Programming ANSI in C
PPTX
งานนำเสนอ1
PDF
Chapter 5 exercises Balagurusamy Programming ANSI in c
PPTX
C if else
PDF
Let us c(by yashwant kanetkar) chapter 2 solution
DOCX
1 (1)
C programs
Core programming in c
Pointer example
Pointers in c
Let us C (by yashvant Kanetkar) chapter 3 Solution
C Programming Example
Chapter 4 : Balagurusamy Programming ANSI in C
C Programming Example
Chapter 3 : Balagurusamy Programming ANSI in C
งานนำเสนอ1
Chapter 5 exercises Balagurusamy Programming ANSI in c
C if else
Let us c(by yashwant kanetkar) chapter 2 solution
1 (1)
Ad

Viewers also liked (7)

ODT
Exp 8...
ODT
Exp 8...
DOCX
PDF
It 4-yr-1-sem-digital image processing
TXT
Result analysis hek (1)
PDF
5 k z mao
PDF
Exp 8...
Exp 8...
It 4-yr-1-sem-digital image processing
Result analysis hek (1)
5 k z mao
Ad

More from Harish Khodke (6)

PPTX
Big Data_Big Data_Big Data-Big Data_Big Data
PPT
MAP REDUCE PROGRAMMING_using hadoop_a.ppt
PDF
Bootstrap for webtechnology_data science.pdf
PDF
Plsql lab mannual
PDF
PDF
07 top-down-parsing
Big Data_Big Data_Big Data-Big Data_Big Data
MAP REDUCE PROGRAMMING_using hadoop_a.ppt
Bootstrap for webtechnology_data science.pdf
Plsql lab mannual
07 top-down-parsing

Recently uploaded (20)

PPTX
Cloud Computing ppt.ppt1QU4FFIWEKWEIFRRGx
PPTX
DRBC-ROY-ENGINEERING-COLLEGE .pptx
PPTX
Nationalism in India Ch-2.pptx ssssss classs 10
PPTX
mineralsshow-160112142010.pptxkuygyu buybub
PPTX
Understanding Postmodernism Powerpoint.pptx
PPTX
CPAR-ELEMENTS AND PRINCIPLE OF ARTS.pptx
PPTX
Presentation on tradtional textiles of kutch
PPTX
Copy of Executive Design Pitch Deck by Slidesgo.pptx.pptx
PPTX
Lung Cancer - Bimbingan.pptxmnbmbnmnmn mn mn
PPSX
opcua_121710.ppsxthsrtuhrbxdtnhtdtndtyty
PDF
Arts and Crats of Cagayan and Central Luzon.pdf
PPTX
Green and Orange Illustration Understanding Climate Change Presentation.pptx
PPTX
QA PROCESS FLOW CHART (1).pptxbbbbbbbbbnnnn
PPTX
CPAR_QR1_WEEK1_INTRODUCTION TO CPAR.pptx
PPTX
WEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEK
PDF
Triangle of photography : aperture, exposure and ISO
PPTX
Chemical Reactions in Our Lives.pptxyyyyyyyyy
PPTX
G10 HOMEROOM PARENT-TEACHER ASSOCIATION MEETING SATURDAY.pptx
PDF
lebo101.pdf biology chapter important .....
PPTX
National_Artists_for_Dance_with_Examples-1.pptx
Cloud Computing ppt.ppt1QU4FFIWEKWEIFRRGx
DRBC-ROY-ENGINEERING-COLLEGE .pptx
Nationalism in India Ch-2.pptx ssssss classs 10
mineralsshow-160112142010.pptxkuygyu buybub
Understanding Postmodernism Powerpoint.pptx
CPAR-ELEMENTS AND PRINCIPLE OF ARTS.pptx
Presentation on tradtional textiles of kutch
Copy of Executive Design Pitch Deck by Slidesgo.pptx.pptx
Lung Cancer - Bimbingan.pptxmnbmbnmnmn mn mn
opcua_121710.ppsxthsrtuhrbxdtnhtdtndtyty
Arts and Crats of Cagayan and Central Luzon.pdf
Green and Orange Illustration Understanding Climate Change Presentation.pptx
QA PROCESS FLOW CHART (1).pptxbbbbbbbbbnnnn
CPAR_QR1_WEEK1_INTRODUCTION TO CPAR.pptx
WEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEK
Triangle of photography : aperture, exposure and ISO
Chemical Reactions in Our Lives.pptxyyyyyyyyy
G10 HOMEROOM PARENT-TEACHER ASSOCIATION MEETING SATURDAY.pptx
lebo101.pdf biology chapter important .....
National_Artists_for_Dance_with_Examples-1.pptx

rtrtrNew text document

  • 1. charvec = handles.charvec; selected_net = get(handles.editNN,'string'); selected_net = evalin('base',selected_net); result = sim(selected_net,charvec); [val, num] = max(result); if num>5 num = num -5; charvec = ['A','B','C','D','E']; % In this case, output is character, defined as a number from num else charvec = [1, 2, 3, 4, 5]; % Else, output is number, defined from num end oknum = charvec(1,num); set(handles.editResult, 'string',oknum);