Answered
Create one matrix of different sized vectors
data = nan(max_vector_length,10); for ii = 1:10 data(1:size(pieceii),ii) = pieceii; %pseudoish code end How you have you...

14 years ago | 0

Answered
What is the return mean by weibfit
What version are you using? doc weibfit in R2011b tells me to use |wblfit| doc wblfit explains the outputs.

14 years ago | 0

Answered
questdlg
How is this function running? Does it just take a while? Is it in a |while|-loop? If it operated by a |timer|? If it's ope...

14 years ago | 0

Answered
Meshgrid for logarithmic scales
Set the corresponding scale to _'log'_ h = figure; A = axes; surf(magic(10)); set(A,'XScale','log') The explanation is in: ...

14 years ago | 3

| accepted

Answered
solving equations numerically
fzero(@(x)((1/exp(x) + 1/exp(x*exp(0.2))))/exp(0.5)-0.8832,pi)

14 years ago | 0

| accepted

Answered
Problems Graphing Function: Any Help Would be Appreciated
_v_ is a vector so you need to divide by it elementwise: p=(1/((r+z*tan(ang))^2))*exp((-e*f*z)./(pi*v*(r^2+z*tan(ang)))); ...

14 years ago | 0

Answered
why program is not giving plot after execution?
perhaps you need to add a |drawnow| at the end of your code (or the end of a |for|-loop (i.e. the last line inside the |for|-loo...

14 years ago | 1

| accepted

Answered
Using Multiple X- and Y-Axes doesn't work ?
hl2 = line(x2,y2,'Color','k','Parent',ax2); You're trying to put the line on parent axes _ax2_ which does not exist. Does ...

14 years ago | 0

Answered
Figure count
h = findobj('type','figure'); n = length(h); And you can set the properties of all three at once using their handles - ...

14 years ago | 18

| accepted

Answered
Shortcut for previous line of code during a loop?
No. There is not. A workaround is to put all of this in a function which prompts you each time, but stores the old variable ...

14 years ago | 1

Answered
Extracting frames using mmreader and calculate and substract mean from data
xyloObj = mmreader('xylophone.mpg'); %Make a 4d rgb volume V = zeros(xyloObj.Height,xyloObj.width,3,xyloObj.NumberOfFra...

14 years ago | 1

| accepted

Answered
Sending data to MatLab using PutWorkspaceData
Try single quotes: Matlab.PutWorkspaceData('A', 'base', data) MATLAB uses single quotes to denote strings.

14 years ago | 0

Answered
Parametric variable names
<http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F FAQ:4.6> The method you have n...

14 years ago | 0

Answered
Concatenate Cellarray and cell2mat
How about a |for|-loop with |cell2mat| on each row? Xv = cell(size(X,1),1); for ii = 1:length(X) Xv{ii} = cell2mat(X(...

14 years ago | 0

Answered
setappdata
set to the root directory and you can access from anywhere even after the gui figure is closed. set(0,'mydata',magic(4));...

14 years ago | 0

Answered
variable selection problem
B = aaa(3:end)

14 years ago | 0

| accepted

Answered
quiver plot
_'unode'_ is not a defined quiver group property, it's a vector of u-velocities that you're feeding into quiver. quiver propert...

14 years ago | 0

| accepted

Answered
Why Matlab indexing for Matrices is not the same as that of Vectors?
docsearch linear indexing Gives a good set of explanations. The only time a row vector is returned from a linear index col...

14 years ago | 0

| accepted

Answered
find row with certain values
How about |ismember| with a |for|-loop? doc ismember Example A = [1 5 6; 5 4 3; 9 4 2]; want = [4 5]; szA = size(A,1);...

14 years ago | 1

Answered
Array Division
doc mrdivide is a good place to start.

14 years ago | 1

Answered
how to find euclidean distance for an image
doc bwdist doc graydist might be some places to start.

14 years ago | 0

Answered
Does Matlab Use All of a PC's Memory?
Sure. 32 bit MATLAB still has a threshold of around 4gb maximum but 64bit MATLAB on a 64 bit machine can have as big an array as...

14 years ago | 0

| accepted

Answered
Perform sequential feature selection for classification of noisy features - code explanation
doc function_handle Is possibly be a good starting point to help clarify the above code.

14 years ago | 1

Answered
displaying classification image
Use |label2rgb| with custom built colormap: for blue green red Limage = your_label_image; map = [0 0 1; 0 1 0; 1 0 0]...

14 years ago | 0

| accepted

Answered
how to increase the resolution of latitude longitude gird ???
It looks like latitude and longitude can be fed in as vectors to |geoshow|. There are some good examples in: doc geoshow

14 years ago | 0

Answered
4D Image array to video (.mpeg or .avi)
doc movie2avi Sounds like it might interest you.

14 years ago | 0

| accepted

Answered
Numerical packing
Alright, here goes!! |accumarray| is certainly a part of it, as is |ga()| the awesome genetic algorithm function. So yes, Globa...

14 years ago | 1

Answered
how to write a function checking to see if a file is in a format of a 2 row matrix, and then creating separate arrays for each row
if size(A,1)==2; X = A(1,:); Y = A(2,:); else error('Fail!'); end

14 years ago | 0

Answered
beginer| basic problem with bad plot results
a=0.2; b=0.8; c=20; t=linspace(0,2*pi,50); x=abs(b+a*sin(c*t)).*cos(t); y=abs(b+a*sin(c*t)).*sin(t); z=a*cos(c*t); plot3(...

14 years ago | 0

Answered
Get 95% Confidence Values from Fit Coefficients
per comments: doc confint will explain how to extract the confidence interval parameters from a _fit_ object.

14 years ago | 0

| accepted

Load more