Receiving Dot Indexing is not supported for variable of this type with the plsregress function
23 次查看(过去 30 天)
显示 更早的评论
采纳的回答
Shreeya
2024-9-4,16:07
Hi
I faced a similar issue with my code after migrating to MATLAB R2023b. A workaround to circumvent this problem would be to utilize a "cvpartition" object with 5 folds. Below is an example of how you can implement this:
x = randn(250, 50);
y = randn(250, 1);
cv = cvpartition(250, "KFold", 5);
plsregress(x, y, 32, 'CV', cv, 'MCReps', 10);
Let me know if this helps
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!