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.

Answers (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

2 Comments

sarthak bagadi
sarthak bagadi on 26 Oct 2022
Edited: sarthak bagadi on 26 Oct 2022
thanks bro!
can you please give answer for task 4

Sign in to comment.

Logesh B
Logesh B on 1 Jan 2022
preprocds = transform(letterds,@scale)

6 Comments

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.
same here. Has someone managed to overcome this message?
Image Analyst
Image Analyst on 13 Feb 2024
Edited: Image Analyst on 13 Feb 2024
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?

Sign in to comment.

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

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Asked:

on 24 May 2020

Answered:

on 10 Nov 2024

Community Treasure Hunt

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

Start Hunting!