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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 1

| aceptada

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 1

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 1

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

más de 14 años hace | 1

| aceptada

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

más de 14 años hace | 1

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 1

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

más de 14 años hace | 0

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

más de 14 años hace | 2

| aceptada

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 1

| aceptada

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 1

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 1

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

Cargar más