# code-block-pro/1.27.4/build/shiki/samples/matlab.sample

Code Block Pro – Beautiful Syntax Highlighting, version 1.27.4. 23 lines.

- Page: https://pluginprobe.com/plugins/code-block-pro/1.27.4/code/build/shiki/samples/matlab.sample
- Raw: https://pluginprobe.com/plugins/code-block-pro/1.27.4/raw/build/shiki/samples/matlab.sample
- Modified: 2023-09-03T01:04:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/code-block-pro/1.27.4/code/build/shiki/samples/matlab.sample#L10-L20`.

```


clear
number = input('Give an integer: ');
remainder2 = rem(number,2);
remainder3 = rem(number,3);

if remainder2==0 & remainder3==0
    'Your number is divisible by both 2 and 3'
else
    if remainder2==0
        'Your number is divisble by 2 but not by 3'
    else
        if remainder3==0
            'Your number is divisible by 3 but not by 2'
        else
            'Your number is not divisible by either 2 or 3'
        end
    end
end

% From https://www.math.colostate.edu/~yzhou/course/matlab_doc/matlab_programming_intro.html

```
