Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Finding component of cell array
조회 수: 1 (최근 30일)
이전 댓글 표시
If I have the cell array,
{'File 1' 'Tim' [100]; 'accounts' 'Jon' [120]; 'File three' 'Board' [130]}
in which the user then preforms
title_request=input('Please enter the title of the file that you are looking for: ','s');
in which the first entry in each row is the file title, the second is the author and the third is the page count, how would I create a loop to look through the cell array until it reaches the title that the user has inputted (where the the user input is case insensitive)
This information needs to then be displayed as below, for which ever title they select
return={'title' 'author' [page count]};
댓글 수: 1
Walter Roberson
2018년 4월 26일
It appears that you rephrased this in https://www.mathworks.com/matlabcentral/answers/397435-searching-a-cell-array-for-a-string which has an answer.
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!