How to convert a string to a variable useable in a script?
1 次查看(过去 30 天)
显示 更早的评论
Hello, So The idea is to construct a string of the name of a variable (network class) that already exists in the workspace, and then calling that string for a specific input would output the same result as if it was done directly by the original variable.. Here is my code: Z11='haar_net_scg_in1_2obsrv'; yfit11 = eval(Z11(Ind_vald')); So the variable is called haar_net_scg_in1_2obsrv it's a network (ANN) and I want to use it to predict the class of an iput Ind_vald' . but I always get this error: Subscript indices must either be real positive integers or logicals. Knowing if I apply the network directly I get the results.. I really need this to work because I have a for loop with changing network names that I need to make them predict the class of some inputs Thanks
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!