|
First
|
Prev |
Next
|
Last
Pages: 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463
Passing parameter function pil(choose) persistent im switch choose case 1 [im, res_im]=open_im case 2 if isempty(im) display('Image is empty'); return; end %blck should have some value otherwise it is going to crush im_trans=block(im,blck) end So if you put the persistent im than it should work. the only thing ... 19 Jun 2008 01:18
Passing argument between functions Every object in Matlab has a UserData Property. Where you can save information. For Example you can save the current y values in the figure UserData. Something like that. f=figure; y=1:10; set(f,'userData',y); sampleFcn; %some function taht is going to get this data function sampleFcn f=gcf; y=get(f,'... 19 Jun 2008 01:18
How To Open Existing GUI in GUIDE I have a GUI I've created using GUIDE, but I moved the .m and .fig files to a new directory (made more sense for organization in code repository). Now I cannot open the file in GUIDE because it is apparently looking in it's history for any 'existing' GUIs. If I try to open the .fig file, it simply executes ... 19 Jun 2008 01:18
spirals and knots I am trying to make a program that will give me the coordinates of a spiral. Inputs would be like the number of spirals, the direction of the spirals, the direction of the normal vector. Any ideas or good websites anyone knows about? ... 19 Jun 2008 01:18
using sub2ind on multi dimensional matrices "Bruno Luong" <b.luong(a)fogale.fr> wrote in message <fuauva$726$1(a)fred.mathworks.com>... "ra ti" <monarc_74_NOSPAM(a)yahoo.com> wrote in message <fuau1b$ac5$1(a)fred.mathworks.com>... function out = myfunc(x,varargin) now, to do ndgrid(2,1:4,3), I can do: [s1,s2,s3]=ndgrid(varargi... 19 Jun 2008 01:18
mex unresolved external symbol error "Richie Cotton" <richierocks(a)nospam.gmail.com> wrote in message <g3bd6u$cb8$1(a)fred.mathworks.com>... I'm trying to understand how Mex files work, and I'm working my way through the built-in examples. Most work fine, but the 'dynamically allocating memory' example throws an error. In this exampl... 19 Jun 2008 05:29
Question about OO design in 2008a I've been playing with the new OO features in 2008a, but have no previous experience with OO programming. One thing that is frustrating me is the fact that the constructor (or another private method) for each class is forced to use the set/get methods which I would like to define only for public access to the class.... 19 Jun 2008 01:18
mlfSetErrorHandler() in matlab version 5.3! I have some old mex C code that I need to compile with newer version of matlab. The code uses mlfSetErrorHandler() function to control how errors are displayed handled. I am unable to find the equivalent in 2007b. I did a google search but didnt come up with anything that'd get me closer to an answer. mlfSetE... 19 Jun 2008 01:18
Reading data from textfiles using MCR Hello, I have made a MATLAB program that involves reading data in from a text file. This works fine in MATLAB and even compiles fine (using the mcc command to call the MATLAB Compiler). However, when I run the exe, it gives me the error that it cannot fine the textfile and does not open the program as a result.... 19 Jun 2008 14:44
engPutVariable error "ankur " <ankur_28(a)yahoo.com> wrote in message <g3bgn9 $j0d$1(a)fred.mathworks.com>... GCC version 4.2.3 Matlab 7.4 (r2007a) for Unix OS: 32-bit Ubuntu 8.04 When I call engPutVariable(), I get this error message: ??? Error using ==> load Can't read file stdio. Has anyone see... 19 Jun 2008 01:18 |