Community Profile

photo

MATLAB


Last seen: 1年以上 前 2021 年からアクティブ

Followers: 0   Following: 0

統計

Feeds

表示方法

質問


How to display the nth term where the nth term is found by adding x number previous term?
I am trying to write code that will ask the user to input n and x. The sequence is similar to the fibonacci sequence, but instea...

2年以上 前 | 1 件の回答 | 0

1

回答

質問


How to test if there is a leap year between 2 years?
I want a user to input 2 years, for example 2002 and 2006. I want to test if there is a leap year between these years. With thos...

2年以上 前 | 1 件の回答 | 0

1

回答

質問


How to test to see if a user input is not a number?
y=input('Input a number') if isnumeric(y) ~= 1 disp('The entry is not a number') end I am asking the user to input a n...

2年以上 前 | 1 件の回答 | 0

1

回答

質問


How to test if a number has specific digits in it?
y=input('Input a number') y=num2str(int)-'0'; if y(1:size(y)) == 1 || 4 || 8 disp ('Your number contains the digits 1, 4 ...

2年以上 前 | 1 件の回答 | 0

1

回答