function handle
Hello, Can someone help me on this ? Suppose I have the following function defined in an m-file. ============= function grad=testfn(x) grad=[]; %grad = x end ============= The I type the following in command line. checkfn(@testfn) In checkfn, I want to test whether grad=[]. "isempty(grad)" doesn't... 1 Apr 2010 12:21
MATLAB PlC interface
Hi, I'm trying to work with an interface between MATLAB and WAGO PLC. I want to use plc outputs as variables in matlab and also I am going to use matlab outputs as PLC inputs. Could you help me with this? Thanks, Begum ... 1 Apr 2010 10:07
D-optimal Design with different levels
Hi mates, I would like to build a D-optimal Design uisng matlab with the following information: y=b0+b1 x1+b2 x2+b3 x3+b4 x1^3 +b5 x1*x2 when X1: 5 levels (-1, -0.5, 0, 0.5, 1) X2: 2 levels (-1, 1) X3: 2 levels (-1, 1) with N runs. Many thanks Tohid ... 1 Apr 2010 09:01
Interface between MATLAB and PLC
Hi, I need an interface between MATLAB and WAGO PLC. I want to use the plc outputs as inputs in matlab and matlab outputs as plc inputs too. I'm using the software CodeSys for WAGO PLC. Could you help me with the interface ? Thank you, Begum ... 1 Apr 2010 09:01
Trying to subplot two-axis plots
I've plotted six charts each with bar (left y axis) and line (right y axis) graphs with grids that align on both y-axes. When I try to plot them as subplots I only see the line charts and only the last subplot (6 of 6) contains both bar and line graphs, but the grid is messed up. Any advice? ... 1 Apr 2010 10:07
Trying to subplot two-axis plots
I've plotted six charts each with bar (left y axis) and line (right y axis) graphs with grids that align on both y-axes. When I try to plot them as subplots I only see the line charts and only the last subplot (6 of 6) contains both bar and line graphs, but the grid is messed up. Any advice? ... 1 Apr 2010 09:01
Problem with Beamforming implementation
Hi, I am doing a similar project. Did you find a solution to your problem? Z ... 1 Apr 2010 09:01
bad image
can some one explain why this image looks like this. http://www.image-upload.net/viewer.php?file=uoza80689rh78xp5xq8s.jpeg Regards ... 2 Apr 2010 07:05
Fminsearch with two vectors as initial variables
Hi All, I have the following issue. Suppose I have an objective function such as: function x = myfun(a,c) x=(a*c')^2; end where a and c are two vectors of size 1xN. If I want to search for the minimum of myfun, provided a given value, for example c=[1,1,1], I can simply type: c=[1,1,1]; x = fminsearch(@(... 1 Apr 2010 15:45
problems with adquisition card
Hi everyone, I tryto run a Mtlab demo) with my lst version of matlab 2009b to get data from the adquisition card i have, and I've got the next error: Warning: The device adaptor is not in the expected location. Expected: C:\Program Files\MATLAB\R2009b Actual: C:\Program Files\MATLAB\R2008b\toolbox\daq\daq\priva... 8 Apr 2010 08:21