Answered
How to write a loop to count the number of instances of a certain number occurring in each row?
Use the second, optional argument to sum-- s=sum(m==2,2); % doc sum for details...

11 years ago | 0

| accepted

Answered
How to plot data in block?
Knowing the length of the data sections makes it pretty easy even though they're not regular in the file-- fid=fopen('yourf...

11 years ago | 1

| accepted

Answered
How to plot to multiple y-axes
After you've got the data, then hAx=plotyy(x,y,x,y2); % doc plotyy for details...

11 years ago | 0

| accepted

Answered
'Logical' function to read 2 variables and output to a new variable
Sorry, I didn't see the previous response. Your dataset isn't complete, but presuming it is, then d=a(b==1); % only the...

11 years ago | 1

| accepted

Question


Forum File Attachments Broke?
It appears attachment file links using paper clip are being treated as simply hyperlinks and a page is opened with the attached ...

11 years ago | 1 answer | 0

1

answer

Question


XLSREAD() Bug(?) -- Fails to return empty columns in xlRegion
Just discovered a _nasty_ apparent bug in *xlsread* -- column of data is something like M012345 NAME FUND empty empty VAL1...

11 years ago | 0 answers | 0

0

answers

Answered
How to set text size in axes units?
set(text_handle,'FontUnits','normalized') See doc text % text properties for further details...

11 years ago | 1

| accepted

Answered
How to fit a base(excluding the peak) of a curve and subtract the fitted base with its corresponding unfitted curve
But despite not having the data set for viewing/testing, sure... ix=[1:9 23:length(x)]; % include points b=polyfit(x(...

11 years ago | 1

Answered
I have an array of data from a sensor which varies from positive to negative continuously. I want to find the peak value of each set of positive numbers and negative numbers.
>> findpeaks(X(X>0)) ans = Columns 1 through 10 4.5190 4.5260 3.3360 3.1910 2.4630 1.8080 1.7...

11 years ago | 0

| accepted

Answered
How to plot function with multiple outputs on same graph
figure plot(theta2(:),[theta3open(:),theta4open(:)]) figure plot(px,py) *NB:* The (:) ensures the vectors are col...

11 years ago | 0

Answered
make calculations with excel file data
OK, that's one interpretation but seems unlikely that that's what you really, really intend...that's going to "blow up" to an ex...

11 years ago | 0

Answered
Finding rows with the closest values in two matrices matlab
Well, B is sorted on column one in ascending order; if they're the same size vectors the closest you can get globally is to ...

11 years ago | 0

Answered
Splitting columns of Excel files
A=reshape(A,size(A,1),200,[]); then iterate over planes to save.

11 years ago | 0

Answered
linspace in trouble for axe modification
... d=get(S.duree, 'String'); t=linspace(0,d,l); _d_ is a character variable of length of however many characters it ...

11 years ago | 0

| accepted

Answered
How to change in sequences of files each output of two for loops one inside the other
Just write a specific format string for the variables as needed... filename=sprintf('m100profilen%03d%03d.txt', m,n); NB...

11 years ago | 1

| accepted

Answered
If values are approxximately the same plot one function, if not plot two
Presuming the 'all' in _"if all values are similar"_ means a pointwise comparison between the two vectors of same length, then ...

11 years ago | 0

| accepted

Answered
Simpson's Rule, answer inaccurate ?
0.842 is solution to the error function, erf(1). _BUT_, the error function is normalized such that INT(0,inf)=1 so is defined a...

11 years ago | 1

Answered
I have large number of precipitation daily data in a column (for 50 years) for 221 meteorological stations. Now I need to convert it to monthly sum. How can I do that? thanks.
Probably the better way to approach this presuming a new (>=R2014) would be to convert the array to a *table* and use grouping v...

11 years ago | 0

Answered
Probability distribution for a mean wind speed
From doc wblplot-- _"The purpose of a Weibull probability plot is to graphically assess whether the data in X could come from...

11 years ago | 0

| accepted

Answered
Regarding Software for my portfoli
Matlab and Simulink are full-featured computational platforms; almost certainly you can whatever it is you wish with either/both...

11 years ago | 0

Answered
Could anyone can help me with a question about function workspace?
The definitions in the function are local and the dummy arguments are assigned values by position, _NOT_ by association of name ...

11 years ago | 0

| accepted

Answered
Reading text file coordinate point
_"...I tried using textscan(fileID, '%d')"_ (0.2, 0.8, 0.5) values are floating point, not integers so %d won't work and you ...

11 years ago | 0

Answered
What is the order of the parameters in the fit?
The fittype object is built with the assumption of using the coefficients a, b,c,... in models as assumed in alphabetic order un...

11 years ago | 0

Answered
hi, how to use strsplit function to split a line of string into multiple lines when a predefined number of characters is reached?
s=reshape(s,L,[]); Requires rem(length(S)/L)=0, of course.

11 years ago | 0

Answered
datetick does not set x-ticks accurately
Kirby got the root cause; there's one other issue I'd warn about...I recommend strongly against using *linspace* or other floati...

11 years ago | 1

| accepted

Answered
How can I read a file with two different set of columns and multiple delimiters
Not clear what the two rows at the beginning of the green section are--are they also header rows or actually data? Also, is the...

11 years ago | 0

Answered
I want to input this fractions i.e. 1/2+1/3.. How can i get answer in same format i.e. in fractions?
>> format rat >> 1/2+1/3 ans = 5/6 >> format short >> 1/2+1/3 ans = 0.8333 >>

11 years ago | 3

Answered
Load the numeric data of a cyclic text file into a matrix
No matter what you do it likely is going to take a while if the file is that large. But, reading it is pretty straightforward.....

11 years ago | 0

Answered
recalling the values as a row matrix
Preallocate _theta_ before the loop... theta=zeros(1,nmc); Then, store each value when computed by writing theta(i)...

11 years ago | 0

Answered
how to merge two text files in one
Simplest here is probably just brute force...open an output file, then open each input in succession, copying lines (excepting f...

11 years ago | 0

| accepted

Load more