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

14 years ago | 0

| accepted

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

14 years ago | 0

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

14 years ago | 0

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

14 years ago | 0

| accepted

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

14 years ago | 1

| accepted

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

14 years ago | 0

| accepted

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

14 years ago | 1

| accepted

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

14 years ago | 0

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

14 years ago | 1

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

14 years ago | 1

| accepted

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

14 years ago | 1

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

14 years ago | 0

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

14 years ago | 0

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

14 years ago | 1

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

14 years ago | 0

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

14 years ago | 2

| accepted

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

14 years ago | 0

| accepted

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

14 years ago | 0

| accepted

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

14 years ago | 0

| accepted

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

14 years ago | 0

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

14 years ago | 1

| accepted

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

14 years ago | 0

| accepted

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

14 years ago | 0

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

14 years ago | 1

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

14 years ago | 0

| accepted

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

14 years ago | 0

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

14 years ago | 1

| accepted

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

14 years ago | 0

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

14 years ago | 0

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

14 years ago | 0

| accepted

Load more