Respondida
How to plot data from different files in same plot/figure
doc plot The first argument to plot can be an axes handle. Always use this e.g. hFig = figure; hAxes = axes( hFig );...

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 3

| aceptada

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 1

| aceptada

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

| aceptada

Pregunta


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

más de 9 años hace | 3 respuestas | 1

3

respuestas

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

casi 10 años hace | 1

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

casi 10 años hace | 1

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

casi 10 años hace | 0

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

casi 10 años hace | 0

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

casi 10 años hace | 0

| aceptada

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

casi 10 años hace | 0

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

casi 10 años hace | 0

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

casi 10 años hace | 1

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

casi 10 años hace | 2

| aceptada

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

casi 10 años hace | 1

| aceptada

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

casi 10 años hace | 1

| aceptada

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

casi 10 años hace | 0

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

casi 10 años hace | 0

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

casi 10 años hace | 1

| aceptada

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

casi 10 años hace | 2

| aceptada

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

casi 10 años hace | 0

| aceptada

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

casi 10 años hace | 0

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

casi 10 años hace | 1

| aceptada

Cargar más