Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4068618
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T16:23:51+00:00 2026-05-20T16:23:51+00:00

My project is to recognize ancient coins. I am using Matlab. I already have

  • 0

My project is to recognize ancient coins. I am using Matlab. I already have a feature file which contains both inputs and output. I have trained 3 types of coins using newff and net had been saved. For the three types of coins, I used 01, 10 and 11 as targets. Now I want to use that trained net for testing. I have test images too. I coded like this:

load net.mat;
load features.mat;
testInputs = Features';
out = sim(net,testInputs);
[dummy, I]=max(out);

Value of I is using to check the coin type. If I is 1 then type 1, if 2 then type 2 and if 3 type 3. Am I correct? I hard coded these 1,2,3 values because I gave targets as 01, 10 and 11.

if (I == 2)
    fprintf('Type1\n');
elseif (I == 1)
    fprintf('Type2\n');
elseif (I == 3)
    fprintf('Type3\n');
else
    fprintf('undefined\n');
end

Although now I input 3 types of test coin images, it either displays 1 or 2 for the value I. But not 3. Even when I am using the same set of images which are used for training, it also gives either 1 or 2 for the value I.

Can u please help me?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T16:23:52+00:00Added an answer on May 20, 2026 at 4:23 pm

    The second argument of max() will give you the index of the neuron with higher output. If you have only two neurons, which is the case if your targets are [0,1], [1,0] and [1,1] (note only two elements on every target) there will be no way to get a 3 out of that max(). You should try [0,0,1], [0,1,0] and [1,0,0].

    On a side note, if you are using tansig as the activation function of the neurons, consider using -1 instead of 0 on the targets, so you can better exploit the non-linearity. Something like [-1,-1,1], [-1,1,-1], [1,-1,-1].

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have imported project with Maven. But Subclipse didn't recognize that project already in
I have a project in visual c++ 2010, which contains preprocessor directives in a
I have an MVC3 project using the Entity Framework model in which I've marked
I need to complete the demo project which aims to recognize teeth on the
I have a project to recognize the footprint of animals. It is similar to
I have a project in Eclipse (Indigo but similar in Helios) which has files
I have a visual studio project which is an ASP.NET MVC project, however it
I have a project of Optical Character Recognition in MATLAB and i need your
I have an OCR project, but it works good only with images in which
I have a test project using Log4net. When I add a class library (from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.