regarding machine learning onramp

sir i am stuck at module 3.3 of machine learning onramp course at task 1.
please do help me to continue with the course.

回答(3 个)

letterds = datastore("*_M_*.txt");
data = read(letterds);
data = scale(data);
plot(data.X,data.Y)
axis equal
plot(data.Time,data.Y)
ylabel("Vertical position")
xlabel("Time")
function data = scale(data)
data.Time = (data.Time - data.Time(1))/1000;
data.X = 1.5*data.X;
end
Logesh B
Logesh B 2022-1-1
preprocds = transform(letterds,@scale)

6 个评论

It keeps coming up with an error message when I enter that code into task 2, is there an alternative code?
I echo the same question. It keeps saying " does the variable preprocds exist?"
same here. Has someone managed to overcome this message?
What is the link for the on-ramp course. If I call it up can I jump to that question or do I have to do all the prior tasks before getting to that?

请先登录,再进行评论。

function data = scale(data)
data.Time = (data.Time - data.Time(1))/1000;
data.X = 1.5*data.X;
data.X = data.X - mean(data.X);
data.Y = data.Y - mean(data.Y);
end

类别

帮助中心File Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by