please help me in plotting this c++ data (which is in txt file) in matlab.i have attached that file

조회 수: 5 (최근 30일)
this data is to be plotted

답변 (1개)

C B
C B 2023년 4월 21일
편집: C B 2023년 4월 21일
% 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')

카테고리

Help CenterFile Exchange에서 Financial Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by