photo

TSmith


Last seen: 5년 초과 전 2018년부터 활동

Followers: 0   Following: 0

통계

MATLAB Answers

8 질문
0 답변

순위
288,915
of 301,496

평판
0

참여
8 질문
0 답변

답변 채택
87.5%

획득한 표
0

순위
 of 21,302

평판
N/A

평균 평점
0.00

참여
0 파일

다운로드 수
0

ALL TIME 다운로드 수
0

순위

of 174,859

참여
0 문제
0 답안

점수
0

배지 수
0

참여
0 게시물

참여
0 공개 채널

평균 평점

참여
0 하이라이트

평균 좋아요 수

  • Thankful Level 3

배지 보기

Feeds

보기 기준

질문


Can someone give an example of a for loop for this problem?: Find the sum of 30 numbers that increments by 3. The starting number is 4. Thanks!
Just a simple for loop please. Nothing too complicated. Thank you again.

7년 초과 전 | 답변 수: 2 | 0

2

답변

질문


How do I implement this function? What is an example I can use?
function h = pythagorean(legs) % hypotenuse = pythagorean(legs) h = (legs(1)^2 + legs(2)^2)^ 0.5; end

7년 초과 전 | 답변 수: 1 | 0

1

답변

질문


How do you finish this for loop? It is telling me to define the variable "total", but what do I put in order for it to flow with the loop?
for i = 1:5 number = input('Enter a number: '); total = total + number; end fprintf('The sum of the numbers is %.2f\n', to...

7년 초과 전 | 답변 수: 1 | 0

1

답변

질문


I am trying to get this function to work properly. I am wanting it to add together given values. What is wrong with my syntax? Thank you.
function result = findSum(a,b) result = a + b a=3 b=4

7년 초과 전 | 답변 수: 1 | 0

1

답변

0

답변

질문


Is there a more simple way to express this? How can I simplify everything under "case 2"? Is there an alternative to writing out everything under case 2?
clear clc month = input('Enter numerical value of month'); switch month case {9, 4, 6, 11} days = 30; ca...

7년 초과 전 | 답변 수: 1 | 0

1

답변

질문


I know this is an invalid expression on line 9. How can I correct this error? Also, what error is this exactly? Matlab displayed multiple possibilities when trying to correct it.
clc clear x=input('Please enter a number:'); switch x case 0 disp("You have entered 0"); case 2 d...

7년 초과 전 | 답변 수: 1 | 0

1

답변

질문


I keep getting the error "Error using input The first argument to INPUT must be a character vector." What does this mean? I've tried searching for it, yet cannot figure it out.
clc clear hello = input("Please enter a number"); switch hello case 0 disp("You have entered 0"); case 2...

7년 초과 전 | 답변 수: 1 | 0

1

답변