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

alrededor de 10 años hace | 0

| aceptada

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

alrededor de 10 años hace | 2

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

alrededor de 10 años hace | 0

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

alrededor de 10 años hace | 1

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

alrededor de 10 años hace | 3

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

alrededor de 10 años hace | 0

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

alrededor de 10 años hace | 0

| aceptada

Resuelto


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

alrededor de 10 años hace

Resuelto


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

alrededor de 10 años hace

Resuelto


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

alrededor de 10 años hace

Resuelto


inner product of two vectors
inner product of two vectors

alrededor de 10 años hace

Resuelto


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]

alrededor de 10 años hace

Resuelto


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.

alrededor de 10 años hace

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

alrededor de 10 años hace | 0

Resuelto


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

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace

Resuelto


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

alrededor de 12 años hace