Dear all
I've got a function: function [] = prt_permutation(PRT, n_perm, modelid, path, flag)
PRT is a struct
>> prt_permutation struct ('PRT') 1 'J:\Projects_2\Project_NVPFM\manuscript\results\MVPA\4mm\FABQ_total\' 1
doens't work. How I can pass the struct PRT to the function ?
many thanks! mike

 채택된 답변

Star Strider
Star Strider 2018년 4월 27일

0 개 추천

The single quotes create your ‘PRT’ structure as a character array: 'PRT'.
As best I can determine, this would be the way I would call your function:
prt_permutation(PRT, 1, 'J:\Projects_2\Project_NVPFM\manuscript\results\MVPA\4mm\FABQ_total\', 1)
Note the commas between the arguments.

추가 답변 (1개)

Michael Meier
Michael Meier 2018년 4월 27일

0 개 추천

many thanks!

카테고리

도움말 센터File Exchange에서 Structures에 대해 자세히 알아보기

질문:

2018년 4월 27일

댓글:

2018년 4월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by