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

meer dan 10 jaar ago | 0

| accepted

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

meer dan 10 jaar ago | 2

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

meer dan 10 jaar ago | 0

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

meer dan 10 jaar ago | 1

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

meer dan 10 jaar ago | 3

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

meer dan 10 jaar ago | 0

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

meer dan 10 jaar ago | 0

| accepted

Solved


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

meer dan 10 jaar ago

Solved


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

meer dan 10 jaar ago

Solved


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

meer dan 10 jaar ago

Solved


inner product of two vectors
inner product of two vectors

meer dan 10 jaar ago

Solved


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]

meer dan 10 jaar ago

Solved


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.

meer dan 10 jaar ago

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

meer dan 10 jaar ago | 0

Solved


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

meer dan 12 jaar ago

Solved


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

meer dan 12 jaar ago

Solved


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

meer dan 12 jaar ago

Solved


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

meer dan 12 jaar ago

Solved


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

meer dan 12 jaar ago

Solved


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

meer dan 12 jaar ago

Solved


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

meer dan 12 jaar ago

Solved


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

meer dan 12 jaar ago

Solved


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

meer dan 12 jaar ago