I can't load my own dataset!
1 次查看(过去 30 天)
显示 更早的评论
I am having a feature vector of 1X83 and a target matrix of 5X83 and both of them are in .mat format i wanted to creat a dataset that contains them just like this: [ x, t ] = iris_dataset;
so how to create a dataset like iris_dataset?
A little help will be very appreciated please
3 个评论
采纳的回答
Walter Roberson
2016-10-7
function [x, t] = digit_dataset
datastruct = load('MatFileThatYourDataIsIn.mat');
x = datastruct.x;
t = datastruct.t;
end
5 个评论
Greg Heath
2016-10-8
I still don't see why you feel it is absolutely necessary for you to have to use the first and last commands, i.e., use a function.
It's just an option. Correct?
Greg
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Pattern Recognition and Classification 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!