Risposto
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....

quasi 15 anni fa | 0

| accettato

Risposto
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...

quasi 15 anni fa | 0

Risposto
sort command
Hi Huda, take a look at the function sortrows ... Titus

quasi 15 anni fa | 0

Risposto
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...

quasi 15 anni fa | 0

| accettato

Risposto
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...

quasi 15 anni fa | 1

| accettato

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

quasi 15 anni fa | 0

| accettato

Risposto
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...

quasi 15 anni fa | 1

| accettato

Risposto
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...

quasi 15 anni fa | 0

Risposto
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...

quasi 15 anni fa | 1

Risposto
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));...

quasi 15 anni fa | 1

| accettato

Risposto
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...

quasi 15 anni fa | 1

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

quasi 15 anni fa | 0

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

quasi 15 anni fa | 0

Risposto
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...

quasi 15 anni fa | 1

Risposto
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...

quasi 15 anni fa | 0

Risposto
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...

quasi 15 anni fa | 2

| accettato

Risposto
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...

quasi 15 anni fa | 0

| accettato

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

quasi 15 anni fa | 0

| accettato

Risposto
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...

quasi 15 anni fa | 0

| accettato

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

quasi 15 anni fa | 0

Risposto
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...

quasi 15 anni fa | 1

| accettato

Risposto
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? ...

quasi 15 anni fa | 0

| accettato

Risposto
help with single precision floating point arithmetic
Hi, guess what: the function is called 'single' ;-). Titus

quasi 15 anni fa | 0

Risposto
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...

quasi 15 anni fa | 1

Risposto
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...

quasi 15 anni fa | 0

| accettato

Risposto
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...

quasi 15 anni fa | 0

Risposto
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...

quasi 15 anni fa | 1

| accettato

Risposto
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:...

quasi 15 anni fa | 0

Risposto
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...

quasi 15 anni fa | 0

Risposto
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...

quasi 15 anni fa | 0

| accettato

Carica altro