Answered
Extraction a certain part out of Matrix
out = findseq(X,2); [m,idx] = max(out(:,end)); [r,c] = ind2sub(size(X),out(idx,2)) _r_ and _c_ are the row and column of ...

14 years ago | 0

Answered
How can I display values to one decimal place?
sprintf('%10.1f',10.231214321)

14 years ago | 0

Answered
Convert a string cell value to representative datas
Con sidering that I created a temp.txt containing: 0,+,ESI,ms1,-,line,1.1-790.4,275,1.1 41,1.2 30,1.6 10,1.7 24,1.9 30,1.9 20...

14 years ago | 0

| accepted

Answered
Use of regress function in Matlab version 7.11.0 R2010b
type ver to check that the statistics toolbox is installed

14 years ago | 1

Answered
Writing a file with columns
*EDIT* T_DB = rand(1,10); T_DP = rand(1,10); RH = 1:10; fid = fopen('16.csv','w'); %Opens the file fprintf(fid, ...

14 years ago | 0

| accepted

Answered
Data Acquisition Board
http://mechatronics.poly.edu/SMART/pdf/publications/PICMatlabPaper.pdf

14 years ago | 0

Answered
search a particular number in a cell array and return the index of the cell array that is found
% Index to the number within the cell out = cellfun(@(x) find(x == 157536),cc.PixelIdxList,'un',0); % Index to the cell ...

14 years ago | 0

| accepted

Answered
how to get update data from uitable to pushbutton callback
set(handles.uitable2,'data',magic(m,n)) where _m_ and _n_ should match the dimension of you uitable.

14 years ago | 0

Answered
Branching if statements when determining the days of the week
d = datenum('08/22/1989','mm/dd/yyyy') datestr(d,'dd-mmm-yyyy') *EDIT: no builtin date fcns* % Input: mm/dd/yyyy s = ...

14 years ago | 0

| accepted

Answered
Ascending order-room modes
Your code can be vectorized to: c = 344; % speed of sound (m/s) w = 2.20; L = 3.50; h = 3.02; % AXIAL MODES ...

14 years ago | 0

| accepted

Answered
Reset xlabel position
delete(h) % instead of reset

14 years ago | 1

| accepted

Answered
Manipulation of different size of matrices with strings and numbers
In addition to Nathan's suggestion if you have the stats toolbox you can use directly a <http://www.mathworks.com/help/toolbox/s...

14 years ago | 1

| accepted

Answered
html link with publish
%% % <C:\report.html MyReport>

14 years ago | 0

Answered
??? Output argument "feature" (and maybe others) not assigned during call to...
Foo function: function a = foo() A = 1; end Now call it >> out = foo Error in ==> foo at 2 b = 1; ...

14 years ago | 0

Answered
How to generate data with a specific distribution
If you have the stats toolbox with <http://www.mathworks.com/help/toolbox/stats/random.html random> you can chose from a set of ...

14 years ago | 1

Answered
matlab database
You can also use the wrapper I wrote, it should be clearer how to connect to MS SQL Server: http://www.mathworks.com/matlabcentr...

14 years ago | 0

Answered
How to add variables created in function to workspace?
function [a,b] = myFun(X) a = X/2; b = X*2; end If you write your function in this way and then call it a...

14 years ago | 1

Answered
Opening Browser in Matlab
I get google with: web('www.google.com','-browser')

14 years ago | 0

Answered
negative r squared
http://www.minitab.com/en-IT/support/answers/answer.aspx?ID=1037&langType=2057 Regressing through the origin doesn't give the...

14 years ago | 0

Answered
Newbie question - converting a vector into a cellarray of vectors
% To cell C = repmat({X},N,1); % To mat cell2mat(C) cat(1,C{:})

14 years ago | 0

| accepted

Answered
How to read a .csv file with text and numbers? How to create a for loop to do the same function for 1000 times?
1) fopen the file 2) Import first line with the following syntax: C = textscan(fid, 'format', N, 'param', value) in your ca...

14 years ago | 3

| accepted

Answered
How to make a unique vector
http://www.mathworks.com/matlabcentral/fileexchange/30854-unsorted-set-operations

14 years ago | 0

Answered
How do I superimpose a pdf over a histogram?
also see <http://www.mathworks.com/help/toolbox/stats/histfit.html histfit>

14 years ago | 0

Answered
How do I convert an RGB image to CIEXYZ colorspace?
If you have the Imgae processing Toolbox

14 years ago | 2

| accepted

Answered
Bode
You may not have the Control System Toolbox. To check that type ver in the command window.

14 years ago | 1

Answered
Q-Q Plot versus a Student-t distribution
From the documentation of the qqplot: _" *qqplot(X,PD)* makes an empirical quantile-quantile plot of the quantiles of the dat...

14 years ago | 0

Answered
finding an observation that belongs to a range
Use x2 = quantile(B,0.1:0.1:.9); x3 = histc(A,[-inf x2 inf]) But you'll have to throw away the last value of x3 (unl...

14 years ago | 1

Answered
Bloomberg BLP API and Fill
The function you're using is probably _blb.timeseries_: timeseries(b,s,daterange,intv,fld,varargin) Now the MATLAB doc h...

14 years ago | 0

Answered
standard deviation of a 3d matrix
std(test,[],3) The second argument refers to wheter you want the std to be corrected for the degrees of freedom or not. For m...

14 years ago | 3

| accepted

Answered
Use of for loop and vectorization for creating an array
randi(240,320,'uint8')

14 years ago | 0

| accepted

Load more