フィルターのクリア

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 Center および File ExchangeFinancial Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by