질문


How can I remove parentheses in a symbolic expression and perform the operations for the coefficients?
I cannot use parentheses and / operations in my code because PHClab can't interpret them. So I need to remove them. How can I ma...

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

1

답변

문제를 풀었습니다


Who knows the last digit of pi?
There is only one man who knows the last digit of pi, who is that man? Give the name of that man, who, by popular believe, can ...

거의 12년 전

문제를 풀었습니다


Arrange vector in ascending order
Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];

거의 12년 전

제출됨


Phase Plane Analysis
GUI for visualizing the direction field of two coupled first order nonlinear differential equations

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

0.0 / 5
Thumbnail

문제를 풀었습니다


Find the alphabetic word product
If the input string s is a word like 'hello', then the output word product p is a number based on the correspondence a=1, b=2, ....

거의 12년 전

문제를 풀었습니다


Binary numbers
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

거의 12년 전

문제를 풀었습니다


radius of a spherical planet
you just measured its surface area, that is the input.

거의 12년 전

문제를 풀었습니다


Right and wrong
Given a vector of lengths [a b c], determines whether a triangle with those sides lengths is a right triangle: <http://en.wikipe...

거의 12년 전

문제를 풀었습니다


Factorize THIS, buddy
List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...

거의 12년 전

문제를 풀었습니다


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

거의 12년 전

문제를 풀었습니다


Find the sum of the elements in the "second" diagonal
Find the sum of the elements in the diagonal that starts at the top-right corner and ends at the bottom-left corner.

거의 12년 전

문제를 풀었습니다


Back to basics 6 - Column Vector
Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector, output true or false whether it is a colu...

거의 12년 전

문제를 풀었습니다


Sum of diagonal of a square matrix
If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

거의 12년 전

문제를 풀었습니다


Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];

거의 12년 전

문제를 풀었습니다


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

거의 12년 전

문제를 풀었습니다


Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

거의 12년 전

문제를 풀었습니다


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

거의 12년 전

문제를 풀었습니다


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

거의 12년 전

문제를 풀었습니다


Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

거의 12년 전

질문


ButtonDownFcn does not work
I am making a gui, but I can not make use of line 31: set(S.canvas, 'ButtonDownFcn',{@selectedtile,S}); If I am within t...

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

1

답변

문제를 풀었습니다


Add two numbers
Calculate the sum of two numbers. Example input = [2 3] output = 5

12년 초과 전

질문


Double precision limit with norm
I wrote a Taylor series approach for calculating the natural logarithm of matrix A. When I compared my result with the built-in ...

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

1

답변

질문


MATLAB inverts colors in uicontrol objects
I wrote a GUI application but my problem is that when I save the figure programatically using the saveas command, colors of the ...

12년 초과 전 | 답변 수: 0 | 0

0

답변

문제를 풀었습니다


Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

12년 초과 전

질문


How to obtain a warning message?
I would like to extract the warning message, that a function throws. For example syms x solve(sin(1/sqrt(x))) generat...

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

1

답변

질문


Overwrite the function handle with a newer state?
I am currently learning from Matt Fig's 41 GUIs. What I do not understand is why he writes this line: set(ln,'buttondownfcn',{@a...

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

1

답변

질문


How to pass handle without using nested functions?
I want to make a simple GUI programatically. Here is what I have done so far. function main % Initialize figure and...

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

1

답변

문제를 풀었습니다


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

대략 13년 전

문제를 풀었습니다


De-dupe
Remove all the redundant elements in a vector, but keep the first occurrence of each value in its original location. So if a =...

대략 13년 전

문제를 풀었습니다


Is my wife right? Now with even more wrong husband
Again, as in "Is my wife right?" ( <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right> ), answer 'yes' r...

대략 13년 전

더 보기