photo

Arthur


Actif depuis 2011

Followers: 0   Following: 0

Message

Statistiques

All
  • First Review
  • First Submission
  • 6 Month Streak
  • Knowledgeable Level 4
  • First Answer
  • Solver

Afficher les badges

Feeds

Afficher par

Réponse apportée
How can I determine where there are date gaps in an array of date strings? And fill in the gaps...
I think you can do this without an loop. Since you want to get an 'ideal' date array, you can just make this, and then lookup wh...

presque 12 ans il y a | 1

Réponse apportée
Save figures with saveas function
You mean you want to set the filename yourself? You can use uiputfile for that. [filename dirname] = uiputfile; %set file n...

presque 12 ans il y a | 0

Réponse apportée
How can I compare two logical vectors to a value?
logi = ~logix & ~logiy

presque 12 ans il y a | 0

| A accepté

Réponse apportée
ERRORDLG icon switching to ploted graph
You mean that you get the plot _inside_ the errordlg?? That's weird... I cannot reproduce this, not even when I explicitly use t...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
The legend show different sign
This is because you are plotting data in a loop, and will make N plots with symbol 'ro'. Therefore, also the first N entries in ...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
How do I load text files into the GUI workspace?
You can get the path to your mfile with mfilename and fileparts: fname = mfilename('fullpath'); fdir = fileparts(fname)...

presque 12 ans il y a | 0

Réponse apportée
GUI: Change backround of "Edit text" box using if structure
Explain 'many errors'. How can we fix many errors with we don't know what they are?? I'm going to make an estimated guess. If yo...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
how to make numbering near "a" like: a1, a2, an
Please don't use dynamic variable names, matlab has plenty of options to store your data in a better way. Use cells or structs. ...

environ 12 ans il y a | 3

| A accepté

Réponse apportée
when i have two plots on same figure, how can i clear only one plot ??
Are there 2 axes, or 2 lines in one axes? If you have two axes: uou need the handles of the second axes to clear it with cla. ...

environ 12 ans il y a | 0

Réponse apportée
How to use 'Edit Text' efficiently in a GUI?
If you use guidata(gcbo,handles), you save the string of your textbox in the 'handles' structure; in your pshbtn_callback you su...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
problem in Matrix Indexing
Well, if you insist not to use repmat (why??), I'd do it like this: f = zeros(n,v); for i = 1:v f(:,i) = k(i); ...

environ 12 ans il y a | 1

Réponse apportée
How can i add the feature in Matlab GUI Deploytool package that expires the package after specific expiry date. for example i have made a package and giving to user for trial purpose so i want the package to expire after 15 days on user machine.
Probably the most simple way to do this is, is by creating a simple matfile the first time the program runs, which includes the ...

environ 12 ans il y a | 0

Réponse apportée
How to exit a program or rather not process further code if a condition is not met ?
Error should only be used when there is, ehm, an error. To stop the execution otherwise, use <http://www.mathworks.nl/help/matla...

environ 12 ans il y a | 5

| A accepté

Réponse apportée
How to share variables across GUIs?
I prefer to store and share data with the function setappdata and getappdata. This is, in my opinion, more clear and better stru...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
Using contourf with 1D data
I don't really understand what you want to do. Why do you want to show a vector as 2D data???? Especially with random x and y....

environ 12 ans il y a | 0

Réponse apportée
Import Variables in GUI to the main workspace
In the callback of your button, put assignin('base','yourvariable',yourvariable) If you have a simple GUI that is clos...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
Print an image in Matlab GUI
I guess it should be smapleimage = imread('image.png'); printdlg(smapleimage)

environ 12 ans il y a | 0

Réponse apportée
Transfering variables from Workspace to GUIDE Interfaz
You can retrieve variables from the base workspace using <http://www.mathworks.nl/help/matlab/ref/evalin.html evalin>.

environ 12 ans il y a | 0

Réponse apportée
disable axes screen updating in gui
How are you updating the plot? Are you calling plotyy every time? It is usually much faster to update XData and YData of an exis...

environ 12 ans il y a | 0

Réponse apportée
Is there a way to 'fold up' sections of code--like when you close up a while loop?
You have to activate code folding for cells in Preferences. See http://blogs.mathworks.com/community/2009/06/15/fold-whatever...

environ 12 ans il y a | 3

| A accepté

Réponse apportée
Matlab gui List box problem
Something like this sould work: val = get(handles.listbox1,'Value'); %get selected item str = get(handles.listbox1,'Stri...

environ 12 ans il y a | 2

Réponse apportée
Problem in data loading
You will need to make the array smaller to display it, that's obvious from the error message. Also, it is an array with 3 dimens...

environ 12 ans il y a | 0

Réponse apportée
Can array values be used in plot titles?
Use num2str and title.

environ 12 ans il y a | 0

Réponse apportée
changing the plot in GUI manually -
Doug has a great movie on exactly this subject: http://blogs.mathworks.com/pick/2008/05/27/advanced-matlab-capture-mouse-move...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
Crop a plot without changing ratio/axis tick positions?
Maybe you can use tight subplots: http://www.mathworks.com/matlabcentral/fileexchange/27991

environ 12 ans il y a | 0

Réponse apportée
how to remove some row or column of a matrix at once?
a = zeros(100,100); %create 100x100 matrix a(71:100,:) = []; %remove rows 71:100

environ 12 ans il y a | 0

Réponse apportée
how do i check if line in plot exists and if yes delete it otherwise nothing
Dirty way: cla(axes_handle) If you know the handle of the line: if ishandle(line_handle) delete(line_handle) ...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
Suppress line number display in error message
Use getReport instead. For instance try %something catch me errorstring= getReport(me,'basic') uiwait(warndl...

environ 12 ans il y a | 0

Réponse apportée
problem with using if statements
You placed the code intothe CreateFcn of te popup. This means the code is only executed when the popup is created, not when you ...

environ 12 ans il y a | 0

| A accepté

Charger plus