How to stretch cos fit

3 views (last 30 days)
Jaroslav Zadnik
Jaroslav Zadnik on 9 Apr 2021
Commented: Walter Roberson on 10 Apr 2021
I need stretch cos function to the borders. The question is - how?

Answers (2)

Jaroslav Zadnik
Jaroslav Zadnik on 9 Apr 2021
script:

Walter Roberson
Walter Roberson on 9 Apr 2021
axes([0 0.75 0.75 1.03]); %must do this before plot
h(1) = scatter(xData, yData, 'b+', 'DisplayName', 'data');
hold on
h(2) = plot(fitresult); %when no arguments are given, plots for current axes limits
hold off
  6 Comments
Jaroslav Zadnik
Jaroslav Zadnik on 10 Apr 2021
When I set pointsize = 60, marker is bigger. But marker in legend is still small
Walter Roberson
Walter Roberson on 10 Apr 2021
Because marker sizes can be set point by point for scatter(), it does not seem to reliably set the legend marker size even if the size is the same for all of the entries.
Please see the below for a work-around involving plotting extra hiidden objects:

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!