Answered
Need to make a nested loop
Is this what you try to do? With my variable names %% n = 11; P = 1 : n; % the simplest data I can t...

11 years ago | 0

Answered
how to put in zeros in the empty spaces of a matrix read by xlsread()?
Try M(isnan(M))=0; &nbsp *In response to comments:* See the on-line documentation on |xlsread|. This is copied f...

11 years ago | 1

| accepted

Answered
Matlab questions from newbies.
See <http://www.mathworks.com/matlabcentral/fileexchange/10070-units-and-dimensions-suite-for-matlab Units and Dimensions Suite ...

11 years ago | 2

Answered
Need to make a nested loop
See <http://www.mathworks.se/help/matlab/polynomials.html Polynomials, Curve fitting, roots, partial fraction expansions>

11 years ago | 0

Answered
Combining variable from several m files to one
_"Is it possible?"_ &nbsp yes _"If yes how?"_ &nbsp See example below *Comments:* * _"1x1 matrices"_ &nbsp that's a sca...

11 years ago | 0

Answered
access specific element from importfile
Example >> fid = fopen( 'complex.txt' ); >> cac = textscan( fid, '%f%f%f%f%f%f', 'Delimiter', ',', 'Whitespace'...

11 years ago | 0

Answered
Skip records in a text file
_"Is there a capability in MATLAB of skipping N rows"_ The only one I can think of is the |Headerlines| of <www.mathworks.se...

11 years ago | 0

Answered
How can I read from a file into a char array?
Try str = fileread( filespec ); num = double( str ); nch = histc( num, [1:255] ); % fix [32:255] A litt...

11 years ago | 2

| accepted

Answered
outputs in my function
I made a couple of changes to you function and tested. * _"Output argument "rueda1" (and maybe others) not assigned during c...

11 years ago | 0

| accepted

Answered
Overloaded method defined in class definition, not working
I made a classdef-file according to you description. It works as expected (R2013a). >> t= cssm_tree t = ...

11 years ago | 0

| accepted

Answered
Textscan read too many lines
In this order * See <http://www.mathworks.se/help/matlab/ref/xmlread.html xmlread, Read XML document and return Document Obje...

11 years ago | 0

| accepted

Answered
check String for letters ?
One way is_num = not( isnan( str2double( str ) ) ); or is_num = not( isnan( str2double( get(handle.editbox,'Str...

11 years ago | 0

| accepted

Answered
[DEPRECATED] What frustrates you about MATLAB?
I found an old bug of mine. I had failed to initiate a logical property and Matlab didn't care. %% logical_expressio...

11 years ago | 0

Answered
Load multiple text files one after another
See <http://www.mathworks.com/matlabcentral/answers/154540-run-code-on-multiple-files-within-a-directory#answer_151509> &nbsp...

11 years ago | 0

| accepted

Answered
[DISCONTINUED] Wish-list for MATLAB Answer sections.
*Is it worth to elaborate an old answer that's been accepted*? Will anybody ever read it? &nbsp *Wish:* &nbsp A symbol t...

11 years ago | 0

Answered
Problem with matrix indexing in for loop
Here are some links on debugging in Matlab * <http://blogs.mathworks.com/videos/2012/07/03/debugging-in-matlab/ Debugging in ...

11 years ago | 1

Answered
Hi guys. I need help splitting a number into its individual parts and then add them. E.g. the number would be 1994 = 1 + 9 + 9 + 4 = 23
A one-liner with a lot of Matlab >> sum( arrayfun( @(a) str2double(a), num2str( 1994 ) ) ) ans = 23 or e...

11 years ago | 1

Answered
scatter plot color setting.
Those simple circles are patch objects. (There is a lot to read about patches in the documentation.) Try ch1 = get(...

11 years ago | 0

Answered
Connect scatter line in multiple y axis
Add this line to the code line( x, y2, 'Parent', ax(2) ) |plotyy| adds two axes on top of each other with ax(2) on top...

11 years ago | 0

| accepted

Answered
Matlab loads part of huge file
My guess is that row number 17504 of your file contains something that causes |importdata| to stop reading. A little experime...

11 years ago | 1

Answered
How can I plot these graphs?
Regarding multiple y-axis see the FEX-contributions and search for more * <http://www.mathworks.com/matlabcentral/fileexchang...

11 years ago | 0

Answered
Peculiar behavior of lookfor
If the current directory is in the path |lookfor| seems to scan it twice A little experiment in R2014a >> version ...

11 years ago | 2

Answered
index of box plot outliers
Try this m = randn(48,12); e = eps(max(m(:))); boxplot( m ) h = flipud(findobj(gcf,'tag','Outliers')); % f...

11 years ago | 2

| accepted

Answered
how to read text file and to ignore the first 10 rows and to take only the 4rth and 5th columns?
Try cac = textscan( fid, '%*f%*f%*f%f%f%*f%*f', 'Headerlines', 10 ); Doc says: &nbsp _*%** &nbsp Skip the field. ...

11 years ago | 0

| accepted

Answered
Read fixed file format with multiple new line characters?
Matlab is neither good at reading fixed format nor files with multiple blocks of data. It requires a little "program" to read yo...

11 years ago | 0

Answered
How to save and then append/augment a matrix into another already existing matrix?
See <http://www.mathworks.se/help/matlab/ref/matfile.html matfile, Access and change variables directly in MAT-files, without lo...

11 years ago | 0

| accepted

Answered
Run code on multiple files within a directory?
Try sad = transpose( dir( '*.extension' ) ); for file = sad disp( file.name ) end and see ...

11 years ago | 1

| accepted

Answered
Matching substrings with regexp
AFAIK: That is not possible with Matlab's regular expression. Recursion is needed. With Perl (and other languages it is possible...

11 years ago | 1

Answered
Set a time limitation on algorithms
See <http://www.mathworks.com/matlabcentral/answers/59491-is-it-possible-to-set-watchdogs-memory-exec-time-in-matlab Is it possi...

11 years ago | 0

Answered
How to find the location of the first cell which contains a specific value in an array?
I'm not sure what you mean by _"cell"_. Hint: %% m = randi( [0,1], [12,12] ); n = nan( 2, 12 ); for ...

11 years ago | 1

| accepted

Load more