Answered
How to increase table size according to the input data (with GUI)
Yes, the uitable is "resized" depending on data. Try %% figure, t = uitable; %% set(t,'Data',magic(10)) ...

13 years ago | 0

Answered
Running MATLAB efficiently from windows command line for faster "unzip and read" process.
It might be an alternative to run Matlab as an activeX Server.

13 years ago | 0

Answered
Can I combine character data and numerical data in a fprintf statement
Yes, that is a bit strange. I made a little experiment: >> fprintf( 1, '%c,%7.3f\n', [ 122, pi, 122, pi ] ) z, 3.14...

13 years ago | 1

Answered
Why does my Class take up less room than my variables?
I made a little experiment with R2012a and the default mat-file version, i.e. v7.0. It uses compression. * created an objec...

13 years ago | 0

Answered
How to: Control Histogram bin width
Try doc histc

13 years ago | 0

| accepted

Answered
Is there a better way to capture the output of an external program?
These two lines are from my code. However, I don't know if it's better or even possible in your case mlb_cmd = sprintf( ...

13 years ago | 0

| accepted

Answered
Reading and grouping data from file
*Hint:* * read the file and find the row numbers of "TIME": ixt * read the file a second time one block at a time controlle...

13 years ago | 0

| accepted

Answered
textscan question skip lines
See my answer <http://www.mathworks.se/matlabcentral/answers/58463-read-data-form-file> and the answer that I link to.

13 years ago | 1

Answered
Not enough computer memory to train the data...
* Putting the training data in a memmapfile might help. * standard answer: memory is cheap

13 years ago | 0

| accepted

Answered
Complicated Matrix Data filtering
Try [~,~,raw] = xlsread( fullfile( pathname, filename ) );

13 years ago | 0

Answered
Pre-allocating Arrays and Optimizing memory
Are you aware that textscan can skip columns when reading, e.g '%f%*f%f' reads the first and third column and skips th...

13 years ago | 3

| accepted

Answered
Matlab Listbox GUI No Selection
I have trouble understanding your question. Isn't there one negation too many? However, * regarding "fake mouse click" read ...

13 years ago | 0

| accepted

Answered
String to Variable conversion?
You might find dynamic field names useful. Doc says: Generate Field Names from Variables [...] For exa...

13 years ago | 1

| accepted

Answered
Is it possible to set watchdogs (memory, exec time) in MATLAB?
I think it is possible to implement a watchdog based on side effects of conditional breakpoints. Here is a demo of the approach....

13 years ago | 2

Answered
How to extract the first and last position for each ones series ?
Try find( diff( X ) == 1 ) + 1 find( diff( X ) == -1 )

13 years ago | 0

Answered
I keep on getting the error "Attempted to access y(2); index out of bounds because numel(y)=1. Error in intoff (line 11) e=y(n-1)+y(n);" some one please help.
With n==2 in the inner loop e=y(n-1)+y(n); the error occurs because y(2) is not defined at this stage; y is a scalar....

13 years ago | 0

Answered
Strings from a text file to a matrix containing double precision floating numbers
If the file isn't huge (compared to available RAM and address space) and you have an idea of the maximum number of columns "colu...

13 years ago | 0

Answered
How to print figure precisely to A4 without scale
Did you search for a solution in the File Exchange? <http://www.mathworks.se/matlabcentral/fileexchange/23629-exportfig export_f...

13 years ago | 0

Answered
matlab code error - Subscript indices must either be real positive integers or logicals.*
The debugger will tell you. Put the code in a function. Execute dbstop if error in the command window. Run your func...

13 years ago | 0

Answered
Is it good or bad thing to use handle() constructor on MATLAB Handle Graphics numeric handles?
* it is good to stick to documented features * see <http://undocumentedmatlab.com/>, search for handle

13 years ago | 0

Answered
Read data form file
See <http://www.mathworks.se/matlabcentral/answers/37437-textscan-reading-after-a-specified-term-or-a-row-and-writing-matrix TEX...

13 years ago | 0

| accepted

Answered
TEXTSCAN Reading After a specified term(or a row) and writing matrix.
This file poses two problems when using TEXTSCAN. # The number of headerlines is not known beforehand. # The number of c...

13 years ago | 1

| accepted

Answered
Which tool are you using to create the documentation of your MATLAB codes?
<http://www.artefact.tk/software/matlab/m2html/ M2HTML: Documentation System for Matlab in HTML> has been around and supported f...

13 years ago | 3

| accepted

Answered
Resize figure window to reduce whitespace?
Search FEX for "tight plot": * <http://www.mathworks.se/matlabcentral/fileexchange/39664-subtightplot> * <http://www.mathwor...

13 years ago | 0

| accepted

Answered
run a script inside another script
That's what functions are for. Convert EPSO to a function function global_best_solution = ESPO_fcn( indata, if, needed...

13 years ago | 0

| accepted

Answered
Can matlab have command that invalid a lot of command lines together?
%{ this is a comment this is a second comment %}

13 years ago | 1

| accepted

Answered
Faster way to initilize arrays via empty matrix multiplication?
_... got me to the *link* above..._ I cannot find the link you refer to. . The Windows task manager shows that ...

13 years ago | 1

| accepted

Answered
how to read values from sqlserver
See: * <http://www.mathworks.se/help/database/ug/database.html Database Toolbox> * the FEX contribution <http://www.mathwor...

13 years ago | 0

| accepted

Answered
Simulation of a function with loops
* with Matlab this is a script, not a function * I'm not sure I understand your question * the code doesn't explain why the re...

13 years ago | 0

| accepted

Answered
Error when manipulating values on a matrix
The statement caudal_bombado_c1(ii,jj)=200; in if (Populacao1(ii,jj)==1) caudal_turbinado_c1(ii,j...

13 years ago | 0

| accepted

Load more