Réponse apportée
List Box in GUI
Hi, you could do the following if I understood the question correclty: allStrings = get(handles.listbox1, 'string'); ...

environ 14 ans il y a | 0

Réponse apportée
Compile a 32-bit shared library from a 64-bit Linux machine with 64-bit MATLAB installed
Hi, it's at least difficult, but I guess probably not possible at all. It will definetely simpler to just install a 32 Bit MA...

environ 14 ans il y a | 1

| A accepté

Réponse apportée
??? Undefined function or variable 'matlabrc'
Hi, in the folder <matlab>\toolbox\local there should be two files which might be affected: pathdef.m and matlabrc.m. Are the...

environ 14 ans il y a | 0

Réponse apportée
Why the computing time of a function is bigger than main fuction?
Hi Volker, hmm, it's not a deep copy that happens here. To see, that the operation indeed is done inplace can be seen when us...

environ 14 ans il y a | 2

Réponse apportée
Processor usage
Hi Juan, in the (are you using Windows?) taskmanager you can assign a process (i.e. MATLAB) to run on one (or more) cores. Do...

environ 14 ans il y a | 0

Réponse apportée
Why the computing time of a function is bigger than main fuction?
Hi Volker, which version of MATLAB are you using? For me (R2012a) both your and Jan's version give more or less the same resu...

environ 14 ans il y a | 0

Réponse apportée
Get Rate transition Block Behavior from M-File
Hi Khoubeib, I don't understand: the rate transition block is only needed for multirate systems that are supposed to run in a...

environ 14 ans il y a | 0

Réponse apportée
Processor usage
Hi Juan, this is indeed most likely a multithreading issue: unless you are using the Parallel Computing Toolbox ("explicit pa...

environ 14 ans il y a | 0

Réponse apportée
Exiting: One or more of the residuals, duality gap, or total relative error has grown 100000 times greater than its minimum value so far:
Hi, I guess (!) you are using linprog and get this error message? In this case the combination of bounds, equality constraint...

environ 14 ans il y a | 1

| A accepté

Réponse apportée
How to include libraries in a mex file
Hi, I see. I would suggest the following: int *pr; [...] // this is the result from the function: partitions = ...

environ 14 ans il y a | 0

Réponse apportée
How to include libraries in a mex file
Hi, you don't need to change your code. Yes, the mex interface is with void, but there is nothing wrong doing something like ...

environ 14 ans il y a | 0

Réponse apportée
improve condition number of a matrix to inverse it
Hi Sakineh, in this general sense: no. You will need to explain in more detail where the matrix comes from, and what you are ...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
Regarding "fwrite" in matlab
O.K., I give it another try: x = 42; fprintf(fid, '%s\n', dec2bin(x, 16)); Is that what you need? Titus

environ 14 ans il y a | 0

| A accepté

Réponse apportée
efficient way to rename files while preserving first 5 letters and removing the rest
Hi, get the list of files using e.g. dir: files = dir('*.txt'); Then a simple function to use is fileparts for i...

environ 14 ans il y a | 4

| A accepté

Réponse apportée
Efficient Row x Collumn multiplication
Hi, don't know if it is really more efficient, give it a try: x = dot(A',B)' Titus

environ 14 ans il y a | 0

Réponse apportée
storing data into a vector within nested for loop
Hi, usually I would not use a loop for this kind of operations: do the following instead: [Xcount, Ycount] = meshgrid(1:...

environ 14 ans il y a | 1

| A accepté

Réponse apportée
Regarding "fwrite" in matlab
Hi Aparna, are you sure you want to use fwrite? With fwrite you write binary data (open your M1.txt with an editor that can d...

environ 14 ans il y a | 0

Réponse apportée
How to add small image to GUIDE panel
Hi Joe, you can add an axis to your GUI, make it size 64x64 and in the opening function of your GUI use imread to read the im...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
How do I run a simulink model in real-time in normal mode
Hi Behel, not sure, if I fully understand: Real-Time Windows Target is a compiled Simulink model. The model runs in real-time...

environ 14 ans il y a | 0

Réponse apportée
Two ascii data files of minute data not matching up
Hi, if I understand correctly, this is close to what you want to do...? % the first set: t1 = datenum(2012, 3, 1) + [1;...

environ 14 ans il y a | 0

Réponse apportée
How to constrain lsqnonlin not to give me negative values???
Hi, you should define 0 as lower bound for all the variables, i.e. [rs, res] = lsqnonline(@OutInpDiff, X0, zeros(1,4), [...

environ 14 ans il y a | 0

Réponse apportée
How to run a outside function inside a GUI m file?
Hi, most often it's one of the following: * config.m is in another folder (if so, add the folder to the MATLAB path using...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
Two ascii data files of minute data not matching up
Hi, you will only find a "good" way to do this, if the ascii files have also the time information stored. If this is the case...

environ 14 ans il y a | 0

Réponse apportée
quit doesn't quit the matlab when called from a loop.
Hi, never thought about this way of doing this. You could try to do the following: !matlab -r test=1 & Note the & at ...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
object function iteration gets stuck
Hi, what you see is the stack trace, i.e., fminsearch calls fitmeson, fitmeson calls massp etc. Take a look at the top most ...

plus de 14 ans il y a | 0

Réponse apportée
Real-time data exchange
I guess you could use memmapfile in both MATLAB instances to use a (memory mapped) file for exchanging data. Since labbarrier/la...

plus de 14 ans il y a | 0

Réponse apportée
Specify one dimension as variable size in Matlab Coder
Hi, I guess you mean the MATLAB Coder project settings? When you specify the input variable, use a ":" to specify a variable ...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Find the row of a word in a file
Hi Panos, to read a number instead of a string, use textscan again but replace the %s by %f: let's say sFound is the line. Th...

plus de 14 ans il y a | 0

Réponse apportée
object function iteration gets stuck
Hi, what happens If you hit Ctrl-C? Do you see an error message that tells you, where you interupted the calculation? If yes,...

plus de 14 ans il y a | 0

Réponse apportée
help with plz
Hi, if y and x are vectors, then abs((y./K)-x)<1e-5) is a (logical) vector as well. You will need to decide, if the relation ...

plus de 14 ans il y a | 0

| A accepté

Charger plus