Answered
How do I apply calculations on a table of cells? Why are my double numbers recognized as cells?
The original file is a plain text file, not an excel file. Excel can open both, but it expects that only true excel file have an...

10 years ago | 0

Answered
How to manipulate nested cell arrays using for loop?
See my comment on your question about the mismatch in what the output represents. I'm creating two outputs here, |pause_start| w...

10 years ago | 0

| accepted

Answered
select data from a text file
Reading the file is easy with <http://www.mathworks.com/help/matlab/ref/dlmread.html |dlmread|> or <http://www.mathworks.com/hel...

10 years ago | 0

| accepted

Answered
How to implement a conditional function indexed by a specified frequency
The way I'd do it is put <http://www.mathworks.com/help/matlab/matlab_prog/creating-a-function-handle.html handles to the functi...

10 years ago | 0

Answered
provide code for diamond filter with value 3 using dilation
Not sure what your question is. If your question is about the usage of |strel|, why don't you read the <http://www.mathworks.com...

10 years ago | 0

Answered
How do I handle errors?
By default, <http://www.mathworks.com/help/matlab/ref/input.html |input|> interprets the user input as a matlab expression and e...

10 years ago | 0

| accepted

Answered
Select certain sub-matrix from matrix
If all you want to do is propagate the zeros upward then a |cumprod| on the flipped up-down matrix is all that's needed: ...

10 years ago | 1

Answered
Multiplying different sized columns
_I was led to believe that if you use (.*), the size of the columns did not matter._ Whoever led you to believe this was complet...

10 years ago | 0

Answered
calling one method from a Static method
Static methods apply to the class itself rather than instances (objects) of the class.You normally call such a method with |clas...

10 years ago | 3

| accepted

Answered
listener callback execution error
Since |handleEvnt| is a method of the class |RespondToToggle| its first argument will be an object of type |RespondToToggle|. In...

10 years ago | 2

| accepted

Answered
[num,txt,raw] = xlsread(___)
The _____ in the documentation means that you can replace it with any of the other syntax shown before and is just there for bre...

10 years ago | 2

Answered
Binary sequence from a vector to a variable
Another option a = [1 0 0 1 0] b = polyval(a, 10) %decimal representation of the same digits Note that I don't see h...

10 years ago | 0

Answered
How to extrapolate gridded matrix?
_"but it seems like there is some issues"_ Unless you tell us what the issues are, we can't guess what they are. Hs = [4.95...

10 years ago | 2

Answered
How can I compare two traces in a more efficient way?
If you have the stats toolbox you can use <http://www.mathworks.com/help//stats/pdist2.html |pdist2|> to calculate the distances...

10 years ago | 0

Solved


Is my wife really right?
For every input, output the string 'yes' once. Example: [yes1, yes2] = YesSheIs('Am I right?', 'Do you love me?') yes1 = '...

10 years ago

Solved


GJam March 2016 IOW: Cody's Jams
This Challenge is derived from <http://code.google.com/codejam/contest/8274486/dashboard GJam March 2016 Annual I/O for Women Co...

10 years ago

Solved


Create formatted value string Cell array of a vector
This Challenge is to create a cell array that contains strings of vector components in a given format. c=vector2formattedstri...

10 years ago

Answered
Help to create a loop
I don't see where the difficulty is: for page = 1:9 gsum = []; for iter = 1:page gsum = gsum + kron(J*A'^...

10 years ago | 0

Answered
delete columns in a struct array
_"I want to delete the columns of each struct"_. No, you want to delete the columns of *the cell array, if present, contained in...

10 years ago | 0

| accepted

Answered
Avoid multiplying with 1 in element wise multiplication for large matrices
I'm really not convinced you'll have any gain in speed. Identifying the ones and filtering both input matrix is probably going t...

10 years ago | 0

Answered
error: index exceeds matrix dimensions
What's puzzling is why you can't see the problem. |rho(t+1)| depends on |h1(t+1)|, which does not exists yet, hence why you g...

10 years ago | 0

Answered
Any simple way to change a struct with fields of length "n" to a struct of length"n"?
Regarding your latest comment, there is of course a simpler way to achieve the same thing, without |eval| and only looping once ...

10 years ago | 0

Answered
How can I interpolate for " not strictly monotonic increasing vectors" ?
Use <http://www.mathworks.com/help/matlab/ref/griddedinterpolant-class.html |griddedinterpolant|>, if your known points are prop...

10 years ago | 0

| accepted

Answered
Automated creation of loops within loops
The generic way of doing this in any language is to have a single loop and a vector of indices. With your loop, you increase the...

10 years ago | 0

Answered
Function imbinarize.m (for image processing) is missing. Where can i find it ?
<http://www.mathworks.com/help/images/ref/imbinarize.html |imbinarize|> is new in 2016a. You won't find it in 2015b. Note tha...

10 years ago | 4

| accepted

Answered
Convert Array to Adjacency matrix
If your matrix represents which vertices are connected to which with 1, then *it is already an adjacency matrix*. If not, then y...

10 years ago | 0

Answered
How to know A, B, C, D four positions in a rectangle generated by impoly?
I doubt you want A to be point closest to (0,0), e.g, in the case [1, 100; 2, 0; 1, 200; 2, 200] the closest point to 0 is [2, 0...

10 years ago | 0

| accepted

Answered
How to draw a cross on the biggest area.
You've already worked out the largest area with |max|, the only thing you're missing is the index of that area which is the seco...

10 years ago | 0

Answered
Removing NaN frm matrix
Note that you cannot remove arbitrary nans from a matrix since that would leave 'gaps'. You can only remove entire rows or colu...

10 years ago | 1

Load more