필터 지우기
필터 지우기

How can i match a value in variable with data stored in database?

조회 수: 4 (최근 30일)
Rya
Rya 2017년 5월 17일
댓글: Rya 2017년 5월 31일
I have created automated number plate detection application after no plate extraction I have created database which holds record of registered car no only, Now i want to check whether the extracted number lies within the database or not
  댓글 수: 2
Guillaume
Guillaume 2017년 5월 17일
I have created database which holds record of registered car no
In order to answer your question. We would need to know what form that database takes. Normally when somebody says database, they mean something managed by MySQL, SQL Server, Oracle or similar. At a stretch, it's something stored in Excel.

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

채택된 답변

MathReallyWorks
MathReallyWorks 2017년 5월 17일
Hello Dear,
Use this code with some changes as per your requirement:
clc;
clear all
X = [1 323 2 44 3 66 77 88 2 1 2 3 34 56 78 5 7 4 44 28]; %DataBase
b = input('enter the number you want to check:');
n = find(X==b);
A = isempty(X(n));
if A==1
disp('The number is not present in database');
else
disp('The number is present in database');
end
  댓글 수: 7
MathReallyWorks
MathReallyWorks 2017년 5월 21일
Hello Johairia,
Please attach your code and some similar database if you don't want to disclose original one. It will be easy for us to solve your problem efficiently.
Rya
Rya 2017년 5월 31일
here is the code run main.m first

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

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by