Community Profile

photo

Jacob Boulrice


Last seen: nästan 2 år ago Active since 2022

Statistics

  • Thankful Level 2

View badges

Content Feed

View by

Question


How to make a function that outputs true or false (logical) if a number inputted is in a predetermined vector?
% Here is my code: function [x] = testLucky1 % testLucky(x) - determine whether x is a lucky number % return true (1) if x ...

ungefär 2 år ago | 2 answers | 0

2

answers

Question


How to output individual digits from a user input of 2 digit numbers?
% This is my code so far. Say n=10, output would be: "thanks, the digits are 10 and 10" % In this case, I want the output to ...

ungefär 2 år ago | 2 answers | 0

2

answers