How do I fprintf certain numbers from a matrix?

function [ ] = leapyears(startyear,endyear) arrayYears = [startyear:endyear] checkYears = rem(arrayYears,4)
After this is run it gives me an array. I want to fprintf the inputs that give me 0. how would I go about doing that?

 Accepted Answer

More Answers (0)

Categories

Find more on Mathematics in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!