plot the raw data and model on the same plot
    7 ビュー (過去 30 日間)
  
       古いコメントを表示
    
please help with this. I dont know how to display both on same plot

0 件のコメント
回答 (1 件)
  Jyothis Gireesh
    
 2020 年 2 月 11 日
        The following code may be of help in displaying the raw data and model on the same plot.
clear;
close all;
t = [10 12 20 25 40 50];
tensileStr = [8 18 20 34 44 46];
tensileStrCalc = 2.94 + 0.952*t;
plot(t, tensileStr,'o', t, tensileStrCalc,'-'); 
xlabel('Time');
ylabel('Tensile str (TS, MPa)');
legend('Tensile str', 'Tensile Str Calculated', 'Location', 'southeast');
title('Tensile str vs Time plot');
0 件のコメント
参考
カテゴリ
				Help Center および File Exchange で Line Plots についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

