Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Search results for query: *

  • Users: joe3
  • Order by date
  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...
  16. joe3

    Intersecting functions

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

    How to create a dll file from some C files and Object files with mex

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

    How to debug a Mex-C file?

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

    ButtondownFcn, right or left mouse button?

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

    Re: Can I place a axes on top of a frame in guide

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

Part and Inventory Search