Domanda


How to make text in uicontrol object disappear when user starts typing?
I have a question about the following editable text box, f = figure; % Make example figure peaks; % Plot peaks data that...

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


How to stop getting cursor position?
I have a function based on <http://www.mathworks.com/matlabcentral/fileexchange/24861-41-complete-gui-examples?focused=5147026&t...

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


Why do lines look blurry with linewidth 1 in R2017a?
I am using R2017a and when I plot lines with linewidth of 1, they appear blurry or pixelated, as in the screenshot below. How ca...

oltre 8 anni fa | 1 risposta | 0

1

risposta

Risposto
How to apply "hold" to some but not all plot objects
Jan Simon's answer <https://www.mathworks.com/matlabcentral/answers/58402-delete-line-in-gui here> actually solved the problem, ...

oltre 8 anni fa | 1

Domanda


How to apply "hold" to some but not all plot objects
Is there a way to apply "hold on" to some plot objects, but to apply "hold off" to other objects in the same plot? The examp...

oltre 8 anni fa | 2 risposte | 1

2

risposte

Domanda


How to make a shortcut to always "Run as Administrator"
I would like to change the default startup of Matlab to 'Run as Administrator', which is necessary for tasks like saving the pat...

quasi 9 anni fa | 2 risposte | 0

2

risposte

Domanda


Unexpected number of function input arguments
I am confused by "extra" function inputs in the program <https://www.mathworks.com/matlabcentral/fileexchange/24861-41-complete-...

quasi 9 anni fa | 0 risposte | 0

0

risposte

Domanda


Help understand: Passing a function handle to another function as an argument
Can you help me understand the following line in the program <https://www.mathworks.com/matlabcentral/fileexchange/24861-41-comp...

quasi 9 anni fa | 1 risposta | 0

1

risposta

Risposto
debugging a callback function
There is info on debugging a GUI <http://blogs.mathworks.com/videos/2011/03/21/adding-a-debug-button-to-a-matlab-gui/ here>, bot...

quasi 9 anni fa | 0

Domanda


Are you using Matlab in an Agile development environment?
I am a researcher using Matlab, which means I am partly a programmer and so could benefit from improving how I write, document, ...

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


Is UML the right tool to make logic flow diagrams of mfile?
I am looking for a tool similar to <https://code2flow.com/ code2flow> to make a logic flow diagram of a convoluted legacy mfile ...

quasi 9 anni fa | 0 risposte | 1

0

risposte

Risposto
How to stop legend from adding 'data1', 'data2' when additional data is plotted
It turns out that the undesired entries can be deleted using the 'String' property of the legend. Below lh is the legend handle ...

quasi 9 anni fa | 2

Domanda


How to stop legend from adding 'data1', 'data2' when additional data is plotted
In 2017a, when I make some plots and add a legend, then add subsequent plots, the legend is updated with new unwanted entries ge...

quasi 9 anni fa | 2 risposte | 3

2

risposte

Risposto
Legend Button displays data1, data2, etc
You need to include strings in the legend command. % Plot some data figure; h1 = plot(rand(1,7), rand(1,7)); hold ...

quasi 9 anni fa | 0

Risposto
polar plot bar chart combo or something similar?
You might want to see <https://www.mathworks.com/matlabcentral/fileexchange/47248-wind-rose windRose> on the file exchange.

quasi 9 anni fa | 1

Risposto
Polar Bar Plot Matlab (like Radar)
<https://www.mathworks.com/matlabcentral/fileexchange/47248-wind-rose Wind rose> is nice too (just ignore the fact that it is wr...

quasi 9 anni fa | 0

Domanda


Problem with editor search in R2016b
I switched to R2016b last month when I got a new Windows 10 Pro machine, and have noticed a problem with the editor search funct...

circa 9 anni fa | 1 risposta | 0

1

risposta

Risposto
Diagrams from matlab code
You might be able to use <https://code2flow.com code2flow> though it is for different languages.

circa 9 anni fa | 0

Domanda


How to specify the RGB color of each line in a waterfall plot?
Is there a way to specify the RGB color of each line in a <https://www.mathworks.com/help/matlab/ref/waterfall.html waterfall> p...

circa 9 anni fa | 1 risposta | 0

1

risposta

Domanda


What start time is assumed in Matlab's resample function?
When I use Matlab's resample function, what start time is assumed for the resampled time vector? All the plots and examples in t...

circa 9 anni fa | 1 risposta | 0

1

risposta

Domanda


How to add non-row-sized variable to table?
How can I add a variable to a table if the variable has a different length than the number of rows in the table? One reason to d...

circa 9 anni fa | 2 risposte | 0

2

risposte

Domanda


What colormap is used to generate ColorOrder?
What colormap is used to generate the default <https://www.mathworks.com/help/matlab/ref/axes-properties.html#prop_ColorOrder Co...

circa 9 anni fa | 2 risposte | 0

2

risposte

Domanda


Matlab style: should table names be capitalized?
In <https://www.ee.columbia.edu/~marios/matlab/MatlabStyle1p5.pdf Elements of Matlab Style>, Richard Johnson recommends capitali...

circa 9 anni fa | 1 risposta | 0

1

risposta

Risposto
Why does table creation produce error "VariableNames property must contain one name for each variable in the table"?
Just figured this out: have to use <https://www.mathworks.com/help/matlab/ref/array2table.html array2table>, T = array2tab...

circa 9 anni fa | 12

| accettato

Domanda


Why does table creation produce error "VariableNames property must contain one name for each variable in the table"?
Can you please revise the following line of code to eliminate the error "VariableNames property must contain one name for each v...

circa 9 anni fa | 2 risposte | 1

2

risposte

Domanda


Prevent MATLAB from creating empty mfile if it doesn't exist
I would like to turn off the following behavior: When I try to open a mfile that doesn't exist as far as MATLAB knows*, MATLAB c...

circa 9 anni fa | 2 risposte | 0

2

risposte