Réponse apportée
oop: how to switch between passing by reference and value
The documentation is pretty sparse, but also there: http://www.mathworks.co.uk/help/matlab/matlab_prog/copying-objects.html#brul...

presque 12 ans il y a | 1

| A accepté

Réponse apportée
Can't find where the warning msg is from
The idea of |notify(obj,event,myinput)| is that MATLAB sends a signal to all objects that are listening for the event |event|. Y...

presque 12 ans il y a | 0

Réponse apportée
How can I get fprintf to show plus sign in front of positive numbers ?
So close ... You want %+4.2f fprintf('%+4.2f%+4.2fX1%+4.2fX2%+4.2fX1^2%+4.2fX1X2%+4.2fX2^2\n\n',a1 ,a2 ,a3 ,a4 ,a5 ,a6)

presque 12 ans il y a | 7

| A accepté

Question


Comparing arrayfun and for loop
Has anyone ever compared arrayfun and a for loop for speed? This is partially inspired by this <http://www.mathworks.com/matlabc...

presque 12 ans il y a | 1 réponse | 3

1

réponse

Réponse apportée
slitting a number into year, mont and day
It is not clear what your "a" is. If it is a numeric array a = [ 19900101 19900102 19900103 1990...

presque 12 ans il y a | 0

Réponse apportée
Friday Fun with EVAL()
What about str2func?

presque 12 ans il y a | 0

Réponse apportée
How to know starting which MATLAB release a particular function was implemented?
Unfortunately there is no easy way. You can go back through the release notes version by version until you find that it was intr...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Trying to avoid a simple triple for loop.
It looks like you can eliminate the first part of the if statement since xi, yi and zi are always greater than 0. Instead of loo...

presque 12 ans il y a | 0

Réponse apportée
How to prevent Matlab from immediately running after calling Linux Command?
I believe the |unix| and |system| commands do not return until the command you are calling return so that they can get the poten...

presque 12 ans il y a | 0

| A accepté

Question


Would MATLAB benifit from scrapping backwards compatibility
The MATLAB language has been under active development for around 30 years. While I don't have any 30 year old code, I do have 20...

presque 12 ans il y a | 2 réponses | 2

2

réponses

Réponse apportée
Want to fit linear curve on my data.
I don't like working on log scales, I would rather take the log transform of my data x=[0;0.100000000000000;0.2000000000000...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Easter eggs as Matlab code
As inspiration you might want to check out how to make eggs in <http://tex.stackexchange.com/questions/74168/how-can-i-draw-an-e...

presque 12 ans il y a | 1

| A accepté

Réponse apportée
Move Matlab installation folder
You should be able to if you can leave a symlink in the original location. If you cannot leave a symlink, you may have to deal w...

presque 12 ans il y a | 0

Réponse apportée
Setting default Figure font, different from Desktop
There is a nice blog post about this over at <http://undocumentedmatlab.com/blog/getting-default-hg-property-values/ undocumente...

presque 12 ans il y a | 0

Réponse apportée
Can you create GUI Elements as an array? (Avoiding eval)
You can access fields of structures <http://www.mathworks.co.uk/help/matlab/matlab_prog/generate-field-names-from-variables.html...

presque 12 ans il y a | 2

Réponse apportée
Timing two events in an If loop? GUI HELP. THANKS
I am not really sure what you are asking, nor can I figure out why the code you posted is relevant... My guess is you are doing ...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
What does this mean? (Attempted to access Q(0); index must be a positive integer or logical.)
Your for loop doesn't make any sense. It is a bad idea to iterate on a variable that you then change within a for loop (in this ...

presque 12 ans il y a | 0

Réponse apportée
Is there a way to vectorize the 3 for loops?
Why do you want to vectorize the code? Loops in MATLAB are no longer, and haven't been for a decade, inherently slow. Is your qu...

presque 12 ans il y a | 0

Réponse apportée
Controlling markertype and linestyle in plotyy
If you read the manual (doc plotyy) it tells you exactly how to do it in the example set(H1,'LineStyle','--') set(H2,'Li...

presque 12 ans il y a | 0

Question


Timers: possible bug/documentation error
A few years ago I asked this <http://www.mathworks.com/matlabcentral/answers/21537-what-thread-do-timers-operate-in question> ab...

presque 12 ans il y a | 1 réponse | 2

1

réponse

Réponse apportée
timer or while-loop is the question
I think your reasons to use a timer are wrong. Since timers are running in an alternate thread they don't always fire when they ...

presque 12 ans il y a | 1

| A accepté

Réponse apportée
Graphical representation of Ping
You can extract the time data with a regular expression time = cellfun(@(y)(str2double(y{2})), regexp(result, '(time[=<])([...

presque 12 ans il y a | 1

Réponse apportée
Date for release of Matlab R2013a
I guess I should have made my prediction, as stated in the original question, of 6 March 2013 into an answer. I didn't expect to...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Removing latex font in a label/title
The standard LaTeX font is computer modern. Using helvetica for text in LaTeX is relatively straight forward:\usepackage{helvet}...

presque 12 ans il y a | 0

Réponse apportée
Avoid interruptions in the callbacks for several controls
Callbacks are only processed when the event queue is flushed. There are only a small number of things that can cause this (pause...

presque 12 ans il y a | 1

Réponse apportée
Debug code invoked by timer
My solution, that I alluded to in the original thread, looks almost identical to your invoke_by_timer_cacth, except I use the ge...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
how to get my PLP no
I would contact customer support. They are very good at handling these sorts of things.

presque 12 ans il y a | 0

Réponse apportée
curve of best fit from a few points
The title of your question says line, bu the body of the question says curve. If you really interested in a straight line, then ...

presque 12 ans il y a | 0

Réponse apportée
Linked lists guide or tutorial?
The OOP section of the manual includes a comprehensive worked example of setting up a <http://www.mathworks.co.uk/help/matlab/ma...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
How to prevent Matlab to round off numbers?
The problem is that your numbers are too big to be accurately represented as double precision (or even 64-bit integers). You can...

presque 12 ans il y a | 0

Charger plus