Réponse apportée
monte carlo simulation
Hi Raymond, your inequality conditions must be done each by itself: replace if d(1,1)&&d(1,2)<.5 by if d(1,1)<0....

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Matlab Newbie: How to do a simple LP with CPLEX through MATLAB
Hi Andrew, I don't know of a link for calling CPLEX from MATLAB (apart from using system to call CPLEX like any other program...

plus de 14 ans il y a | 0

Réponse apportée
sort command
Hi Huda, take a look at the function sortrows ... Titus

plus de 14 ans il y a | 0

Réponse apportée
fwrite
Hi Tor, 1) you save strings 2,4, not values (pass [2 4] instead of '2 4' to fwrite 2) you should pass the format ('double'), s...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
A problem about the Sample Time in the asynchronous subsystem
Hi, this can't work: you call you subsystem with a function call asynchronously, so blocks inside the subsystem have no "dire...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
Include data in excell
Hi Alexandros, what about the following: % read the file [~,~,data] = xlsread('yourfile.xls'); % add at the end y...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Why does axes() not return an Object but a graphics handle?
Maybe I put my words differently: the handle graphic objects are not true MATLAB objects in the sense that you have some class f...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
Why does axes() not return an Object but a graphics handle?
Hi, with the function axes you create an object of type axes (similar to a constructor). The handle returned may be viewed as...

plus de 14 ans il y a | 0

Réponse apportée
Standalone application error
Hi, assuming you are using Windows, I'd suggest to open a dos window (run "cmd" from Windows Start), navigate to where the .e...

plus de 14 ans il y a | 1

Réponse apportée
problems with fitting curve from matrix data
Hi Eleen, hard to guess but probably x and y are row vectors. I would preallocate to be sure: x = zeros(size(testdata));...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
Can handle class be used to simulate "Pointer" in C language?
Hi, "then objects of Ptr will behave like pointers". If the behaviour you mean is that once you change a Ptr, all other varia...

plus de 14 ans il y a | 1

Réponse apportée
Unequal tick distribution on axis
Hi Adrian, just set the ticks: set(gca, 'Xtick', [101217 101223 101229]) Or did I misunderstand something? Titus

plus de 14 ans il y a | 0

Réponse apportée
running .m file from .exe
Hi ankur, what does "not working" mean? Nothing happens, error message,...? I'd suggest the following: choose (Windows-Start)...

plus de 14 ans il y a | 0

Réponse apportée
concatenate vectors
Hi Miriam, now with column vectors. Does this what you expect? a = [1; 2]; b = [3; 4; 5]; c = [6; 7]; d = [a; b; c] T...

plus de 14 ans il y a | 1

Réponse apportée
problem in preallocation
Hi Huda, before going on waht you can do other, you are aware, that a matrix of size 147611x30977 will need approx. 34GB of m...

plus de 14 ans il y a | 0

Réponse apportée
code generation: difference between grt and ert model
Hi, for the first question: grt uses a larger memory model and is a target for generic use (as the name says) mostly on the h...

plus de 14 ans il y a | 2

| A accepté

Réponse apportée
how to plot variables for x axis vertivally
Hi, there are several implementations on the file exchange, see e.g. <http://www.mathworks.com/matlabcentral/fileexchange/27...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
dividing vectors to get a matrix, as if it were multiplication
or yet another version: a'*(1./b) Titus

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Changing inside parameter of a block from Simulink library
Hi Deniz, when you do this, the link to the library will break. Later you have two options: (a) updating the library with you...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
help with single precision floating point arithmetic
Hi Aparna, I understand: num2hex(single(pi)) Is that what you are looking for? Titus

plus de 14 ans il y a | 0

Réponse apportée
mex calls in other mex functions - is it possible?
Hi, if the other function is really a mex function, you will need to use the function mexCallMATLAB, which will call then aga...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
Simulink model in a for loop
Hi Mitch, I would usually suggest to use the function sim for running simulations, or is there any reason you can't use sim? ...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
help with single precision floating point arithmetic
Hi, guess what: the function is called 'single' ;-). Titus

plus de 14 ans il y a | 0

Réponse apportée
supress simulink re-compile on every call
Hi Amardeep, in this case I'd suggest to take a look at the following link: <http://www.mathworks.de/support/solutions/en/da...

plus de 14 ans il y a | 1

Réponse apportée
How to load .mat into GUI
Hi Edward, hmm, you load the handles? That will probably fail because each time you start your GUI, handles.axes3 and handles...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
How to load .mat into GUI
Hi, hmm, I am wondering why it is imshow(handles.E,'Parent',handles.axes3); in the error message but imshow(ha...

plus de 14 ans il y a | 0

Réponse apportée
Is there a way to open a second command window to displya some numbers and text?
Alternatively you could open some file and use fprintf to output data there. Open the file with some editor during the run of th...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
can convert date to another form?
Hi, it looks as if the datenum of your string gives a fractional number (no integer). This happens, if the time is not 00:00:...

plus de 14 ans il y a | 0

Réponse apportée
Errors in creating a standalone .exe file from .m file.
Hi, the error tells you that the MATLAB compiler is not installed. Type ver to see what is installed. mex is somethin...

plus de 14 ans il y a | 0

Réponse apportée
LoadLibrary with a dll the references other dlls
Hi, a.dll can only find b.dll and c.dll, if b.dll and c.dll are on the system path (i.e., the path you get when you do g...

plus de 14 ans il y a | 0

| A accepté

Charger plus