How to plot step function [x]/x Correctly with limit

Did you mean, this?

using Plots

saw_blade(x) = floor(x) / x
xspan = 0.01:0.01:10
plot(xspan, saw_blade.(xspan), legend = :none)

1

2 Likes