First  |  Prev |  Next  |  Last
Pages: 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
Stopping a RTW executable
I am generating executable programs using Simulink / RTW. I start the programs on the command line, for example: ../myprogram I just stop them using Ctrl-C. I want to stop them cleanly, and have them go through my exit function where I clean up and disconnect from external devices. Is there a way to do thi... 30 Jul 2010 04:16
Simple oop question
I have a simple question here, because I just don't seem to get matlabs oop. I have a classdef a < handle propertries .... end methods function obj = a figure ('Closerequestfcn', @obj.my_closerereq) end function my_closereq(varargin) .... end end If I try to close the figure ... 30 Jul 2010 10:46
changing a callback from a running GUI
Is it possible to change for instance the figure's WindowKeyPressFcn from another GUI callback. when i: get(handles.figure1,'WindowKeyPressFcn') the result is a "function_handle" If i: set(handles.figure1,'WindowKeyPressFcn','GPRPlot(''WindowKeyPressAlternative'',hObject,eventdata,guidata(hObject))') when the... 30 Jul 2010 04:16
Element-wise matrix integraton
Hi there, I am having trouble with integrating a matrix element-wise with respect to two variables (r and z) using dblquad. I used two for-loops (inside a nested function) to create a 2D-matrix called Az(m,l) and I want to integrate all elements of that matrix between the same boundaries (rmin,rmax,zmin and zmax... 1 Aug 2010 00:51
What does slautosave do?
HI Folks I have been looking at a Simulink model that is running really slow, and the profiler shows that the slautosave function seems to be taking up most of the time. What does this function do? I ahve switched off the autosave function for Simulink, but it still seems to call this function. Regards Etienne... 30 Jul 2010 04:15
Mean of an image
Sir, Is the following code correct to find the mean,to count the number of times a color occurs in an image A1=mean(q); figure; hist(A1); or do i have to use conv using 5*5 or 3* 3 mask and do the padding and then find mean ... 30 Jul 2010 08:35
finding mean of quantized image
sir how can i find mean of quantized image(hsv image ,quantized to 18,3,3 bins) using filter ... 30 Jul 2010 09:40
How can i define global variable in matlab gui?
I'm an old C# user and new matlab gui user.I can define a global variable easily in C# which can be recognized by all program not one function. I have tried some step for this operation; 1-I have defined the variable; global x; x=5; 2-Then I wrote these code under; "function varargout = filename... 3 Aug 2010 16:57
Complex valued LMI
Hi I am trying to perform a complex valued semi definite programming optimization and cannot get it to work in matlab. The problem i have is as follows. Optimize tr(X) subject to X>A (1) X>B (2) X>C (3) where A, B and C are complex valued matrices. After reading the relevant section in the... 30 Jul 2010 02:07
warning
Hi, When I run my simulink, the warning below came out. Can someone explain to me about this warning. Warning: Unable to reduce the step size without violating minimum step size of 3.229357210457347e-014 at time 9.089832456038741. Continuing simulation with the step size restricted to 3.229357210457347e-014 and u... 30 Jul 2010 02:07
First  |  Prev |  Next  |  Last
Pages: 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132