How i can i link my m file with simulink block?
조회 수: 65(최근 30일)
Helloo guy... i have problem communication between m file with simulink.... i have plot the real time data in figure from arduino that send into matlab by bluetooth. The data is from sensor mpu6050 in angle.... now i have simulink block that have fuzzy logic algorithm...now i want the angle value will be my input for my simulink block...can anybody told how?..i have read about matlab function...but still not understand
Hari Desanur 2016년 11월 16일
You can integrate MATLAB code into your Simulink model using the MATLAB Function Block.
You can execute your MATLAB code from within the model to read the input data from your sensor and then pass this data into your Simulink block.
Refer to this example on how to use a MATLAB function block in your model.