Answered
Is it possible to disable axes' edges
So something like: figure; axes('box','off','xtick',[],'ytick',[],'ztick',[],'xcolor',[1 1 1],'ycolor',[1 1 1]); line([0 ...

14 years ago | 2

| accepted

Answered
Is there any way to make this code better?
imret(max(r1,1):min(r2,imr),max(c1,1):min(c2,imc)) = val;

14 years ago | 1

| accepted

Answered
Error Accessing Index - Told index must be positive or logical, however it is both...
dbstop if error Then wait until it errors and inspect your variables. format long will likely show you that Andre...

14 years ago | 0

Solved


Which doors are open?
There are n doors in an alley. Initially they are all shut. You have been tasked to go down the alley n times, and open/shut the...

14 years ago

Answered
What is the difference between delete and clmo ?
Not a whole lot: >> edit clmo

14 years ago | 0

Answered
Indexing points along curve in matrix in order from one endpoint to the other
Use the _'endpoints'_ option in |bwmorph| to find the end points. Pick an end point and then traverse your 'pixellist' selectin...

14 years ago | 1

Answered
View a surface plot from the top
peaks; view(2)

14 years ago | 1

Answered
finding unknown values in a column by using the indices (indexes) of known values.
|accumarray| time! (happy time :) ) x =[1.5000 1.7024 1.5000 1.3119 1.5000 1.3122 0.5000 0.8158...

14 years ago | 2

Answered
i received an error tat: too many or too few input arguments.enter GLCM and pairs.How to overcome it
Sure. Do not defined functions in a script or at the command line. What this means is if you have an *.m file and you want it ...

14 years ago | 0

Answered
HELP About contour command
You could use |scatter3| to show a scatter plot of the data: doc scatter3 Or you could interpolate your data to a regula...

14 years ago | 0

Answered
Is there any way to make this code faster?
That whole thing should be vectorizable assuming _imdiff_ and _imcombined_ (whatever those are) can handle it: cellfun(@(c)...

14 years ago | 0

Answered
Convert letters to numbers in cell
Assuming these are all strings (which I am not sure from your description) I would just use |regexprep| with proper indexing: ...

14 years ago | 0

| accepted

Answered
Column-wise interpolation of an NxM matrix?
Sure: doc interp1

14 years ago | 0

Answered
im2col error in size
Because you are using a _'sliding'_ block with |im2col| the number of elements in _r_ is much bigger than the number in _R_. Co...

14 years ago | 1

Answered
TimerFcn in gui from one function to another
As for the timers incrementing count. This will happen. Make sur eyou delete your timers when you are done with them! t =...

14 years ago | 0

Solved


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

14 years ago

Answered
legend on a plot.
Use the handle explicitly: h = plot(cumsum(rand(250,10))); legend(h([3 5 9]),'third','fifth','ninth') And for more info...

14 years ago | 0

| accepted

Answered
Isosurface evaluation without introducing any smoothing
An |isosurface| has to interpolate by nature in order to calculate triangles. What are you trying to do? You might be able...

14 years ago | 0

Answered
How to do this function
doc unique doc ismember doc setdiff doc setxor doc intersect etc...

14 years ago | 1

Answered
Error when using writeif statement
You are probably looking for |fprintf| or |fwrite|. doc fprintf doc fwrite

14 years ago | 0

Answered
regional parameters date format
Would time zone info be enough? java.util.Date

14 years ago | 0

Answered
Find a Maximum in a Matrix
X = rand(484,1800); [maxval,idxmax] = max(X,[],2) and for more info doc max

14 years ago | 3

Answered
Do I meet the limitation of Matlab? A unwanted pattern keeps showing from a random simulation.
Just taking a quick glance: Enew=sum(U); This and other operations like it could certainly be the issue. *More* F...

14 years ago | 0

| accepted

Answered
Automatic Axes Resize behavior
The normalized region for the text is at the outer border of the position. To get it further out, you have to work outside the ...

14 years ago | 0

| accepted

Answered
creating a string variable to be used in xlswrite
product={'carrots' 'vegetables' 'tomatoes'} country={'DE' 'FR' 'UK'} for ii = 1:numel(product) sprintf('%s_%s_%i',produ...

14 years ago | 1

Answered
Using find and allocating answer to an array
Well, one way would be to just find one value find(x,1,'first') or you could use a cell array to store as many results...

14 years ago | 0

Answered
how to change things after using plotyy
|plotyy| works by having two axes on top of each other. In your above, the output handle _AX_ will be a 1x2 vector. When you se...

14 years ago | 0

| accepted

Answered
Find repeated rows within each entry of a cell and delete all repetitions
This oughtta do it: function C2 = examplecelluniqueage C = {[1 1 1; 1 7 8; 8 7 1];rand(4,9);magic(2);ones(10)}; %examp...

14 years ago | 2

| accepted

Answered
Error in Timer function
Is this occuring because you close the GUI without stopping the timer? In the closeRequestFcn of the GUI, be sure to have a:...

14 years ago | 0

Answered
Why won't padarray work?
One place to start: rehash toolboxcache

14 years ago | 0

Load more