Answered
How to assign a column of pixels a zero value?
data(:,1:30) = 0;

11 years ago | 2

| accepted

Answered
Setting a starting distance value in pdist
Can't you just initialise to Inf? Am I missing some subtlety in the question?

11 years ago | 0

Answered
difference image imagesc rescaling
imagesc will linearly scale your data appropriately so that you see the full range of the data in the image with no clipping. T...

11 years ago | 0

| accepted

Answered
daetnum for a formatin
d = '03.07.201312:00' datenum( d, 'dd.mm.yyyyHH:MM' ) ans = 735418.5 datestr( an...

11 years ago | 0

| accepted

Answered
where to find memory limit
[userview systemview] = memory; gives the full output of the memory command. I use this in a custom function to get the ma...

11 years ago | 0

Answered
How do I loop vector calculations and store them in another vector?
Store your data in two 2d matrices x and y instead of 204 individually named variables, then it is just a simple indexing case. ...

11 years ago | 0

Answered
plot to specific axis for smithchart function
I don't know that particular function, but there is always the unpleasant approach of prefacing the call to it with: axes( ...

11 years ago | 0

Answered
error:index out of bounds
Your 'cont' variable is ranging up to > 600 after 100 outer loops and 6 inner loops so if you only have a 2nd dimension of 168 i...

11 years ago | 0

Answered
delete the figure header ?
I don't think you can have a figure without the title bar. It's pretty much a common part of any application window in Windows, ...

11 years ago | 0

| accepted

Answered
Pathdef problem after changing account
Have you tried running as administrator?

11 years ago | 0

Answered
Why does MATLAB even have single precision variables?
I'm not quite sure what you are asking really. I am starting to use 'single' more and more often nowadays because we work wit...

11 years ago | 3

| accepted

Question


How to load, update and save data neatly
I have a variable saved to a .mat file which I wish to load in, update (extend) and save out again to the same file. Obviousl...

11 years ago | 2 answers | 0

2

answers

Answered
Passing data from GUI to .m file
Where you put, for example k.name=get(hObject,'String') in a callback, k there is just a local variable. As such it goe...

11 years ago | 2

| accepted

Answered
plotting multiple plots in a for loop
Something like this should work if all you want to do is plot the data and not keep all the data for subsequent processing. The...

11 years ago | 0

Answered
How do i sent a document to printer.
Have you looked at the 'Printing and Exporting' section of the Matlab help? It includes examples of how to do certain printer-re...

11 years ago | 0

Answered
Change Color of each individual String in a Listbox ?
Data(1).name = 'red'; Data(1).Color = [255 0 0]; Data(2).name = 'green'; Data(2).Color = [0 255 0]; Data(3).name =...

11 years ago | 4

| accepted

Answered
Status for forum members: who would use/care for it?
I doubt I would use it for myself, to be honest. I haven't contributed anywhere near enough for people to notice or care if I g...

11 years ago | 0

Answered
Sort Matrix Array and skip zeros.
Array1( Array1 == 0 ) = NaN; Array2 = sort( Array1, 2 ); Array2( isnan( Array2 ) ) = 0; works if you want 0s shuffl...

11 years ago | 3

| accepted

Answered
Change Color of each individual String in a Listbox ?
Slightly modified example of code Yair Altman posted many years ago: figure; uicontrol('Style','list', 'String', ... ...

11 years ago | 0

Answered
the first argument of "warning" should be a message identifier
In Preferences -> Code Analyzer, if you can be bothered to wait while it loads all the options the 3rd tree heading is "Errors, ...

11 years ago | 0

Answered
Performance when creating an array of class objects
If your class has a default constructor (or basically your constructor can handle the 0-argument case) then the simplest way to ...

11 years ago | 0

Answered
Plotting a a constant line in a graph
plot( [X(1) X(end), [k k] ) would do the job visually if there isn't a reason you need to have a point for every value of y...

11 years ago | 1

Answered
How to subtract a 16 bit image from 8 bit image?
a = imread('background_subtract.png'); b = imread('L3_cavity_emmison.png'); a = double( a(:,:,1) ) * 255; dif...

11 years ago | 0

Answered
Standard deviation: error because variable is of type double
std( v(:) ) works for any dimensionality of v

11 years ago | 0

Answered
Expert needed / event function
You could probably just write a wrapper function for setappdata which calls your fcn function immediately after the call to seta...

11 years ago | 0

Answered
dividing on 0 in your denominator.
Your matrix K has a rank of just 7, it needs to be 15 (equal to its size) in order to be considered well conditioned. There a...

11 years ago | 1

Answered
Communicating between two matlab GUI programs on the same computer.
My favoured approach is to use handle-derived classes shared between objects with listeners attached. If you aren't familiar ...

11 years ago | 0

Answered
Variable amount of checkboxes in listbox (programmatic GUI)
I don't think that is possible with Matlab UI controls. However, if you don't mind doing some experimentation with undocumented...

11 years ago | 0

| accepted

Answered
how to extract element from column vectors
Is it not possible to have your original data just stored in a single 31 by 80 matrix? With so many individually named variab...

12 years ago | 0

Answered
convert day year hour data series with missing data to a serial number
str{1} = '01/01/2003 00:00' str{2} = '2003/12/31 23:59' datenum( str ) ans = 1.0e+05 * 7...

12 years ago | 0

Load more