locating a cell from two inputs
이전 댓글 표시
if (Variable1 == 'B')
Variable3 = input('Please enter a date after 22/01/2020 in the format dd-mm-yyyy\n');
Variable4 = input('Please select a location to be analysed: China, UK, South Korea, Spain, Italy, USA\n ');
if (Variable4 == 'China')
readcell('dailytotal.csv', 'Variable3', 'China')
end
What would be the code required to take a user input of a date and a country and have it output the value from a table the corresponds to these two inputs?
I have the data in matlab as both a table and individual column vectors if that makes a difference.
I've included my attempt (it continues for the rest of the countries.)
I'm getting the error 'Unkown parameter 'Variable3'
Thanks
댓글 수: 2
Ameer Hamza
2020년 5월 9일
Can you share the format of your table? In what format the date and country values are shored?
Lauren Hough
2020년 5월 9일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Other Formats에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!