photo

champions2015


2017년부터 활동

Followers: 0   Following: 0

통계

MATLAB Answers

7 질문
1 답변

순위
148,653
of 300,813

평판
0

참여
7 질문
1 답변

답변 채택
85.71%

획득한 표
0

순위
 of 21,086

평판
N/A

평균 평점
0.00

참여
0 파일

다운로드 수
0

ALL TIME 다운로드 수
0

순위

of 171,169

참여
0 문제
0 답안

점수
0

배지 수
0

참여
0 게시물

참여
0 공개 채널

평균 평점

참여
0 하이라이트

평균 좋아요 수

  • Thankful Level 3
  • First Answer

배지 보기

Feeds

보기 기준

질문


Whenever I run this function, all is good if A(i)==N. However when it is not found, the function seems to run super slowly that i never end up getting the output of 0. Do I need to preallocate somewhere? If so, what would it be?
"Write a function, Finder, that receives an array of numbers A and a number N and returns the position of N within the array A o...

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

1

답변

질문


In this question, would dig be 2 inputs, such as 91 and 99? And lim can be any number the user calls?
A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 ...

8년 초과 전 | 답변 수: 4 | 0

4

답변

질문


For the second part of the question, I keep on getting the following error. I am assuming this is because I need to somehow create a cell inside the cell corresponding to Out? What would be the simplest way of doing this?
An n-by-n square logical matrix can be represented by a cell vector of n elements where the kth element corresponds to the kth r...

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

1

답변

답변 있음
An n-by-n square logical matrix can be represented by a cell vector of n elements where the kth element corresponds to the kth row of the matrix. Each element of the cell vector is a row vector of positive integers in increasing order representing th
Thanks Stephen! I applied your code which helped me understand what the function was doing, and what the question was asking! I ...

8년 초과 전 | 0

질문


whenver i insert this if statement inside a for loop, i get an error. Could someone please explain why? Much appreciated!
if class(input(i))=='double' in this case, i want to check if the value of input(i) in the string 'input' is a number &nbs...

8년 초과 전 | 답변 수: 3 | 0

3

답변

질문


An n-by-n square logical matrix can be represented by a cell vector of n elements where the kth element corresponds to the kth row of the matrix. Each element of the cell vector is a row vector of positive integers in increasing order representing th
I don't exactly understand what the question is asking here, despite reading it over and over multiple times. Is the input the n...

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

2

답변

질문


Write a function called spiral_diag_sum that takes an odd positive integer n as an input and computes the sum of all the elements in the two diagonals of the n-by-n spiral matrix.
function [ MySum ] = spiral_diag_sum( n ) MySum=1; if n==1 return end for i=3:2:n mult...

8년 초과 전 | 답변 수: 4 | 0

4

답변