please help me in plotting this c++ data (which is in txt file) in matlab.i have attached that file
2 ビュー (過去 30 日間)
古いコメントを表示
this data is to be plotted
回答 (1 件)
Chetan Bhavsar
2023 年 4 月 21 日
編集済み: Chetan Bhavsar
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 Exchange で Instrument Control Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!