Hi,
There is a new book published and recommended by MTW. I, personally have no idea if it is helpful.
MATLAB & Simulink Based Books:
Mastering MATLAB 7
by Duane Hanselman and Bruce Littlefield
Prentice Hall, 2005
ISBN 0-13-143018-1
Joe
The new BSTeX- Equation viewer for Matlab7...
Hi,
You can enter the gray level range as an extra input to imtool.
You can also force the range by manually enter the minimum and maximum values in the contrast adjustment tool.
Joe
The new BSTeX- Equation viewer for Matlab7
http://www.geocities.com/bstex2001
Hi,
The colorbar is another axes object. Create it with an output handle:
hxc=colorbar;
Or catch it:
hxc=findobj(gcf,'Type','axes','Tag','Colorbar');
You can change its properties as you do for any axes object (e.g., 'Ylim').
Joe
The new BSTeX- Equation viewer for Matlab7...
Hi,
Find the curve intersection with the vertical lines x=-3 and x=3: j1 and j2 (indices);
Create 2 vectors 1) Y1=[0 y(j1:j2) 0]; % [x, y] original vectors
2) X1=[ -3 x(j1:j2) 3];
Use fill.m :
hold on
fill(X1,Y1,[0.8 0.8 0.8]);
I hope this helps.
Joe Sababa
The new...
Hi,
There is an image processing toolbox in Matlab. As a part of it there are image special transformation tools. You can find there an example of creating a prespective from a regular image using affine method. You need the inverse matrix to do the opposite.
As for openGL, Matlab supports it...
Hi,
In order to save the plots you need a figure object with an axes object on it. The figure can be invisible. Do the following:
hf=figure('Visible','off');
hx=axes('Parent',hf)
for n=1:N
plot(x(:,n),y(:,n),'Parent',hx);
print(hf,'-deps',['tryplot' num2str(n)])
end
Note: By default the new...
Hi,
What I did once is to make a copy of imadjdemo.m (Image processing toolbox) and change it for my needs. This allow for interactive change of histogram, brightness and gamma until you get the best results. You can get out the final parameters for use in imadjust function for other images of...
Hi,
Did you enter a colormap as a second argument?
Use: imshow(X,[]) % X is your matrix
to let the function choose it for you, or: imshow(X,gray(256))
Joe Sababa
BSTeX - Equation viewer for Matlab
http://www.geocities.com/bstex2001/
Joe
BSTeX- Equation viewer for Matlab...
Hi,
Try this reference:
http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/ch07cl25.html
Joe
BSTeX- Equation viewer for Matlab
http://www.geocities.com/bstex2001
Hi,
Plotyy is a 2 axes figure (one on top of the other). The upper axes is transparent (color:'none') with no Xticks (Xtick:[]) and yaxis on the right hand.
You can create it using GUIDE with other objects.
To use it:
H=guihandles(gcf);
plot(1:rrows,r,'parent',H.axes1)...
Hi,
1)get the screen size:
>> D=get(0,'screensize');
2) get the half screen dimensions:
x=D(3)/2;
y=D(4)/2;
3)create a figure in the lower left corner:
4)figure('position',[1 1 x-1 y-1])
load the image into a matrix and display it :
M1=imread('imagename.ext');
imagesc(M1)
5)repeat for the...
Hi,
Arrange, for example, your data sets in cell array.
Create a cell array of color spec:
Col={'k' 'b' 'c' 'r' 'y' 'm'}
Then loop:
for n =1:N
errorbar(X{n},Y{n},e{n},Col{n});
hold on
end
legend('series 1','series2;,'series 3', ...)
Joe Sababa
BSTeX - Equation viewer for Matlab...
Bob,
Here is the documentation:
refdir
d = prefdir
d = prefdir(1)
Descriptionprefdir returns the directory that contains preferences for MATLAB and related products (matlab.prf), the command history (history.m), the MATLAB shortcuts (shortcuts.xml), and the MATLAB desktop layout files...
Hi,
Use fzero for the functions difference F=f1-f2.
help fzero
FZERO Scalar nonlinear zero finding.
X = FZERO(FUN,X0) tries to find a zero of the function FUN near X0.
Joe Sababa
BSTeX - Equation viewer for Matlab
http://www.geocities.com/bstex2001/
Joe
BSTeX- Equation viewer for...
Hi,
Try to make a library file containing all your functions and then link it with the main program using the mcc of Matlab.
I believe there is an example in the Matlab compiler help.
Joe
BSTeX- Equation viewer for Matlab
http://www.geocities.com/bstex2001
Joe
BSTeX- Equation viewer for Matlab...
Hi,
In order to be able to debug a mex file you have to compile it with the -g switch. The debug itself is done using the c\C++ compiler. Details depends on the kind of compiler you are using.
Joe
BSTeX- Equation viewer for Matlab
http://www.geocities.com/bstex2001
Joe
BSTeX- Equation viewer...
Hi,
muoseside=get(gcf,'SelectionType');
You will get 'normal' for left click and 'alt' for right (or mid) click. Joe
BSTeX- Equation viewer for Matlab
http://www.geocities.com/bstex2001
Hi,
As far as I know, you can't.
Instead create an axes object, set its colors (background color, Xcolor and Ycolor) to gray, [0.78 0.78 0.78], than plot on it a rectangle object:
rectangle('Curvature',[0.1 0.1],'position',[0.1 0.1 0.8 0.8])
It look exactly as a frame and you can put over it...