placing my file in matlab code
조회 수: 1 (최근 30일)
이전 댓글 표시
hello,
I am going to run a matlab code as I attached, I have a txt file as input for algorithm like below
> head(mycounts1[,1:4])
AT1G01060 AT1G01170 AT1G01180 AT1G01260
AT1G01060 1 0 0 0
AT1G01170 0 1 0 0
AT1G01180 0 0 1 0
AT1G01260 0 0 0 1
AT1G01380 0 0 0 0
AT1G01490 0 0 0 0
whenever I upload my file and run the code Get error.. how i can place my file or tell the code run on my file please?
thank you so much
댓글 수: 2
답변 (1개)
Walter Roberson
2016년 1월 11일
You cannot invoke that code by pressing the "Run" button. You need to invoke that code from the command line, passing in the name of the matrix that you imported. For example if you imported MyData1138 then you would go to the command line and give the command
result = ND(MyData1138)
참고 항목
카테고리
Help Center 및 File Exchange에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!