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

mehr als 11 Jahre vor | 0

| akzeptiert

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

mehr als 11 Jahre vor | 2

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 1

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

mehr als 11 Jahre vor | 3

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

| akzeptiert

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


inner product of two vectors
inner product of two vectors

mehr als 11 Jahre vor

Gelöst


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]

mehr als 11 Jahre vor

Gelöst


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.

mehr als 11 Jahre vor

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

mehr als 11 Jahre vor | 0

Gelöst


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

mehr als 13 Jahre vor

Gelöst


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

mehr als 13 Jahre vor

Gelöst


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

mehr als 13 Jahre vor

Gelöst


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

mehr als 13 Jahre vor

Gelöst


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

mehr als 13 Jahre vor

Gelöst


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

mehr als 13 Jahre vor

Gelöst


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

mehr als 13 Jahre vor

Gelöst


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

mehr als 13 Jahre vor

Gelöst


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

mehr als 13 Jahre vor