how to make given plot smooth

1 回表示 (過去 30 日間)
Najam us Saqib Fraz
Najam us Saqib Fraz 2020 年 10 月 21 日
コメント済み: Najam us Saqib Fraz 2020 年 10 月 22 日
Hello every one!! I am getting a vector named final_integrand for which code is not shown here.final_integrand is a vector,and I need to plot it on x-axis with y-axis as given below.I am getting the plot but it's not smooth.I want to get a smooth plot.Ploting code is given below.Can any body please help !! Thank You
figure(k)
yy=0:5:5*(length(final_integrand)-1);
plot(final_integrand,yy,'r-','LineWidth',2)
title(sprintf('velocity profile for Step No %d',k))
xlabel('velocity in mm/sec','FontSize',10,'FontWeight','bold');
ylabel('y(mm)','FontSize',10,'FontWeight','bold');

採用された回答

VBBV
VBBV 2020 年 10 月 22 日
編集済み: VBBV 2020 年 10 月 22 日
Change the step size of vector yy
yy=0:0.2:5*(length(final_integrand)-1);
But ensure that final_integrand is also the same size of vector yy for plottinhg.
It means you have to calculate the integral values for the function having the same size as newly defined vector yy
  1 件のコメント
Najam us Saqib Fraz
Najam us Saqib Fraz 2020 年 10 月 22 日
i cannot change the size of final_integrand......

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSmoothing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by