Answered
How to read in a text file that has two different formats.
I'd do it a little differently...bring the file into memory and eliminate the bum lines, then scan from memory. >> file=tex...

12 years ago | 1

Answered
imfinfo unable to open a file
info = imfinfo([video_dir],'jpg'); Because you didn't give *imfinfo* a legitimate file name...it's simply looking for a fil...

12 years ago | 2

Answered
updating function list in a script.
>> help rehash rehash Refresh function and file system caches. rehash with no inputs performs the same refresh operati...

12 years ago | 2

| accepted

Answered
Import Large Text File instructions
The first example reads the data in sets "blocks" of 5 repeats of the lines matching the format string. Since there are two gro...

12 years ago | 1

Answered
Conversion of time series- hour resolution to minute resolution!
>> round(interp1([0 1],[0 1],0:.1:1)) ans = 0 0 0 0 0 1 1 1 1 1 1 >> Genera...

12 years ago | 0

Answered
How can I download SSE2/SSE3 instruction set?
SSE2 is hardware component of the CPU; can't change what that is. About the only possibility other than a hardware failure is...

12 years ago | 1

| accepted

Answered
Problem with tick marks on second y-axis
_...the following command ... doesnt work. Whats my problem?_ set(AX(2),gca,'YTickLabel',[0,5,10,15,20]) Got too many ha...

12 years ago | 1

| accepted

Answered
how to extract element from column vectors
Don't do that!!! For why not and alternatives see the FAQ <http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C...

12 years ago | 0

Answered
how can i convert the 1 sec file to 1 min by averageing the reading of each 60 rows and the program repeat it every 60 rows?
The Matlab "trick" for this is to rely on memory storage order... x=mean(reshape(x,60,[])).'; leaves column vector of th...

12 years ago | 1

| accepted

Answered
Reading a all the rows in a CSV file
_...I ran the code with 020101.csv file, the fid produced was 9 but when I ran the same code after changing the same code to 014...

12 years ago | 0

Answered
Reading a all the rows in a CSV file
out = textscan(fid,'%s%f$f','delimiter',','); What's the '$f' in the format string intended to do? Eliminating it should s...

12 years ago | 1

| accepted

Answered
Why won't Matlab save any new m. files?
<http://www.mathworks.com/matlabcentral/newsreader/view_thread/337227> Again I say, "ask TMW" directly on this one...

12 years ago | 0

Answered
superscript in xlabel when from array
ylabel('Temperature (^{o}C)') altho look better with ylabel('Temperature (\circC)') What release? I surely get no...

12 years ago | 1

Answered
Matrix betweenness - how to?
You asked for my utility function *iswithin* -- >> type iswithin function flg=iswithin(x,lo,hi) % returns T for value...

12 years ago | 1

Answered
Read 2 and 6 columns of multiple .csv files with different file names
From help dlmread dlmread Read ASCII delimited file. ... All data in the input file must be numeric. dlmrea...

12 years ago | 0

Answered
How to read and take a part of data of a text file in MATLAB?
For a file with your three rows above... >> fid=fopen('phan.dat'); >> c=textscan(fid,'%f %s','delimiter',' ') c = ...

12 years ago | 1

| accepted

Answered
How can I add a set of 500 datas to workspace and plot them?
Start with the FAQ at <http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F> I strongly recommend usi...

12 years ago | 0

| accepted

Answered
How to read some specific columns from xls file with matlab
Unless there are a very large number of columns being ignored, far simpler to just read the whole spreadsheet then eliminate the...

12 years ago | 5

Answered
Question on CATEGORICAL and Help files
a) Can't -- *nominal* or *ordinal* create the categorical array from an existing array--no other method is provided. b) *doub...

12 years ago | 0

Answered
How can I change the default function used by Matlab?
The problem is _not_ that it's a double; the problem is that you passed a full 3D array to a 2D-limited function as the error sa...

12 years ago | 1

Answered
Computing with multiple files
_...how to calculate mean and detrending with error..._ doc mean % for a) Don't know what _...detrending with error_ mea...

12 years ago | 0

Answered
strange behavior of function leading to complex numbers
if xdata <= x(1) ... _...in my understanding, for every xdata<=x(1) the function should return zero._ Your have a...

12 years ago | 1

| accepted

Answered
getting error Error using ==> ProbDistUnivParam.fit at 98 FREQUENCY values must be non-negative integers.
obsCounts = [2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9]; ... pd = fitdist(bins','Poisson','Frequency',obsCounts'); ... _obsCou...

12 years ago | 2

Answered
How to put unknown no. of elements array in one array from a loop?
factorsarray=cell2mat(arrayfun(@factor,p_prd,'uniformoutput',false)); returns an array of all factors in one horizontal vec...

12 years ago | 2

| accepted

Answered
who can help me solve the error appearing in matlab cftool
f = if(x<=x0-b*((c-1)/c)^(1/c), y0, y0+a*((c-1)/c)^((1-c)/c) * (abs((x-x0)/b+((c-1)/c)^(1/c))^(c-1)) * ... ...

12 years ago | 0

Answered
Excluding data on log scale
The "trick" w/ *cftool* is to "Print to figure" from the File Menu wherein you can use the figure editor to change axes properti...

12 years ago | 0

Answered
How can i use dummyvar in fitlm
*dummyvar* can also use categorical variables as well as numeric grouping

12 years ago | 0

Answered
wrap text with disp.
Seems like reasonable enhancement request -- mayhaps TMW official support can suggest a workaround meanwhile.

12 years ago | 0

Answered
Regression with several dummy variables
Given the response to the previous question, should be just y=A{1}(2:end,2); % y response variable x=A{1}{2:end,3:en...

12 years ago | 1

Load more