Can we put syms function in matlab function block of simulink
조회 수: 2 (최근 30일)
이전 댓글 표시
function y = fcn(x_storage,K) %#codegen % for a boiler for i=1:1:500 U_star(:,i)=(x_storage(14,i))-(K(1,:,i)*(X_bar(i,:)')); end y = U_star;
In this code X_bar is a symbolic function and finally the U_star will be symbolic.I'm getting a simulink.signal object error which is not resolving even after i uncheck the checkbox of 'Data store name must resolve to Simulink signal object' option.Is there a way to put a symbolic expression in matlab function block ?
댓글 수: 0
답변 (1개)
Dimitris Iliou
2016년 10월 12일
My understanding is that you want to pass a symbolic expression as an input to a ‘MATLAB function block’ and then, get a symbolic expression as an output from that block.
This can be done from the command line by adding the ‘MATLAB function block’ to a model, as explained below:
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!