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!

1 件のコメント

Star Strider
Star Strider 2018 年 4 月 27 日
As always, my pleasure!

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeStructures についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by