I am beginner simulink how can i solve this error?
조회 수: 1 (최근 30일)
이전 댓글 표시

I want to do u = y + v as I type the matlab function directly in the form of y + v == u and I get the following error. How can I fix it.

댓글 수: 0
답변 (1개)
Ameer Hamza
2020년 4월 30일
Bahadir, as I mentioned on your other question. MATLAB does not automatically know how do you want to convert one number to two numbers. You need to specify how to you want to get y and v from the u value. MATLAB does no know what are y and v in the equation: y + v == u. == operator is used in MATLAB for comparison, not to assign a value.
y and v are the output of the block, and u is input. You need to write something like this inside the MATLAB function block.
y = u/2;
v = u/2;
댓글 수: 4
Ameer Hamza
2020년 5월 1일
Such a project is clearly beyond the scope of websites like MATLAB Answers. We can answer questions related explicitly to MATLAB and Simulink but such a project requires much broader expertise. I suggest you break down your problem into small parts and create new questions only when you face a problem, specifically related to MATLAB.
참고 항목
카테고리
Help Center 및 File Exchange에서 Event Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!