Using eval - REALLY need help please
显示 更早的评论
I'm working on some homework for school and one of the questions I have is as following:
4. Find the column that the heart rate(‘HR’) is in by searching through the data using Matlab and assign the data to its name using eval.
I've been reading through some other posts and many people are recommending not using eval, but my professor specifically said to use it. I also noticed that many codes with eval require an input of a string. I have no idea how I would use that. The Heart rate data, I've already found the location of. It's in the 24th column and the data runs from 4:end,24 in the data matrix. Is there a way I can use eval to perform what this question is asking with or without the input (preferable without)
Thanks!
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!