문제를 풀었습니다


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

대략 12년 전

문제를 풀었습니다


Schrödinger dog
Everyone knows that dogs are less unpredictable than cats. But is that proven? Is that measurable at all? YES! NOW IT IS! ...

대략 12년 전

문제를 풀었습니다


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

대략 12년 전

문제를 풀었습니다


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

대략 12년 전

문제를 풀었습니다


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

대략 12년 전

문제를 풀었습니다


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

대략 12년 전

문제를 풀었습니다


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

대략 12년 전

문제를 풀었습니다


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

대략 12년 전

문제를 풀었습니다


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

대략 12년 전

문제를 풀었습니다


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

대략 12년 전

답변 있음
Help with textscan classifier
Your current output does seem to be what you want. str = 'Eu3+ 1 10.06037350 -4.673610300 -1.834337367'; C = textscan(...

12년 초과 전 | 0

답변 있음
How to insert a matrix to another matrix ?
A = [1,2,3,4,5]; B = randi(5,5); Your A is a row vector, not a column. You can use transpose A' C = [A' B] C...

12년 초과 전 | 1

질문


How to compile against a specific MCR version?
I have an application compiled for MCR 7.17 about a year ago. This has been in constant use by a third party. They requested a s...

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

2

답변

답변 있음
How do I plot the values in an array against different values?
Try this plot(P(end-200+1:end,:),[0.500:.0125:3.000]) It's a nice looking tree plot. May be what you want.

12년 초과 전 | 0

| 수락됨

답변 있음
How to use the 'perfcurve' of Matlab with specific inputs?
OPTROCPT(2) is the TPR value of the optimal cut-point, not the threshold value itself. In your example, try a = find(TPR...

12년 초과 전 | 0

질문


How to escape the url encoding in URLWRITE
Hi I've encountered a slight problem trying to use URLWRITE with 'get' parameters. keyStr = 'Fmjtd%7Cluubnuur2h%xxxxxx...

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

1

답변

질문


How to read arbitrary pixel values from a geotiff image?
Hi I'm looking for a function to read values from a geotiff image for an array of arbitrary lat,lon coordinates. Something...

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

1

답변

답변 있음
mapshow plot order
The solution I've found builds on the fact that even 2-d plotting is done in 3-d with an implied z=0. With MAPSHOW the surface i...

13년 초과 전 | 1

답변 있음
How to retrieve a word from a filename
It rather depends on how general you want it. Here's another example that may help you decide. filename = 'rgb_watermark_le...

13년 초과 전 | 1

질문


Writing PDF files - problem with MSWord automation in compiled executable
Hi I'm having a problem getting MSWord automation to work when the code is compiled as an executable I have a Matlab prog...

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

1

답변

질문


Why does latlon2pix return non-integer values?
latlon2pix converts latitude-longitude coordinates to pixel coordinates. [row, col] = latlon2pix(R,lat,lon) So, as I under...

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

1

답변