Answered
Index exceeds matrix dimensions when writing to text file?
How should the output file to look like? *|'%s\t %s\t %s\t %s\t %s\t %s\n'|* &nbsp Why both tab and space? The conversion...

11 years ago | 1

Answered
reading mixed format csv data with empty value '-'
If the file together with the parsed result fits in memory try >> out = cssm('cssm.txt') out = 1.0e+05 * ...

11 years ago | 1

Answered
If statement error code mistake - string input too long not working...
elseif char(editString) > 12 I guess your intention is elseif length(editString) > 12

11 years ago | 1

Answered
How to sort file when reading them with dir ?
See * <http://www.mathworks.com/matlabcentral/fileexchange/10959-sort-nat--natural-order-sort sort_nat: Natural Order Sort, b...

11 years ago | 2

Answered
Import and format CSV file
_"bank format for point(.),"_ and _"converts the period (.) to a comma (,) code to import"_ &nbsp I don't fully understand. The ...

11 years ago | 2

| accepted

Answered
matrix multiply even and odd by different value
Try this script %% NL=4;NV=6;xiz=0.011e-3;f=1; zj = repmat((1:NL),NV,1); a = pi; %% [C,R] ...

11 years ago | 0

| accepted

Answered
Uneven Table concatenation issue
Not *|0|*, *|NaN|* is a better choice. The documentation on *|table|* discusses missing data at length , e.g. <http://se.ma...

11 years ago | 0

| accepted

Answered
how to read text file into formatted array
Here is a function, which does what I believe is what you want. The third column of *|out|* is a serial date number. ...

11 years ago | 1

| accepted

Answered
How to read specific part of the text file?
With Matlab there are many ways. The one below is one of them. Regard the first five lines as a "header" and use *|textscan|*. ...

11 years ago | 3

| accepted

Answered
How to extract data from .inp file (text file) which is in different rows
Search the FEX: <http://www.mathworks.com/matlabcentral/fileexchange/index?utf8=%E2%9C%93&term=Abaqus Abaqus> and if that doe...

11 years ago | 1

Answered
Use data from matlab function "tomonthly"
Old memories awake, a long time ago we had to use *|getfield|* and *|setfield|* with *|structs|* >> s.f=17; >> getf...

11 years ago | 1

| accepted

Answered
flow in the pipe
The inner for-loop overwrites *|va|* one hundred times. The outer for-loop draws the "same" image one hundred times in the same ...

11 years ago | 1

| accepted

Answered
writing some parameters from mfile on txt file and problem with some parameters
_"before"_ >> MakeVar() Undefined function or variable 'fid'. Error in MakeVar (line 3) fprintf(fi...

11 years ago | 2

| accepted

Answered
??? Too many input arguments Error
There are two errors in your call of the function * The function is defined with two output arguments, *|[Coord,Ep]|*. The ca...

11 years ago | 0

Answered
extract part of a string with an extension
Here is a solution(?) based on *|regexp|* >> cac = cssm; >> cac{:} ans = MOD11C1.A2013001.005.201301522170...

11 years ago | 1

| accepted

Answered
textscan: skipping rows with missing data
*_"columns are separated by tabs"_* |textscan| should take care of missing data automagically! &nbspReplace |'Delimiter', ','...

11 years ago | 1

Answered
What is the best way to learn how to program the avionics for a UAV.
Search the File Exchange. You will find <http://www.mathworks.com/matlabcentral/fileexchange/43719-ar-drone-simulink-developme...

11 years ago | 1

Answered
Formatting output text file problem
Try >> fprintf( '%10.8f\n', 1 ) 1.00000000 and see <http://se.mathworks.com/help/matlab/ref/fprintf.html fprintf...

11 years ago | 1

Answered
Cannot clear classes in MATLAB 2013 without closing the session
I'm still using R2013a. I encounter this annoying "issue" * Since R2008a * When there is still a reference somewhere to som...

11 years ago | 1

Answered
uint8 and double in case of image
Try %% a=imread('lena.jpg'); imshow(a); %% b=double(a); imshow(b/255);

11 years ago | 0

| accepted

Answered
match a word/string
|if file(i,1)=='GDD51'| &nbsp will not work for two reasons *Firstly*, the comparison is made position by position. The resul...

11 years ago | 1

| accepted

Answered
Find beta parameters from data
If you have Statistical Toolbox then see <http://se.mathworks.com/help/stats/beta-distribution-1.html Beta Distribution, Fit, ev...

11 years ago | 1

Answered
question about the 'stuct' of matlab?
That's the way the function *|struct|* is designed to work. See <http://se.mathworks.com/help/matlab/ref/struct.html struct, Cre...

11 years ago | 1

| accepted

Answered
In the latest version of Matlab's Editor, how do I increment the value of a variable and re-execute the cell?
Select a number, right click, choose "Increment Value and Run Selection" <</matlabcentral/answers/uploaded_files/21612/Co...

11 years ago | 1

Answered
How to import a txt file with specific format
If the entire file fits in memory I recommend that you * read the entire file as character * extracts the "numerical chun...

11 years ago | 1

| accepted

Answered
Can REGEXP be utilized in searching M x N matrix values?
If the entire file fits in memory I recommend that you * read the entire file as character * extracts the "numerical chun...

11 years ago | 0

| accepted

Answered
Logical indexing for matrix
Replace L=logical(idx); by L=logical( all(idx,2)); |idx| is already logical, no need apply the function, |l...

11 years ago | 1

Answered
I think there is a system error.
This is the expected behavior of the function, |exist| >> exist( {'plot'} ) Undefined function 'exist' for input arg...

11 years ago | 0

Answered
How to generate string without space at the beginning?
|num2str| creates a _*rectangular*_ character array. The "extra" space can be moved to the end of the string. If that's ok Re...

11 years ago | 1

Answered
How to have the data for each iteration for a for loop?
Replace H1(:,:) by H1(:,:,i) and initialize |H1| before the loop. &nbsp *Addendum* "initialize" i...

11 years ago | 0

| accepted

Load more