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
No products are associated with this question.
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.