Answered
How can I isolate data from a large input file?
I suggest not using a new variable but indexing into the one. A very useful coding scheme easy to deal with. To find the d...

13 years ago | 1

| accepted

Answered
How to read a portion of file?
Not nearly as efficiently as the above solution, no. To do it on the fly while reading means processing each record one-at-a-...

13 years ago | 0

| accepted

Answered
Function variable not being recognized.
You didn't return the outputs of *ValidateTime* to any variables when called so the local values within are lost. Matlab does _...

13 years ago | 1

Answered
Shadowing built-in functions
I use the strategy of trying to not then fixing it if do... :)

13 years ago | 2

Answered
REGRESS FUNCTION CALCULATION DETAILS
Draper and Smith, _Applied_Regression_Analysis_ is one readily accessible text. *regress* just implements the basics; it's pr...

13 years ago | 0

Answered
Argument of Normal Distribution
doc norminv >> normcdf(1) ans = 0.8413 >> norminv(ans) ans = 1 >>

13 years ago | 0

| accepted

Answered
how to Differentiate 3D points
See doc gradient maybe? Look at alternate syntax with spacing inputs not just minimum case.

13 years ago | 0

| accepted

Answered
Testing to see if an if or elseif value is equal to a range of values?
Matlab == for a vector (your [1:6]) is T iff all elements match. Since there's only one constant it can at most match one of th...

13 years ago | 0

Answered
How to fix this error while creating a Matlab Array
imageDir=('C:\Users\loona\att_faces\*a.JPG'); faceData=dir(imageDir); for i=1:length(faceData) faceData(i).image=imrea...

13 years ago | 0

| accepted

Answered
Need help with reading few row of my data and saving it in a new txt file
Probably simplest to copy a few lines from A to B is to just use *fgets()* -- SOTOO (NB: aircode...) fid1=fopen('yourinp...

13 years ago | 0

| accepted

Answered
How do you make for get one/zero output?
disp([i'>7.5 o'>0.55]) ?, maybe?

13 years ago | 0

Answered
Export Sorted Columns to Existing File
Steps: fopen for rw read sort frewind write fclose repeat 'til done...

13 years ago | 0

Answered
Plotting time series with NaN?
_Before I tried using this Increment code, it plotted the correct points but with a wrongly labeled x-axis (every minute instead...

13 years ago | 0

| accepted

Answered
Plot and legend for two loops
IIUC, you want to plot each column in the PIvectorM array... Just use the vector form for input to *plot* N=length(HidLa...

13 years ago | 0

| accepted

Answered
Aligning 2 signals using cross correlation
doc xcorr Seems like I answered this and gave an example application not _that_ long ago (then again, it could have been on...

13 years ago | 0

Answered
How to plot multiple days' worth of data without overlapping?
You don't say in what form your time data is encoded, but the easiest solution is to convert it to Matlab _datenum_ serial dates...

13 years ago | 0

| accepted

Answered
finding non-discrete frequencies in FFT
frequency resolution df is 1/T = 1/(Ndt) So, for baseband analysis to get higher resolution must have longer sample time at g...

13 years ago | 1

Answered
Reading mat or ascii files
Simplest would be if your application that created the files were consistent in naming them such that the _.mat_ extension were ...

13 years ago | 1

Answered
how to Sort on the basis of a particular column
Your data are cell strings not numeric values, hence the resulting sort is on the collating order of the characters, not the num...

13 years ago | 1

Answered
I have a mat-file of 1-by-500001 matrix. I want to create a 1000-by-1000 matrix from it. How to do this?
Do you want the first 1000 elements or a 1k X 1k array as the title says? They're not commensurate. Either way; pick the N t...

13 years ago | 0

Answered
Multiple Linear Regression using "REGRESS"
s=sprintf('y = %.2f*ax1 + %.2f*x2 + %.2f*x3 + %.2f', b); text(x,y,s) _b_ is the coefficient matrix from *regress*; _x_, _y_...

13 years ago | 0

Answered
manually label contours when there are two different contour plots on one graph
Use the 3-input form of *clabel* clabel(CS, H, V) % label contours in V for handle H doc clabel % for more details

13 years ago | 0

Answered
How give B(10,20) of matrix B black color?
B(10,20,:)=0;

13 years ago | 1

| accepted

Answered
Create a matrix with a text file- how to specify data I want in the matrix?
Generally it's much simpler to just read the file then select the subset desired for further manipulation.

13 years ago | 0

Answered
How to change the values (numeric and strings) of variables of an m.file with GUI
Look at doc listdlg doc uigetfile and referenced friends therefrom for simpler, prepackaged dialogs that may be what ...

13 years ago | 0

| accepted

Answered
How can I save a series of variables in workspace to a txt file?
data1 = 1; data2 = 2; data7 = 3; data10 = 5; Don't do this; as you've discovered "there be dragons". Us...

13 years ago | 0

Answered
Undefined function 'start' for input arguments of type 'double'.
_"which start" ... tells me the following:_ C:\Program Files\MATLAB\R2013a\toolbox\matlab\iofun\@timer\start.m __It would ...

13 years ago | 0

| accepted

Answered
Function is not defined for 'cell' inputs
_??? Error using ==> sprintf Function is not defined for 'cell' inputs._ That's correct; either use sprintf(fmtstring,ch...

13 years ago | 1

| accepted

Answered
Passing byte array to Matlab as if read by imread
That's all there is -- there's no header info returned by *imread* Presuming the image format is one w/ 8-bit or less resolut...

13 years ago | 0

| accepted

Answered
Delete Rows with a specific condition
x(~any(x(:,3:end),2),:)=[];

13 years ago | 1

| accepted

Load more