Réponse apportée
How do I force a compiled function to exit with a non-zero status yet allow the overall application to continue to run.
You want to in effect transfer information from one exe to another. Is that correct? Since you are using the system command ...

environ 10 ans il y a | 0

Réponse apportée
Opening a txt file with chosen directory location
x_Filename is a cell array, you need to pass the individual file into fopen: file_x = fopen ( x_Filename{1} ) You s...

environ 10 ans il y a | 0

| A accepté

A soumis


gui2pdf
Create PDF from GUI - multiple images in single PDF

environ 10 ans il y a | 1 téléchargement |

Thumbnail

Réponse apportée
Formatting Legend Entries Properly
When using sprintf you have to cancel the \ operator, to do this use a double \\ str{box} = sprintf(... % aiming for: "A - \...

environ 10 ans il y a | 1

| A accepté

Réponse apportée
trouble with switch case
use curcly brackets to switch on the cell item. switch input{1}

environ 10 ans il y a | 0

| A accepté

Réponse apportée
Update multiple YData on plot without losing focus
you need to save the handles for each of your 3 plots h1 = plot ( t_whole, '-k'); h2 = plot ( fit.mode,'-b'); h3 = pl...

environ 10 ans il y a | 1

Réponse apportée
catching a value while matlab is running
you could use listeners, but you could also use the dbstop ability to stop on condition, i.e. dbstop in MFILE at LINENO if...

environ 10 ans il y a | 0

Réponse apportée
If condition with a cell include both number string and text string?
The problem here is the use of str2num in your conversion and the fact one of your inputs is text (which is a matlab function na...

environ 10 ans il y a | 1

| A accepté

Réponse apportée
how can I move a Point in a plot (GUI) from one side to the other in a fixed time?
*edit:* changed timing to an overall target for loop instead of interval time. See the code below: figure; ax = axes; ...

environ 10 ans il y a | 0

| A accepté

Réponse apportée
Remove "( )" from string words
*regexp* is very compact and powerful - however it can be a bit slow. If speed is an issue a simple for loop and *strrep* can...

environ 10 ans il y a | 0

| A accepté

Réponse apportée
Import data and text in huge csv files into matlab and convert to matfiles
Use low level routines to read the file. fopen fgetl strread or textscan Using this you are in complete control.

environ 10 ans il y a | 0

Réponse apportée
Plotting letters instead of symbols
The text function allows you to write text on an axes. help text

environ 10 ans il y a | 0

Réponse apportée
Barweb in 2014b doesn't work any more
The problem with this function is that it is failing on getting the X position of each bar - so that the errorbar can be placed ...

environ 10 ans il y a | 1

| A accepté

Réponse apportée
Help: Display a different layout when pushing a button in a GUI?
The reason your code doesn;t work - is that when the callback for the pushbutton is created the variable S.tab1 doesn't exist. ...

environ 10 ans il y a | 0

| A accepté

Réponse apportée
Assigning a variable in a function that is available in the function
Create a sub function which assigns (using assignin) your variables in the caller function where the caller function is the one ...

environ 10 ans il y a | 0

Réponse apportée
Is MCR installation supported on all platforms? If not, what platforms are supported??
The advised thing is for you to go back to the version which is on the cluster - thats what I have done in this situation in the...

environ 10 ans il y a | 0

Réponse apportée
Set and enforce axis properties immediately
when you create your subplot set the Xdir then: subplot ( 1, 2, 1, 'xdir', 'reverse' ); % your other code goes here ...

environ 10 ans il y a | 0

Réponse apportée
Need help with plotting a graph on matlab- linewidth
If you split it over two plot commands it will work: plot(x_values,y_values,'b:','linewidth',2) plot(x_values,subs(g1,x_va...

environ 10 ans il y a | 0

Réponse apportée
Enable / Disable specific listbox item
By using this <http://www.mathworks.co.uk/matlabcentral/fileexchange/46755-str2html FEX> you can make it look like things are di...

environ 10 ans il y a | 0

Réponse apportée
How do you make multiple variable assignments from s struct?
If you choose to do it the way Joseph Chang mentioned - then I would strongly advise that you change the eval statement to use d...

environ 10 ans il y a | 0

| A accepté

Réponse apportée
GUIDE Tabs Support in R2014b
I guess the answer to this will become known once R2014b is released - in the meantime you could look at <http://www.matpi.com t...

environ 10 ans il y a | 0

Réponse apportée
how to make a char using many letters instead 3
The best solution is to use cell arrays, but if you need it all in a single matrix it needs to be square. Every row (month)...

plus de 10 ans il y a | 0

Réponse apportée
Working with uicontrol / Working wihout GUIDE
I see this has alreayd been answered(and accepted), but my advice is *dont give up*. Your GUIs will be a lot better and you c...

plus de 10 ans il y a | 1

Réponse apportée
Using dir() in a compiled script
You get the fprintf error becuase your variable files is empty. You should look at the var <http://www.mathworks.co.uk/help/m...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
using num2str to name a graph in plot
try: text(1,1, ['y = ' (num2str(a)) 'x^{' (num2str(n)) '}' ] )

plus de 10 ans il y a | 1

| A accepté

Réponse apportée
FAQ: How can I create variables A1, A2,...,A10 in a loop?
I 100% agree with Jan that *creating new variables on the fly* is something that *should be avoided* - but if you must then plea...

plus de 10 ans il y a | 2

Réponse apportée
how to split column vector when 0 come?
You could do: A= [0;23;45;64;34;3;0; 12; 14;0; 12;354;13;324;25;254;0]; index = find(A==0); for ii=1:length(index)-1 ...

plus de 10 ans il y a | 0

Réponse apportée
how to extract one variable from mat flies
You can request the "data" variable explicitly from the file: load ( filename, 'data' ); Note this will add a new var...

plus de 10 ans il y a | 0

Réponse apportée
Can you set figure axis properties without using gca as argument to the set command?
you are returning the axes properties as a static structure - which cant be edited in the way you have done it, however you coul...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
Problem related to legend
When you create your plot save the handles of the plots that you want to add to the legend - then when you create your legend pa...

plus de 10 ans il y a | 1

| A accepté

Charger plus