Answered
how can i find the mean and standard deviation of a plot????
It would be much simpler if you followed the suggestions IA has given, but since each subplot seems to be a *stem* of some varia...

12 years ago | 1

| accepted

Answered
import data from txt file with strings
Use *textscan* instead; it can deal with non-regular data (with help from the formatting strings passed). It will return cell a...

13 years ago | 0

| accepted

Answered
Add a constant to just one column
If your array/matrix is x x(:,1)=x(:,1)+1900;

13 years ago | 3

Answered
User defined function runs without inputs
Not unless the function is modified to check the number of inputs and branch around the calls to _input_ and supplies some value...

13 years ago | 0

Answered
how to combine 2 columns together?
You'll have to do this w/ a specific format... >> fprintf('%d%%,%.1f\n',x') 0%,1.0 >> While I used a 2-element vector...

13 years ago | 0

Answered
How can i plot a term of a function divided by the previous term of said function?
yrat=y(2:end)./y(1:end-1); plot(x(2:end,yrat) the choice of which x to use for the abscissa is somewhat arbitrary, maybe...

13 years ago | 0

Answered
Different answers at different computers but same code
Welcome to the world of Monte Carlo simulation...your two runs are using different sequences of random numbers. ... St(i...

13 years ago | 1

Answered
fopen problem How does it work?
fid=fopen('VarName3.txt','r'); atensao=fread(fid,'float'); fclose(fid); Surprising got anything that reasonable. ...

13 years ago | 0

| accepted

Answered
Error with Matlab Function
You wrote a function with the variable name in the definition line but never assigned a RHS to it. SOTOO function ab = y...

13 years ago | 0

| accepted

Answered
error using fopen-- too many input arguments
??? Error using ==> fopen Too many input arguments. Error in ==> readstdtcdata at 89 f = fopen(filename,'r', 'n', 'ISO-8859...

13 years ago | 0

| accepted

Answered
IF / ELSE Usage within For loop for Specific Iteration Only
iskp=[9 10 12 14]; j=1; for i=1:15 if i==iskp(j) && j<=length(iskp) j=j+1; % do whatever else here ...

13 years ago | 0

Answered
selecting filenames from a dir list
Far simpler would be to simply return the ones you want... d=dir([dirname\template_???.asc"); for i=1:length(d) %pr...

13 years ago | 0

Answered
Large Text File Import
c=reshape(textread('2013067b.txt'),'%f',-1,'delimiter','\t','headerlines',9),24,[])'; Sometimes the older tools are the be...

13 years ago | 0

Answered
Selecting folders in a specific order
Simplest for a limited case such as this is to simply enumerate -- ADDENDUM: Include empty directory test/skip and example g...

13 years ago | 0

| accepted

Answered
How to convert a DXF file into a format readable by MATLAB
<http://images.autodesk.com/adsk/files/acad_dxf0.pdf> You could also search FEX for ready-made code for Matlab directly or ...

13 years ago | 0

Answered
need code for to convert character into matrix form
attn: b.suchitha@gmail.com messg: double

13 years ago | 0

Answered
Error using ==> horzcat CAT arguments dimensions are not consistent.
Since you say you're trying to construct a feature _vector_ from the expression fv1=[ meanGL, st_d1, sk1, rms1, md1]; ...

13 years ago | 0

| accepted

Answered
Hi. I have a 880*3 matix including one normal vector and 3 vertices repeated for a cylinder. I want too remove duplicated points .
Use the optional parameters _'rows','stable'_ with *unique* doc unique for more details.

13 years ago | 0

Answered
Open an application from Matlab and send a txt input file automatically
!your_executable_name <your_inputfile_name May want to actually build a batch file you dispatch instead and let that file t...

13 years ago | 0

Answered
Polynomial fitting with multiple independent variables
Z=zeros(size(p)); % intercept term X=[Z p t c p.*p t.*t c.*c p.*t p.*c t.*c]; % 2nd order design matrix c=r\X; ...

13 years ago | 1

Answered
Importing via csvread and having dates in 'm/d/yyyy h:mm' format.
From _help csvread_ -- "M = csvread('FILENAME') reads a comma separated value formatted file FILENAME. The result is ...

13 years ago | 0

| accepted

Answered
How can i convert the numeric numbers stored in a table into the binary numbers with some condition?
Sure...apply to the choice of attributes by column for your situation, simply a single vector given as example here... >> x...

13 years ago | 0

| accepted

Answered
dynamic name for matrices
No you don't. To see why (and alternatives) see the FAQ at <http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2...

13 years ago | 0

Answered
How can I reduce the distance between the axis and their title?
The position is set by the _'position'_ property and changing fontsize doesn't affect it (as you've noticed). You'll have to re...

13 years ago | 0

Answered
How to retain matrix # of columns & rows (format) when exporting from Matlab to ascii text file
There's certainly no indication in the documentation that *dlmwrite* has any such limitations. The following works just fine he...

13 years ago | 1

Answered
Timeseries syncronized by time
Convert all to _datenums_ with *datenum* and then you can a) plot on a common axis and automagically they'll line up correct...

13 years ago | 1

Answered
I need help extracting block data from text files.
Caution--air code, not tested... As suggested earlier, use *textscan* in a loop. I'd put in a function with an internal func...

13 years ago | 0

| accepted

Answered
How to compare two rows in a cell {n x 1}
For what definition of compare? all(x{n,:}==x{m,:}) maybe for n~=m, <N=length(x)?

13 years ago | 0

Answered
Is it possible to change the upper end for the runtime variable of for loop during it's runtime?
No, the limit is stored and not updated even if the limit variable is modified...this is easily enough tested (and it's in the d...

13 years ago | 1

| accepted

Answered
writing a 16-bit binary file
doc fwrite

13 years ago | 0

Load more