How do i write this or represent this on matlab editor , i am new to it

1 view (last 30 days)
If 5-mod(G,5)<=2 Then
G= 60
CG = G + 5-mod(G,5) else
CG = ceil(G,1).

Answers (1)

Voss
Voss on 6 May 2022
if 5-mod(G,5)<=2
G= 60
CG = G + 5-mod(G,5)
else
CG = ceil(G,1)
end

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!