Answered
How to only have user select data file if workspace is empty?
The term "generic" is iffy; but for the case as actually written/posted, if ~exist('dataATI','var') % load file stuff g...

12 years ago | 1

| accepted

Answered
How can I read a .bit file which contains records of 16 Bytes each?
dat=fread(fid,[4,inf],'int32').'; should do it. doc fread for the gory details.

12 years ago | 1

Answered
how to plot cdf graph?
"The Matlab way"... Rateall= 0.5.*(log2(1+SINR1).+log2(1+SINR2)); distanceall=pdist([randomclusters{:,1};randomclusters{...

12 years ago | 0

Answered
on the meaning of doubles ...
Actually, IEEE-754 is 53 bit mantissa. For all the gory details see... <http://docs.oracle.com/cd/E19957-01/806-3568/ncg_gol...

12 years ago | 3

| accepted

Answered
New to Matlab, Trying to superimpose histograms!
Don't have Image Processing Toolbox here so can't use *imhist* directly, but I'd presume like regular *hist* and/or *bar* you ca...

12 years ago | 0

Answered
can anyone expalin num2str in the following script and what is the script doing
As mentioned above, the whole piece of code can be turned into a single output statement... I created a sample set of data as...

12 years ago | 0

Answered
Array elements not equal despite only difference being their respective end points
The "why" of the difference here I can't explain, either. It seems the internals for *colon* are somehow being generated somewh...

12 years ago | 1

Answered
can anyone expalin num2str in the following script and what is the script doing
*numstr* is inserting blanks length 8-length(theStringRepresentationOf the value _k_ passed it). The loop could be replaced by ...

12 years ago | 1

Answered
Using fopen, textscan for TXT file but each line cut off at space. How to resolve the issue?
I'm partial to inventory=textread('Master_inventory.txt', '%s', 'delimiter', '\n', 'whitespace', ''); as it saves the ex...

12 years ago | 0

| accepted

Answered
data extraction with time points from a sensor device
I'd guess w/o knowing precisely how the app works the easiest would simply be to read all the data and turn into Matlab *datenum...

12 years ago | 1

Answered
I want to extract data from a text file
Actually, there's enough info in the header lines to automate the reading after you get the first header of system time, etc., t...

12 years ago | 1

Answered
How can I apply a polynomial to a set of data?
Carrying on from where you left off... >> hold on >> plot(x,oldval-newval) % see what diff actually looks like--pretty sm...

12 years ago | 0

Answered
Extracting data from messy text file
It's just a repetitive application of *textscan*... fmt1='Time [T] %f'; fmt2='Area [V] %f %f %f Volume [V] %f ...

12 years ago | 2

| accepted

Answered
Rsquare for regresstion tree
<http://www.mathworks.com/help/stats/compactregressiontree.loss.html>

12 years ago | 0

| accepted

Answered
How to subscript in figures
For some unfathomable reason, TMW has not implemented the TeX or LaTeX interpreter for axis labels so you'll have no joy that ro...

12 years ago | 2

Answered
Plot multiple normal distributions on a single figure, using normspec()
Not with the function as written--it has the following hardcoded in its preamble code prior to plotting-- %get the axes rea...

12 years ago | 0

Answered
Plot Excel Time Series in Matlab
It's only slightly more of a problem in Matlab. What you need, specifically, is slightly dependent upon the format of the date ...

12 years ago | 1

Answered
Inserting a data column into an existing Excel file
doc xlswrite altho I'm not positive whether it'll add the other column w/o destroying existing, I _think_ it will... But...

12 years ago | 1

Answered
adjustment of the histogram bar's thickness
Use *bar* instead; much simpler to control... [n,x]=hist(data); h=bar(x,n); doc bar % for the rest of the details....

12 years ago | 1

| accepted

Answered
questions about CSVREAD when import data into MATLAB
_... The first line of CSV is head line ..._ Per the help file for *csvread*, M = csvread('FILENAME') reads a comma sepa...

12 years ago | 0

Answered
Run a code multiple times and save variables
M=5; % number of minutes P=20; % period between readings N=60/P*M; % readings expected % f...

12 years ago | 2

| accepted

Answered
Add row matrix in loop at different positions
This dynamically "growing" an array is, in general _a_bad_idea_ (tm) for performance reasons. It would better if you can create...

12 years ago | 1

Answered
convert narr model data time to datevec or datestr
Seems ok to me... >> (datenum(1999,1,1)-dn1800)*24 ans = 1744392 Convert the days to hours from the reference poi...

12 years ago | 0

Answered
How declare for the matlab matrix that an value don't is considerable ??
The size of the array has no bearing on the logic. What I said, save it to another... b=a(a~=2); Or, there's the alte...

12 years ago | 1

Answered
How declare for the matlab matrix that an value don't is considerable ??
a=a(a~=2); or a(a==2)=[]; will replace _a_. If need to keep _a_ for future reference, use the first form but assig...

12 years ago | 1

Answered
Import labview ascii text file as cell array
content = textread('filename','%s','delimiter','\n','whitespace',''); Will leave a cell array for each line. You'll have ...

12 years ago | 1

| accepted

Answered
can any body help me regarding how to find zero in my data.
Welcome to the world of floating point arithmetic!!! :) While as asked the question isn't absolutely identical you'll surely f...

12 years ago | 1

| accepted

Answered
reading multiple excel files
D:\1\1.xlsx.... to D:\10\10.xlsx _...I want to read the column of each excel sheet and store it to five variables_ Do _N...

12 years ago | 0

Answered
How to make two y-axis with use of stairs function to plot ???
_... Im using stairs function to plot, so I can't use plotyy function_ Of course you can... hAx=plotyy(x1,y1,x2,y2,@stai...

12 years ago | 0

| accepted

Answered
syntax to multiply two by two matrices with zeros in it with numbers
You've written B1 = Zl(Zl*W1(1,1) + W1(1,2) + Zg*Zl*W1(2,1) + Zg*W1(2,2)); That's trying to use the expression Zl*...

12 years ago | 0

| accepted

Load more