Feeds
已解决
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...
13 years 前
已解决
Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...
13 years 前
已解决
How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...
13 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 ...
13 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...
13 years 前
已解决
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...
13 years 前
已解决
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 ...
13 years 前
已解决
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
13 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:...
13 years 前
已回答
Nested for-loops too slow
You might want to work more on that code manually before implementing it like that. As the only thing that really matters is N, ...
Nested for-loops too slow
You might want to work more on that code manually before implementing it like that. As the only thing that really matters is N, ...
13 years 前 | 1
| 已接受
已回答
Adaptive Filter for System Identification.
If you're trying to model a continuous time system, I'd recommend making your model for continuous time instead of discrete time...
Adaptive Filter for System Identification.
If you're trying to model a continuous time system, I'd recommend making your model for continuous time instead of discrete time...
13 years 前 | 0
已回答
Image Background Removal
You can try vectorizing that code, but that will be most likely destroy any short-circuiting you have in there. Just by the top...
Image Background Removal
You can try vectorizing that code, but that will be most likely destroy any short-circuiting you have in there. Just by the top...
14 years 前 | 0
| 已接受
已回答
Can I install an earlier version of MATLAB on a system with a current version of MATLAB?
1) Saying your OS is 32 bit will most likely work. Most 32 bit software should work on a 64 bit OS (unless you are fiddling with...
Can I install an earlier version of MATLAB on a system with a current version of MATLAB?
1) Saying your OS is 32 bit will most likely work. Most 32 bit software should work on a 64 bit OS (unless you are fiddling with...
14 years 前 | 1
已回答
Grayscaled Images to RGB
If you just need red, green or blue, you can use the following code: I = im2double(imread('cameraman.tif')); %image in double...
Grayscaled Images to RGB
If you just need red, green or blue, you can use the following code: I = im2double(imread('cameraman.tif')); %image in double...
14 years 前 | 2
已回答
2nd order polynomial fitting with NaNs
Try indexing your data points to your non-NaN-points Let's just work on an example: %% just generating data x = 1:10; ...
2nd order polynomial fitting with NaNs
Try indexing your data points to your non-NaN-points Let's just work on an example: %% just generating data x = 1:10; ...
14 years 前 | 5
| 已接受