Check for missing argument or incorrect argument data type in call to function 'scale' .what is the problem and how to correct it? Based on machine learning on ramp course.

5 Ansichten (letzte 30 Tage)
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")
  1 Kommentar
VISHAL
VISHAL am 30 Mai 2020
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

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 22 Mai 2020
Bearbeitet: KSSV am 24 Mär. 2021
scale() is not defined for numeric arrays, only for polyshape objects.
You probably want rescale()

Kategorien

Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by