Answered
Get a list of all UI Components used in GUI
doc findobj doc findall should work. You can do e.g. editBoxHandles = findobj( guiHandle, 'style', edit' ); O...

9 years ago | 0

| accepted

Answered
How to delete second y axis (plotyy) using the plot tools
You can open the plot browser and this should show you two axes. You can unshow or delete from here. I am working in R2016b th...

9 years ago | 0

Answered
How to: Close GUI 1, transfer data to GUI 2, open GUI 2 (and back again)?
Object-oriented programming is, in my opinion, by far the best way to achieve this. If you have a handle-derived class you ca...

9 years ago | 0

Answered
how to change the xtick of the picture into 10 power format?
doc XTickLabel You can set the labels to be whatever you want, using sprintf to format as you choose also.

9 years ago | 0

| accepted

Answered
How to plot a line from x, y, & z in 3d?
doc plot3 should work although if z never changes you can probably just use a regular plot and then change the viewing angl...

9 years ago | 0

Answered
How to display list of installed toolbox?
ver Note: this tells you if it is installed, which is what you asked, though not if you have a license for it or not. ...

9 years ago | 3

| accepted

Answered
How do I delete extra values separated by comma
result = cellfun( @(x) x{1}, cellfun( @(x) strrep( strsplit(x), ',', '' ), myCell, 'UniformOutput', false ), 'UniformOutput', ...

9 years ago | 0

| accepted

Answered
Assignment has more non-singleton rhs dimensions than non-singleton subscripts
What is handles.deckList? I am guessing it is some kind of list control so that its string is a cell array of strings so ...

9 years ago | 1

| accepted

Answered
empty entry using ginput !!
[x,y]=ginput(1); works fine for me, but I don't know what you are trying to do in the while loop. t never changes so eithe...

9 years ago | 0

| accepted

Answered
Having trouble indexing a very large time-series matrix with a for-loop.
for j=1:ts y1 = y1(:,j); y2 = y2(:,j); y3 = y3(:,j); y4 = y4(:,j); ... end ...

9 years ago | 0

| accepted

Question


Repeating a vector up to a given length
This is one of those case where I feel there has to be a neater way to do what seems like a very simple operation, but I can't t...

9 years ago | 3 answers | 1

3

answers

Answered
Plotting line between points
phaseX = [phase(:,1)'; [-1 phase(2:end-1,1)' -1] ]; phaseX( phaseX == -1 ) = []; phaseY = [phase(1:end-1,2)'; [phase...

9 years ago | 1

Answered
How do I create a GUI with a sequence of windows, navigating using "Back" and "Next" pushbuttons?
This recent question might help: <https://uk.mathworks.com/matlabcentral/answers/312278-how-to-change-the-gui-content-when-se...

9 years ago | 1

Answered
Index exceeds matrix dimensions.
[m , n ] = size(I); gives you the number of rows and columns in m and n respectively. You then loop i up to n and j up t...

9 years ago | 0

Answered
How to change the data from MxN to MxNXT????.
a = rand( 67, 25000 ); b = reshape( a, [67 2500 10] ); That is assuming you made a typo and meant the 2nd dimension to b...

9 years ago | 0

Answered
computer freezes during heavy array calculation
'This limit applies to the size of each array, not the total size of all MATLAB arrays.' That setting is only really of use r...

9 years ago | 0

| accepted

Answered
How can I fix the number of ticks in a colorbar, without depending on the values?
figure; hAxes = gca; imagesc( hAxes, magic( 20 ) ) h = colorbar; colourRange = caxis( hAxes ); h.Ticks = linsp...

9 years ago | 0

Answered
I have a for loop that generates an 1890x1 matrix, I need to insert a zero into the first entry in the first row, so that the final matrix is 1891x1.
myMatrix = [0; myMatrix]; If you know the size of the matrix in advance though it would be more efficient to create a 1891 ...

9 years ago | 0

Answered
How can I create an array of class handles?
If you mean a vector of class objects all of the same type then you just put them in an object array that behaves like a numeric...

9 years ago | 1

Answered
random vector containing zero and values
a = zeros(1,6); n = 6; b = randi(n); c = 1:b; a( randperm( numel(a), b ) ) = c;

9 years ago | 2

| accepted

Answered
How to change the GUI content when selecting different menu buttons?
You can do this programmatically quite easily. You can also do it in GUIDE with a little bit of programmatic addition, it is ju...

9 years ago | 1

| accepted

Answered
How to write a value with zeros before the value in matlab?
sprintf( '%05.3d', 20 ) for example will pad leading 0s upto the number you specify (5 in this case, including the 20, so 3...

9 years ago | 1

| accepted

Answered
Need help with uitable data input ... Urgent help is appreciated
data = cell2mat( cellfun( @(x) cell2mat( x )', Value, 'UniformOutput', false ) )'; would convert your data into a numeric a...

9 years ago | 0

Answered
Not enough input arguments
Are you calling it with any input arguments? This is one of those errors that is usually very self-explanatory unless it involv...

9 years ago | 0

Answered
Is it possible to use figure capabilities in axes on a GUI?
You can add in the default or a custom toolbar in GUIDE from the menu options. Tools -> Toolbar Editor You can also use ...

9 years ago | 1

| accepted

Answered
Error using double Conversion to double from cell is not possible.
a=zeros(1,7); declares an array of type 'double'. You are trying to put strings in it. Use a = cell(1,7); a...

9 years ago | 2

| accepted

Answered
How to add a keyboard shortcut to a menu?
If you are using a uimenu you can, but 'menu' that you are using is basically a dialog box and it is not recommended to use (in ...

9 years ago | 0

| accepted

Answered
convert for loop to while
v = 0; n = 1; while n <= length( i ) v = v + i( n ); n = n + 1; end Quite why you would want to do...

9 years ago | 0

Answered
Is there any way to change an array output to display a word or phrase?
jStr = repmat( { 'Buy' }, numel( j ), 1 ); jStr( j == -1 ) = { 'Sell' }; I'm sure there are neater ways, but that should...

9 years ago | 1

| accepted

Answered
Refering to a imported filename in a plot legend
doc fileparts doc sprintf

9 years ago | 0

Load more