문제를 풀었습니다


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...

거의 14년 전

문제를 풀었습니다


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

거의 14년 전

문제를 풀었습니다


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

거의 14년 전

문제를 풀었습니다


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

거의 14년 전

문제를 풀었습니다


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

거의 14년 전

문제를 풀었습니다


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

거의 14년 전

문제를 풀었습니다


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

거의 14년 전

문제를 풀었습니다


Count from 0 to N^M in base N.
Return an array of numbers which (effectively) count from 0 to N^M-1 in base N. The result should be returned in a matrix, with ...

거의 14년 전

문제를 풀었습니다


Is my wife right?
Regardless of input, output the string 'yes'.

거의 14년 전

문제를 풀었습니다


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

거의 14년 전

문제를 풀었습니다


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

거의 14년 전

문제를 풀었습니다


Add two numbers
Given a and b, return the sum a+b in c.

거의 14년 전

문제를 풀었습니다


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

거의 14년 전

답변 있음
Store value into matrix, and then perform calculation upon each element
I guess you want to do X(i) = betainv(u(i),2,3); Y(i) = logninv(u(i),5,3); you either missed the u(i) index, or y...

거의 14년 전 | 0

| 수락됨

답변 있음
converting cell to matrix
Straightforward answer to your question title may be - look for cell2mat function in matlab. But maybe I am completely wrong and...

거의 14년 전 | 0

답변 있음
reset(symengine) does not work
Bug solved under bug ID: 1-GLMOLN. Matlab documentation should be updated + necessity to call 'clear mex' after calling reset.

거의 14년 전 | 0

| 수락됨

질문


reset(symengine) does not work
If I do reset(symengine); inmem; I still see |symengine| and |mupadengine.mupadengine| in the memory. Does it mean t...

거의 14년 전 | 답변 수: 1 | 0

1

답변

질문


Memory leak in symbolic toolbox?
If I try this simple code: W = 1/100*ones(100); W = sym(W); x = rand(100,1); for i=1:10000 x = double(W*x); end ...

거의 14년 전 | 답변 수: 0 | 0

0

답변

제출됨


Intersection of linear subspaces
Function for finding the basis of the intersection of N subspaces

14년 초과 전 | 다운로드 수: 1 |

5.0 / 5

제출됨


Plotting planes and their intersection in 3D
Function 'plotPlanes' plots planes/lines in 3D; 'plotIntersection' plots intersection of the planes.

14년 초과 전 | 다운로드 수: 1 |

0.0 / 5
Thumbnail

제출됨


Graph adjacency matrix to incidence matrix
Conversion from graph adjacency matrix to incidence matrix.

14년 초과 전 | 다운로드 수: 1 |

3.5 / 5

질문


setXmlStandalone bug?
Hi, I have this problem. If I make this in matlab --- docNode = com.mathworks.xml.XMLUtils.createDocument('root'); docNode.se...

거의 15년 전 | 답변 수: 2 | 0

2

답변