필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

define MatLab cell array and call function in Linux command line?

조회 수: 1 (최근 30일)
Kathleen Hupfeld
Kathleen Hupfeld 2017년 10월 11일
마감: Walter Roberson 2017년 10월 11일
In a shell script that I have written for Mac terminal I want to be able to define two cell arrays, subjID and timepoint, and then run a function that takes these two cell arrays as input. In the MatLab GUI, if I type these as three separate lines then it runs fine:
subjID = {'1261'};
timepoint = {'00','01'};
function batchDothejob_NASA02(subjID, timepoint)
However, I am struggling to find syntax examples of how I could format this in my shell script. I have tried a few variations of this so far, but cannot get it to run properly:
matlab -nodesktop -nosplash -r "subjID={'1062'}; timepoint={'00','01'}; 'dojobtest03(subjID,timepoint)'"
  댓글 수: 1
Walter Roberson
Walter Roberson 2017년 10월 11일
Duplicates https://www.mathworks.com/matlabcentral/answers/360861-is-there-a-linux-equivalent-of-cell-arrays-to-input-into-matlab-functions

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by