Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
why can't i asscess first element array input to simulink from workpace
조회 수: 2 (최근 30일)
이전 댓글 표시
hi ! i have question that can be essily but very hard to understand to me i have create model that using from workpace block to put array variable 'a' from simulink (a is array [1 2 3 4 5 6 ] as you can see , i have send you along with imagine matlab function that i write to assign fisrt element array a for element output but ,instead of scope display 1 it alway display 2 this is my this function
% code
function element = handle_vb( arr_anh) %%a is argument for arr_anh
element=arr_anh(1);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/163784/image.png)
end very thank for help !!
댓글 수: 0
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!