Equation in a single column matrix?
When I run your code (after fixing a typo when you refer to what I think should be b(n)/13), the result is a 1-by-6 array for c:...

4 maanden ago | 1

| accepted

evaluation of anonymous function
I am not quite sure if this is what you are asking, but I'll give it a shot: The piece of code important to your question is r...

4 maanden ago | 1

Adding a pathdef.m file, as a string, to the current path
You probably want to use textscan for this: fileID = fopen('pathdef_etc.m') C = textscan(fileID, '%s', 'Delimiter', '\n') fcl...

4 maanden ago | 1

| accepted

how to define a gradient colormap
Yes, you can use a fixed colormap by executing the following command each time you plot an image: caxis([-1 1]) This will map ...

4 maanden ago | 1

| accepted

Index a cell array with an cell
Hi Christian, You can pick the corresponding entries for each of the cells of C as follows: C{i}(B{i}==0) The results are the...

4 maanden ago | 0

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

4 maanden ago

Delete values in a table but keep the cells
Try df{r,c} = {''} instead. You should be able to avoid the inner loop entirely by using df{r,3:nCols} = {''} Also, to check...

4 maanden ago | 0

| accepted