Beantwortet
GUI with moving marker
you need to store the handle to the marker, e.g. d = dialog ( 'windowstyle', 'normal' ); ax = axes ( 'parent', d, 'nex...

mehr als 13 Jahre vor | 0

Beantwortet
how to make a local variable in the "M-file" to workspace?
assignin ( 'base', 'dialVal', dialVal )

mehr als 13 Jahre vor | 2

| akzeptiert

Beantwortet
Is there any workaround for the slow performance of path.m?
can you show your code? Are you adding network paths? I use addpath in the startup.m with no problems (runs very quickly, a ...

mehr als 13 Jahre vor | 2

| akzeptiert

Beantwortet
Storing persistent variable in a standalone GUI
There is no reason why you shouldn't be able to update your settings in the XML file when its compiled - can you capture an erro...

mehr als 13 Jahre vor | 0

Beantwortet
Where can I find code that is written to plot functions better than the built-in MATLAB plotting functions?
Sounds like you want to perform a copy that is vector graphics - rather than a snapshot. I used to export images to PPT but...

mehr als 13 Jahre vor | 0

Beantwortet
Is it possible to create a single executable file from a GUI developed in GUIDE in MATLAB 6.5.1?
If I recall v6.5 was before the change made to the compiler which introduced the MCR. You should still be able to compile it ...

mehr als 13 Jahre vor | 0

Beantwortet
disable border blue in scatter plot
you also need to set the *markeredgecolour* property

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
Adding Lines to Several Plots
You need to keep hold on the axes handle in each figure, then plot on them specifically: plot ( axesHandle1, X, Y ); plo...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
2D contour in 3D
rotate3d on

mehr als 13 Jahre vor | 0

Beantwortet
Text output in subplot
ax = subplot(3, 2, 5); text(0.5,0.5,countstr); set ( ax, 'visible', 'off')

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
What is the best way to read data from multiple csv files into one variable?
Is the number of rows in each file fixed? If so you can properly/accurately pre-allocate the variables time and vel - prope...

mehr als 13 Jahre vor | 0

Beantwortet
Matlab keeps renaming my files in camel case
close it in the editor - rename it in explorer and then reopen it. Its a quirk I've seen before in the editor.

mehr als 13 Jahre vor | 0

Beantwortet
Share your favorite snippet or utility
I second <http://www.mathworks.co.uk/help/matlab/ref/home.html home> - its very useful, the number of times I've had to go to a ...

mehr als 13 Jahre vor | 1

Beantwortet
Guidelines to create Windows Standalone Application from GUI.
can you not just launch the current exe from a DOS prompt to see the error? Start - Run - CMD then cd to your directory a...

mehr als 13 Jahre vor | 0

Beantwortet
Too late to submit Negative feedback for R2012b !
I also suspect this was a decision taken *some time ago* -> a strategic management decision.... It would of taken a lot of ...

mehr als 13 Jahre vor | 2

Beantwortet
Too late to submit Negative feedback for R2012b !
I had no access to the beta version for testing - so no opportunity to provide feedback.

mehr als 13 Jahre vor | 1

Beantwortet
How to get the -ve x axis on the right side of the +ve axis?
Is this what your after: set ( gca, 'xdir', 'reverse' );

mehr als 13 Jahre vor | 1

| akzeptiert

Beantwortet
Transfer data from a figure to variable
to do it without interacting with the mouse at all you can get to the data through the children of the axes handle: e.g. fi...

mehr als 13 Jahre vor | 0

Beantwortet
How do I add a 'Table' to input array elements with variable rows and columns in a GUI?
If I recall an uitable is still in an "undocumented" form in R2007. You could try <http://www.mathworks.com/matlabcentral/f...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
How to vectorize a for loop?
you over write: Chit(j)=sum(XsA); in every *i* loop - are you sure you want to do that? Profile the code and you...

mehr als 13 Jahre vor | 0

Beantwortet
Find and Replace Overlapping Substrings
I would make a binary flag = to the length of your string. Then run through all your substrings and mark the flag true for the ...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
Finding smallest value in nested structure
One way is to use a self calling function (this will find "area" at any level): Here is the bones of one - you would call it ...

mehr als 13 Jahre vor | 1

Beantwortet
how to calculate the maximum of different parts of a vector without using a for loop?
In your example above the biggest speed gain would be achieved by pre-allocating the maxH variable maxH = zeros(length(s),...

mehr als 13 Jahre vor | 0

Beantwortet
Include sub-folders automatically in script
I'm not 100% sure what your after - but have you seen help genpath e.g. addpath ( genpath ( pwd ) )

mehr als 13 Jahre vor | 2

| akzeptiert

Frage


jchooser embeded in GUI - obtain status of buttons and change to save type
This is a follow on from a previous <http://www.mathworks.co.uk/matlabcentral/answers/44277-adding-callbacks-to-jfilechooser-in-...

mehr als 13 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
Errors and Warnings on Very Simple GUI
I'd advise you to look at <http://www.mathworks.com/matlabcentral/fileexchange/24861 GUI FEX> which contains lots of examples...

mehr als 13 Jahre vor | 1

| akzeptiert

Beantwortet
Save figure on a server machine with no display
use the print command doc print you can set it to save individual file (e.g. png) print ( handle, '-dpng', 'filena...

mehr als 13 Jahre vor | 0

Frage


Adding callbacks to JFileChooser in embedded GUI
Hi, I'm trying to build a dialog with an embedded file open dialog (see code below as starting point). I'm having trouble worki...

mehr als 13 Jahre vor | 1 Antwort | 1

1

Antwort

Beantwortet
Variable in file name
fname1=[a{1} helpDD{1} helpSS{1}]

etwa 14 Jahre vor | 0

| akzeptiert

Beantwortet
vectorizing nested loops
preallocate your variable r That will improve the performance.

etwa 14 Jahre vor | 0

Mehr laden