Creating a m-file within a script

조회 수: 2 (최근 30일)
Aaditya Dhruve
Aaditya Dhruve 2019년 10월 4일
답변: Walter Roberson 2019년 10월 4일
I have a Matlab code, in that there is this line which I am unable to understand. Please interpret this command line:
write_fcn('D_matrix.m',{'q','p'},[list_q; param_list],{D_mtx,'D'});
  댓글 수: 2
Rik
Rik 2019년 10월 4일
write_fcn is not a native Matlab function, nor does it seem to exist on the file exchange. The Mind reading toolbox hasn't been published yet, so you'll have to share the function. Also, have a read here and here. It will greatly improve your chances of getting an answer.
Daniel M
Daniel M 2019년 10월 4일
편집: Daniel M 2019년 10월 4일
write_fcn is not a built-in Matlab function. It must be defined somewhere in your code. Without knowledge of that function or the values of the other parameters, we cannot provide much information.
I suggest putting a breakpoint at that line of code and Stepping In to that function to see what it is doing.

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2019년 10월 4일
https://github.com/pamiro/adaptive_manipulator_control/blob/master/write_fcn.m
Part of "Adaptive Control of 4-DoF Robot manipulator".

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

제품


릴리스

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by