Feeds
已解决
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 ...
9 years 前
已解决
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...
9 years 前
提问
Stack Trace: MEX crash Seg Fault
Hi Everyone, I have looked but can't find an answer. What do the numbers mean next to my function name in my stack trace (in ...
9 years 前 | 1 个回答 | 0
1
个回答提问
Creating 2d Plots colors representing log scale weights
Hi everyone, So I have a 2d plot that represents the geometry of a structure and need to plot wights i calculated on each seg...
9 years 前 | 0 个回答 | 0
0
个回答提问
Is there a way to change the active figure without making it visible?
Hi Everyone, My Situation: I am trying to use a MATLAB plot to generate a representation of a geometry I have. The Geo...
9 years 前 | 1 个回答 | 0
1
个回答提问
displaying data in a sectioned annulus
Hi Everyone, I am working on a project of calculating various values to an annulus. I am calculating these values to 10 separ...
9 years 前 | 3 个回答 | 0
3
个回答提问
Fitting two related functions to two sets of data
Hi Everyone, I need to fit the two functions below <</matlabcentral/answers/uploaded_files/18358/image003.png>> and ...
10 years 前 | 0 个回答 | 0
0
个回答已解决
Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...
10 years 前
已解决
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...
10 years 前
已解决
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...
10 years 前
已解决
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
10 years 前
已解决
The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".
10 years 前
已解决
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 ...
10 years 前
已解决
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...
10 years 前
已解决
Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...
10 years 前
已解决
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:...
10 years 前
提问
How do i combine two 2D matrices in one 3D matrix, where each 3D pixel represents the sum of two elements.
I am trying to create a 3D matrix that calculates all of the elements the following equation: x*cos(theta)+y*sin(theta) I ...
11 years 前 | 0 个回答 | 0