Answered
obtain information on excel files
You could open the file using actxserver (see doc) and make your way through the file using methods and properties. It probably ...

14 years ago | 0

| accepted

Answered
output of evalc
But you could try something similar: p = s{2}; [a,b]=system(['dir /B "' p '"']); It took about half the time of the ...

14 years ago | 0

Answered
roots in Simulink
Hi Cosmin, I took a look at the implementation of roots for the Embedded MATLAB Function block (<matlabroot>\toolbox\eml\lib\...

14 years ago | 0

| accepted

Answered
find the coherence
Hi, yes, you will need to interpolate them onto some common time vector to reasonably compare them. For the comparison probab...

14 years ago | 0

| accepted

Answered
roots in Simulink
Hi Cosmin, up to roundoff error both solutions are fine. If you take the second solution and compute the polynomial within MA...

14 years ago | 0

Answered
roundoff function not working
Hi, which "roundoff"? The functions for rounding are round, ceil, floor, fix ... Titus

14 years ago | 0

Answered
mex and parallel
Hi Xiaochun, I'm not sure why you want to compare the code with spmd and without. Running the same code within spmd will alwa...

14 years ago | 0

Answered
Matrix of eight nearest neighbors
Hi Marlene, this should not be that difficult, I guess? One of the next four neighbors you would get by adding the line [-1 -...

14 years ago | 0

Answered
Will Matlab ever support indexing of GPU arrays?
Hi Kevin, indexing is supported since R2011a, see http://www.mathworks.com/help/toolbox/distcomp/rn/bsuaink-1.html Titu...

14 years ago | 4

Answered
error in converting cell value
Hi, A = cell2mat(a2.D1) Titus

14 years ago | 0

| accepted

Answered
Zooming in and out removing
Hi, O.K., I think I've found it: you need to move the camera far away from the object, so add the following line after the "v...

14 years ago | 1

| accepted

Answered
Generating A Step Like Function In MATLAB.
Hi, in this case I would take a look at the output of stairs, e.g. [x,y]=stairs(1:3, 2:0.5:3) x = 1 2 ...

14 years ago | 0

| accepted

Answered
COmpiler
Hi, usually you do this by implementing a custom target for RTW. Search the MATLAB doc for "custom target development" and th...

14 years ago | 0

| accepted

Answered
selecting and removing all grey pixels in an RGB image
Hi Sara, the trick is to change the image from NxMx3 to (N*M)x3: % store the size s = size(I); % make I a matrix w...

14 years ago | 0

Answered
selecting and removing all grey pixels in an RGB image
Hi, what about looking for all pixels that are somewhat "greyish"? Instead of R, G and B exactly the same you could test ...

14 years ago | 1

| accepted

Answered
Generating Step Function In MATLAB.
Hi Pranjal, take a look at the function stairs that makes this task rather simple ... Titus

14 years ago | 0

Answered
compiler
Hi, if this helps: any program outside MATLAB can be called using system, e.g. system('"c:\program files\codewarrior\cod...

14 years ago | 0

| accepted

Answered
Pack several files in one .p file
Hi, what you can try (it works, as long as you don't have subfunctions somewhere with the same name as .m files): append all .m...

14 years ago | 0

| accepted

Answered
Zooming in and out removing
You should mutually disable the "other" functionality: when you do a rotate3d on add a zoom off and vice versa. ...

14 years ago | 1

Answered
To split a matrix into equal parts.
Hi, depends if you need the intermediate 16 matrices or only the 16x16 matrix. The latter would be simply A = rand(128,1...

14 years ago | 0

Answered
Failed to eliminate a call to the MATLAB function 'quadprog'.
Hi, taking a look at the <http://www.mathworks.com/help/toolbox/eml/ug/bq1h2z7-11.html list of supported functions> it looks ...

14 years ago | 0

| accepted

Answered
Textscan issues
Hi, you are on the right way: read everything as strings: v = textscan(fid, '%s %s %s %s %s %s %s', 'headerlines', 2); ...

14 years ago | 0

| accepted

Answered
Optimizaation problem in matlab
Hi Sukuchha, it doesn't matter how complex your function is or how many lines it has. What you need to do is (conceptually) s...

14 years ago | 0

| accepted

Answered
MATLAB is not a fully oop yet... why is this?
Another aspect: you might well stick to the functional programming paradigm in MATLAB, if you like. My personal view would be to...

14 years ago | 2

Answered
place uitable in a GUI by code ?
Hi, yes, you might do in the callback of your pushbutton something like handles.mytable = uitable('units', 'normalized',...

14 years ago | 0

| accepted

Answered
Other Problem with VideoWriter and zbuffer renderer
Hi, yes, OpenGL is the only renderer capable of transparency. I tried your example and it works fine for me (using OpenGL ins...

14 years ago | 0

| accepted

Answered
Insert Date, Time, Created By, Modified by... etc file properties in m-file
I guess probably no. But usually you can use tokens in your file when you have your functions/programs under source control (lik...

14 years ago | 0

| accepted

Answered
about memory cost for MDCE
Hi, Some clarification: by "node" you mean "worker"? So when starting your workers each worker consumes 1.5 GB without runnin...

14 years ago | 0

Answered
Mex
Hi, the return statements in the switch-case block are suspicious: you are leaving the mex file without entering the "passing...

14 years ago | 0

Answered
save or write variables in function file
Use the function save? ;-) Titus

14 years ago | 0

Load more