Hello Pinco,
The link provided does not work. However, to create a polar plot of the equation provided: [ M_s = 1 - t \sin(t) - 0.5 \cos(t) ], the following code can be used:
ts = linspace(0, 2*pi, 500);
Ms = 1 - ts .* sin(ts) - 0.5 * cos(ts);
title('Polar Plot of M_s = 1 - t \cdot sin(t) - 0.5 \cdot cos(t)');
Output:
There can be additional customizations like adding grid lines, setting axis limits, or changing the line style and colour. Here's an example with these additional customizations:
ts = linspace(0, 2*pi, 500);
Ms = 1 - ts .* sin(ts) - 0.5 * cos(ts);
polarplot(ts, Ms, 'r', 'LineWidth', 1.5);
title('Polar Plot of M_s = 1 - t \cdot sin(t) - 0.5 \cdot cos(t)');
Output:
Notes:
- Ensure that the function to be plot matches with the one intended.
- Adjust the radial limits "ax.RLim" as needed to ensure that the plot is displayed correctly.
- Further customizations are possible using properties of "polarplot" and "axes" objects.
Hope this helps!