Creating a m-file within a script

2 Ansichten (letzte 30 Tage)
Aaditya Dhruve
Aaditya Dhruve am 4 Okt. 2019
Beantwortet: Walter Roberson am 4 Okt. 2019
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 Kommentare
Rik
Rik am 4 Okt. 2019
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 am 4 Okt. 2019
Bearbeitet: Daniel M am 4 Okt. 2019
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.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

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

Weitere Antworten (0)

Tags

Produkte


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by