please help me in plotting this c++ data (which is in txt file) in matlab.i have attached that file
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
this data is to be plotted
Antworten (1)
Chetan Bhavsar
am 21 Apr. 2023
Bearbeitet: Chetan Bhavsar
am 21 Apr. 2023
% Read the data from the file
data = dlmread('Mass_tcm.txt');
% Extract the parameter and target variable values from the data
space = data(:,1);
time = data(:,2);
% Plot the data
plot(time, space, 'o-')
xlabel('space')
ylabel('time')
title('space vs time')
% Plot the data
plot(space, time, 'o-')
xlabel('time')
ylabel('space')
title('time vs space')
Siehe auch
Kategorien
Mehr zu Instrument Control 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!