why is there no lines in in my plot

1 view (last 30 days)
Alexander Juffras
Alexander Juffras on 11 Dec 2020
clear;
clc;
close all;
%input the filename you want to consider
%filename=input('what is the filename you want to consider \n','s');
folder ="C:\Users\Ajuff\CLionProjects\C++ML\C++MLP1\cmake-build-debug\tempvstime.txt";
%load file into variable data
data = load(folder);
for n=1:length(data)
fprintf('%f %f\n',data(n,1),data(n,2));
x=data(n,1);
y=data(n,2);
plot(x,y,'g')
end
why is there nothing in the plot the fprint f prints out values

Answers (0)

Tags

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!