really useless
i thought it can may help our students to get a first introduction as a little guide line.
but it is even useless for that too.
it is better to spend time in the matlab help just to get more used with it.
15 Jun 2009
Sudoku
This is a Sudoku game that is able to generate new games by itself.
Author: Zhen Qian
programm cant recognize, if there are 2 possibilities to fill in the numbers and dont show a message that you are finish, if you did it in the second way.
very nice.
but if i plot some data, it looks fine
if i wanna plot new data, the axis the smaller and smaller by each time i type the plot command
just try this:
scrollplot(plot([-10:0.01:10]',sin([-10:0.01:10]')),'axis','xy');
scrollplot(plot([-10:0.01:10]',sin([-10:0.01:10]')),'axis','xy');
scrollplot(plot([-10:0.01:10]',sin([-10:0.01:10]')),'axis','xy');
scrollplot(plot([-10:0.01:10]',sin([-10:0.01:10]')),'axis','xy');
scrollplot(plot([-10:0.01:10]',sin([-10:0.01:10]')),'axis','xy');
scrollplot(plot([-10:0.01:10]',sin([-10:0.01:10]')),'axis','xy');
i can follow till 5th step of 4.6
than gmake gives me this out put
C:\123\add1_grt_rtw>gmake -f add1.mk
C:/PROGRA~1/MATLAB/R2008b\sys\lcc\bin\lcclnk -s -LC:/PROGRA~1/MATLAB/R2008b\sys\
lcc\lib -o ../add1.exe add1.obj add1_data.obj rtGetInf.obj rtGetNaN.obj rt_log
ging.obj rt_nonfinite.obj grt_main.obj rt_sim.obj @add1_ref.rsp
*** Created executable: add1.exe
this donot match with step 4.6 - 6 so what am i doing wrong?
please help i need it real bad and real fast
i am using make 3.81 compiler
hi everybody.
I have a problem. when I attemp to use gmake -f ($NAMEMODEL).mk I receive this error:
??? Undefined function or method 'gmake' for input arguments of type 'char'.
if I use the command :
!gmake -f ($NAMEMODEL).mk
it works but I can not see what gmake is dooing, the only output is :
>> !gmake -f controller.mk
gmake: `../controller.exe' is up to date.
can someone explain me hot to solve this problem? or please send me the code that I need to continue?
Many thanks,
Gian
Good stuff here. Thanks! I'd just like to add a little bit. For those who don't know pascal, please see the python script pasted below. This can be used to test your dll. This specific example is for 3xinput and 2xoutput:
from ctypes import *
# first make some hooks into the impported functions
initiateController = cdll.controller._initiateController
getControllerOutput = cdll.controller._getControllerOutput
performCleanup = cdll.controller._performCleanup
# This makes python realise that the function outputs are pointers to c_chars
initiateController.restype = c_char_p
getControllerOutput.restype = c_char_p
performCleanup.restype = c_char_p
print "\n\nInitiate"
errMsg = initiateController()
print "initiateController reports : ", errMsg
print "\n\nNow to do some stuff"
inputDoubles = 3*c_double
inputData = inputDoubles(2.5, 3.0, 1.0)
p_inputData = pointer(inputData)
outputDoubles = 2*c_double
outputData = outputDoubles(0.0, 0.0)
p_outputData = pointer(outputData)
#The following line shows two different methods for passing the pointers in
errMsg = getControllerOutput(c_int(3), p_inputData, c_int(2), byref(outputData) )
print "getControllerOutput reports : ", errMsg
print "output[0] = ", outputData[0], "\noutput[1] = ", outputData[1]
print "\n\nCleanup"
errMsg = performCleanup()
print "performCleanup reports : ", errMsg
Comment only