How can i put the conditional statement ( If-Then-else) on the specific elements (Rows/columns) of a matrix in Matlab Using Neural Network Tool? Basically I am working on classification using neural Network tool in matlab. My out put only shows in matrix like : output =
1.2723 0.0123 0.0022 But I want the output in statement like "Class1" Or "Class2" i.e. If the matrix is like this then output is this....
For example: I have two different matrices like: output1 =
1.2723 0.0123 0.0022
output2 =
0.2460 -0.0521 1.1062
%I want to set the ranges of the elements on behalf of some conditions like:
If The first element of the first row of matrix Output1 is >= 0.6 and <=1.5
trueclassindices = vec2ind(target) target = ind2vec(trueclassindices)
Example:
>> trueclassindices = [ 1 1 2 4 3 4 ] >> target = full( ind2vec(trueclassindices)) target = 1 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 1 0 1
if
output =[ 0.5142 0.49114 0.18198 0 0.25288 0.13838 0.03653 0.1455 0.4168 0.14434 0.18459 0.066341 0.31642 0.22294 0.26658 0.38809 0.54807 0.35987 0.13285 0.14041 0.13464 0.46757 0.014469 0.43541]
then
assignedclasses = 1 1 2 4 3 4
PS. The unit sum output is a consistent estimate of the input-conditional posterior class probabilities
Matlabsolutions.com provides guaranteed satisfaction with a
commitment to complete the work within time. Combined with our meticulous work ethics and extensive domain
experience, We are the ideal partner for all your homework/assignment needs. We pledge to provide 24*7 support
to dissolve all your academic doubts. We are composed of 300+ esteemed Matlab and other experts who have been
empanelled after extensive research and quality check.
Matlabsolutions.com provides undivided attention to each Matlab
assignment order with a methodical approach to solution. Our network span is not restricted to US, UK and Australia rather extends to countries like Singapore, Canada and UAE. Our Matlab assignment help services
include Image Processing Assignments, Electrical Engineering Assignments, Matlab homework help, Matlab Research Paper help, Matlab Simulink help. Get your work
done at the best price in industry.