문제를 풀었습니다


Replace secondary diagonal elements of a square array
Replace all the secondary diagonal elements of the square array A with the number n Example: A = [1 2 3 4 5 6 ...

대략 8년 전

문제를 풀었습니다


Sum of combinations
Input: *X = 40*, *Y = [40 20 10 4]* Output: *Z = [1 0 0 0; 0 2 0 0; 0 1 2 0; 0 1 1 3; 0 1 0 5; 0 0 4 0; 0 0 3 3; 0 0 2 5; 0 ...

대략 8년 전

문제


Sum of combinations
Input: *X = 40*, *Y = [40 20 10 4]* Output: *Z = [1 0 0 0; 0 2 0 0; 0 1 2 0; 0 1 1 3; 0 1 0 5; 0 0 4 0; 0 0 3 3; 0 0 2 5; 0 ...

대략 8년 전 | 1 | 솔버 수: 18

문제를 풀었습니다


Determine whether the number is multiple of 3 or not
Let a=6 and as 6 = 2*3 which means 6 is multiple of 3; return true if a is multiple of 3,otherwise false.

8년 초과 전

문제를 풀었습니다


number of groups
In a classroom, *n* students work on a special project and the other students work in groups of five. If there are 18 students i...

8년 초과 전

문제를 풀었습니다


Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

8년 초과 전

문제를 풀었습니다


Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

8년 초과 전

문제를 풀었습니다


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

8년 초과 전

문제를 풀었습니다


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

8년 초과 전

문제를 풀었습니다


Determinants
Given a square matrix(A), find the determinant(d). For example: A = [1,3;4,5] d = 1*5-4*3 = -7

8년 초과 전

문제를 풀었습니다


Find the minimal value in N*N Matrix
Suppose that we have N by N matrix, we try to find the minimal value in that matrix. examples: Input A=[1 2 3 5 6;52 58 56 45...

8년 초과 전

문제를 풀었습니다


Is matlab fun?
Returns 'yes' no matter the input.

8년 초과 전

제출됨


Represented a positive integer number as a sum of multiple positive integer numbers.
A positive integer number N is represented as a sum of K positive integer numbers.

거의 9년 전 | 다운로드 수: 1 |

5.0 / 5

질문


Which method is faster?
1) a(1,2).last_index=a(1,2).last_index+1; a(1,2).multiple_vars(a(1,2).last_index) = value1; 2) a(1,2).multiple_v...

대략 9년 전 | 답변 수: 1 | 0

1

답변

문제를 풀었습니다


create a square matrix
create a [n*n] matrix. example: mat(4)= [ 1 4 9 16 4 4 9 16 9 9 ...

대략 9년 전

문제를 풀었습니다


Circle area using pi
Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.

9년 초과 전

질문


How to draw special figures like this:
<<http://www.teach-ict.com/gcse_computing/ocr/213_software/utilities/miniweb/images/harddisk.jpg>> Suppose i have 3(N) boolea...

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

1

답변

답변 있음
Can anyone help me with the PID tuning using #Particle Swarm Optomization for Load Frequency Control of 3 area system??
start with <http://www.mathworks.com/matlabcentral/fileexchange/43541-particle-swarm-optimization--pso- THIS>

9년 초과 전 | 0

답변 있음
I am in the need of your help regarding implementation of PSO MATLAB code for a two area interconnected power system for LOAD FREQUENCY CONTROL.
start with <http://www.mathworks.com/matlabcentral/fileexchange/43541-particle-swarm-optimization--pso- THIS>

9년 초과 전 | 0

답변 있음
I am working on control of nonlinear inverted pendulum using PID and LQR.Now i want to apply PSO on PID .How PSO toolbox can use in this problem or if anybody have coding please answer
start with <http://www.mathworks.com/matlabcentral/fileexchange/43541-particle-swarm-optimization--pso- here>

9년 초과 전 | 0

문제를 풀었습니다


Replace values out of an interval with the lower or upper values
For a vector or matrix X and an interval [n1,n2], the function replace every element of x inferior to n1 by n1, and every elemen...

9년 초과 전

질문


strfind first occurrence.
http://in.mathworks.com/help/matlab/ref/strfind.html#btvz00e-2_1 str = 'Find the starting indices of a pattern in a character...

9년 초과 전 | 답변 수: 1 | 1

1

답변

문제를 풀었습니다


Crunch that matrix!
You are given an M x N matrix. Write a script that will compress this matrix into an M x (N/3) matrix, where each of the terms ...

9년 초과 전

문제를 풀었습니다


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

9년 초과 전

문제


generate number in particular way
A = [1 5 2 7]; MAX = 10; generate a array Y = [1 2 2 2 2 2 3 3 4 4]; i.e. total eleme...

9년 초과 전 | 1 | 솔버 수: 116

문제


Detect pair of equal values in a Matrix
A 2D matrix of 2 rows and N columns with random integer numbers. A = [3 1 2 4 6 6 7; 7 3 2 1 5 2 4] ...

9년 초과 전 | 2 | 솔버 수: 73

질문


How many times this for loop will execute
count =0; for i=1:5 count = count +1; if true i=i+1; end end I want to skip som...

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

1

답변

문제를 풀었습니다


Eliminate Outliers Using Interquartile Range
Given a vector with your "data" find the outliers and remove them. To determine whether data contains an outlier: # Identi...

10년 초과 전

문제를 풀었습니다


Give prime Numbers upto n
You are given a input number x; print all the prime numbers less than equal to x.

10년 초과 전

문제를 풀었습니다


Repeat string n times - 2
This is the two variable version of <http://www.mathworks.com/matlabcentral/cody/problems/42482-repeat-string-n-times Repeat str...

10년 초과 전

더 보기