Face recognition in simulink using eigen face method. Loading eigen faces matrix to simulink.

I have to do face recognition in simulink , matlab would have been lot easier for me. I aim to do it using eigen face method. In that i have to load the eigen faces matrix, and a mean column vector(pre calculated in matlab). i have to load these into simulink workspace. I have checked the simulink from workspace block it inputs the values in time format.but these are one time inputs and i ll be using them in embedded matlab function block.i have tried loading them to model workspace by importing the mat file in model explorer. But i am lost here i dont know how to call them in embedded matlab function block.I ll have to update values of the loaded variables.so can you please help me with loading the mat file to simulink and using their values in embedded matlab function block. and update them during the simulation.
Thanks in advance

답변 (1개)

If you have time-varying data, you need to use either the From Workspace block or the Data Import/Export Pane to import the data via an Inport block - both blocks will let you bring your MATLAB data as a Simulink signal into your model.
Since it appears you have Constant inputs (ie. same data is used at every time step), you can simply use the Constant block, and enter the name of your workspace variable as the "Constant value" in the dialog.

댓글 수: 1

I'm trying to do my own object detector but using the function vision.cascadeojectdetector,this function is not supported by simulink and I want to know if there is a way to import this variables from matlab to simulink, this is part of the code that i need to implement in the raspberry pi
meDetector = vision.CascadeObjectDetector('Data_90_HOG_FAR_0.2.xml'); bbox = step (meDetector, out); detectedImg = insertObjectAnnotation(out, 'rectangle', bbox, 'Data_90');

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

카테고리

도움말 센터File Exchange에서 Prepare Model Inputs and Outputs에 대해 자세히 알아보기

질문:

2012년 5월 21일

댓글:

2014년 3월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by