已回答
How to connect the points in an polar plot?
Have you tried to connect your points with splines? See http://www.mathworks.se/help/matlab/examples/splines-in-two-dimensions.h...

10 years 前 | 0

| 已接受

已回答
Batch file: how to access .mat files in different folders?
I would suggest that you use *dir* with the argument '*_stroop_MES_Probe1.mat' directly instead of picking from d. For instan...

10 years 前 | 2

已回答
To delete rows from a cell array specifying conditions
Andrei beat me to it (again), but here is how you could answer using a loop. keep_cols = [3, 14, 17, 20, 21]; tmp = raw(...

10 years 前 | 0

已回答
Please help me to calculate Inverese matrix that doesn't appear : warning: Matrix is close to singular or badly scaled. Results may be inaccurate. RCOND = 7.142796e-039.
I'm not a numerical analysis expert, but if the matrix is "near singular", then the matrix is what is called "ill-conditioned" a...

10 years 前 | 1

已回答
How to find a maximum number not considered minus sign?
It sounds like you want to find the max absolute value of a vector. This can be accomplished simply by taking the absolute value...

10 years 前 | 3

已回答
Filtering a matrix to some small matrices
I am sure there is a function in statistics that does this for you, but I quickly wrote a very dirty version using cells, just t...

10 years 前 | 0

已回答
Saving a true color image
When you are calling *image* it returns a handle, which is a float value that you can use to modify the image in the plot window...

10 years 前 | 0

| 已接受

已解决


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

10 years 前

已解决


Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...

10 years 前

已解决


Create a row array using double colon operator
Create a row array from 9 to 1, using the double colon operator.

10 years 前

已解决


inner product of two vectors
inner product of two vectors

10 years 前

已解决


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

10 years 前

已解决


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.

10 years 前

已回答
Fresnel-like diffraction using linear convolution
Hello, perhaps this answer is late, but it might help someone else. I have tried your code and I don't know much about Fresn...

10 years 前 | 0

已解决


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 years 前

已解决


Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

12 years 前

已解决


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

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

12 years 前

已解决


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

12 years 前

已解决


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

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

12 years 前

已解决


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

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

12 years 前