Réponse apportée
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 );...

plus de 9 ans il y a | 0

Réponse apportée
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...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 9 ans il y a | 0

Réponse apportée
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...

plus de 9 ans il y a | 0

Réponse apportée
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.

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 9 ans il y a | 0

Réponse apportée
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. ...

plus de 9 ans il y a | 3

| A accepté

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

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 9 ans il y a | 0

| A accepté

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

plus de 9 ans il y a | 3 réponses | 1

3

réponses

Réponse apportée
Plotting line between points
phaseX = [phase(:,1)'; [-1 phase(2:end-1,1)' -1] ]; phaseX( phaseX == -1 ) = []; phaseY = [phase(1:end-1,2)'; [phase...

plus de 9 ans il y a | 1

Réponse apportée
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...

plus de 9 ans il y a | 1

Réponse apportée
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...

plus de 9 ans il y a | 0

Réponse apportée
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...

plus de 9 ans il y a | 0

Réponse apportée
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...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 9 ans il y a | 0

Réponse apportée
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 ...

plus de 9 ans il y a | 0

Réponse apportée
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...

plus de 9 ans il y a | 1

Réponse apportée
random vector containing zero and values
a = zeros(1,6); n = 6; b = randi(n); c = 1:b; a( randperm( numel(a), b ) ) = c;

plus de 9 ans il y a | 2

| A accepté

Réponse apportée
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...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 9 ans il y a | 0

Réponse apportée
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...

plus de 9 ans il y a | 0

Réponse apportée
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 ...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 9 ans il y a | 2

| A accepté

Réponse apportée
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 ...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 9 ans il y a | 0

Réponse apportée
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...

plus de 9 ans il y a | 1

| A accepté

Charger plus