How to define an array of input in s function builder?
Hi I am new to matlab and it will be great if you could help me out with this very small problem. I have an array of input, say, x of length 5 and other normal scalar inputs. How to define x inside s function builder? Like for other inputs (scalar), i define it as static real_T a,b; (if a & b are other inputs). ... 25 Nov 2009 23:55
Matlab Conflict with Windows system dll user32.dll
It seems I have problems with launching Matlab R2009b for windows XP. The error I get is: The system DLL user32.dll was relocated in memory. The application will not run properly. The relocation occurred because the DLL Dynamically Allocated Memory occupied an address range reserved for Windows systems DLLs. The ven... 25 Nov 2009 14:55
interp3
Hi, This is probably a basic question, but I haven't worked that much with matlab yet. I am outputting data in 3d mesh using matlab using 3 independent parameters. I have a problem with interpolating the data as I can't get the commando interp3 to work. If someone could show me a concrete example of using inte... 27 Nov 2009 12:10
how to use ndgrid with N dimensions
Hi everyone, let me explain my problem with an example % A two dimensional example: % Let's assume you have the following two dimensional grid data points X = [1 6;3 7;5 2;8 1;10 0]; % In order to use griddatan for interpolation I need to convert these into a monotonously spaced grid like: [x1,x2] = ndgrid( mi... 25 Nov 2009 13:47
Contrast Slider
I'm having a problem similar to the user that started this thread. In my GUI, the user presses a pushbutton and selects an image (.bin format) which is displayed in an axis (image_display). No problems there. Pushbutton Callback %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % PUSH ... 25 Nov 2009 11:30
Copy & Paste a GEOSHOW Figure
When I save or copy & paste a figure (2-D color contour plot) created by the GEOSHOW command, it always results in the contour plot disappearing (except for when I save it as a .fig file). The axes, labels, and even color scale/legend all copy perfect...but the contour plot in the middle of it all just disappears. I ... 25 Nov 2009 11:29
find in which triangle algorithm
Hello, I have a matrix of points, and a simple patch of triangles. I have the indices of those triangles and the coordenates of the vertices. I need to find in which of the triangle, is each point. p is the matrix with the points tri are the indices of the triangles in the form [12 13 14, 21 2 3, etc] face_tria... 26 Nov 2009 06:28
double stochastic matrix
I have to generate in matlab a matrix with main diagonal zero, with row sum equal to 1 and to be symetrix. Please can anybody help me to give the .m file or to give some advices. ... 4 Dec 2009 17:23
recurrent neural networks
hello has any one an example about the simulation of recurrent neural networks by neural networks toolbox of matlab . or any book that speaks about the neural networks toolbox , i red the user 's guide but i need a more references in this subject because i want to model a dynamic system by a recurrent neural networ... 25 Nov 2009 10:22
Formatting a cell in Excel file using xlswrite
Hi, I'm using xlswrite to transport a matrix from MATLAB to Excel. I want my output in the Excel file to be in the format of dollars and cents (hence, only to two decimal places). However, MATLAB is sending it to Excel in four decimal places. I've tried using "format bank" and "fprintf". But, of course, fprintf won't w... 25 Nov 2009 14:55