Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by joe3

  1. joe3

    Help on Matlab 7.0 book

    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...
  2. joe3

    use of imtool or imcontrast function

    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
  3. joe3

    edit colorbar

    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...
  4. joe3

    How can I use MATLAB to perform a least squares estimation?

    Hi, Use xcorr (Signal processing toolbox). Read the help (or doc). Joe The new BSTeX- Equation viewer for Matlab7 http://www.geocities.com/bstex2001
  5. joe3

    plot problem. I'm new in MatLab

    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...
  6. joe3

    Removing perspective effect

    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...
  7. joe3

    Saving plots straight to PS without displaying

    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...
  8. joe3

    Image Processing - Enhancement, Plz HELP!!

    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...
  9. joe3

    Complexity of QUAD function

    Hi, Quad uses recursive adaptive Simpson quadrature. Joe BSTeX- Equation viewer for Matlab http://www.geocities.com/bstex2001
  10. joe3

    Imaging Porcessing Toolbox

    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...
  11. joe3

    Matlab and Visual Basic

    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
  12. joe3

    How to plot a plotyy in an gui

    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)...
  13. joe3

    translating an image

    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...
  14. joe3

    Plotting errorbars of multiple datasets- Please help

    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...
  15. joe3

    Command History

    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...

Part and Inventory Search