Pages: 1 [2] 3 4 5 ... 10

11 -  Matlab / Matlab Programming / Re: turn on/off LED PCB with usb module

Started by scottymo87 - Last post by bluesky2076 on: August 23, 2010, 01:14:43 PM

we can open COM and turn on/turn off LEDs when we use the software programming Matlab

thanks,,,,

12 -  Matlab / Matlab Programming / Please help me about Differential Equation

Started by thanhlong6981 - Last post by thanhlong6981 on: August 21, 2010, 07:13:46 PM

Hi all!
I have a differential equation:
y”(x) – A*y(x) + B + C/(D + x)^E=0
With A,B,C,D,E are parameters of function.
I tried with "dsolve" function but my computer can't progess with all CPU and RAM.
What is mater with "dsolve"? It isn't appropriate with this case?
Can you give me a solution or code by any programing langue?
I want to show them with figure, too
Help me...

13 -  Matlab / Graphics & Image Processing / Re: reduce dimension (PCA)

Started by andrean_voo - Last post by andrean_voo on: August 21, 2010, 04:31:38 PM

hello>>>
We used PCA (Principal component analysis) recogintion  human face..It have got eigenvectors and eigenvalues. That are loof for difficult others. I had used PCA and Neural Network in the topic use Matlab..but i need know what do you want? Code in the matlab or lesson PCA...

I just wanted to code in matlab to program PCA pedestrian detection. to learn it if I've understood. if you have the code to reduce the dimension by PCA in matlab? if you have may be sent to my email?

14 -  Matlab / Matlab Programming / Re: Copying data from 1 excel file into another

Started by sneakyben - Last post by hero_hont on: August 21, 2010, 02:29:12 PM

Hi,
I am quite new to MATLAB and wish to do the following:
(I have searched for previous posts on this topic, but could find nothing that answers my questions)
 
I wish to write a script that will do the following, please could someone tell me how?

I have a directory that contains ten .xls files...
I want to copy the info from cells A100 to A110 from the 1st .xls file and put them in a new .xls file in cells A1 to A10...
Then I want to copy cells A100 to A110 from the 2nd .xls file into the .xls file described above in cells B1 to B10...

and so on... until all .xls files have had data copied from them into the new .xls file



hello you..
i thinks you using xlsread and xlswrite when you copy cells A100 to A 1100 from 2nd.xls ...
ex:
data=xlsread('dulieu.xls','sheet2');
g=0;% khoi tao du lieu
tapkiemtra=[];
for i=1:length(data)
    if maukiemtra==data(i,1)
        z=1;
        g = i
    else
        z=0;
    end
       tapkiemtra=[tapkiemtra z]
end
    t=sum(tapkiemtra)
    if t>0
    %tapkiemtra1=tapkiemtra
    %sothutu1=g
    sothutu=g+1;
    so=num2str(sothutu);
   
 %so=num2str(m11);
 %-------------------------du lieu ma vach--------------------------------------------%
 load vi_tri
  [data11,txt]=xlsread('dulieu.xls','sheet1',['A',so,]) ;
  data11=xlsread('dulieu.xls','sheet1',['B',so,]);

you referece,,, :)

15 -  Matlab / Matlab Programming / turn on/off LED PCB with usb module

Started by scottymo87 - Last post by scottymo87 on: August 21, 2010, 12:39:19 AM

So I have a PCB populated with an array of LEDs hooked up toa power source and interfaced to my computer with an Elexol USBMOD3 usb module.I am trying to use Matlab to send a signal to the usb module to turn the LEDson and off. The active pin in the circuit is the “RXD  UART – Receive Data Input” pin. So far Ihave created a serial device and opened it for writing using the following:
 
LED = serial(‘COM4’)
fopen(LED)
 
I know the LEDs work because when I short the usb module theLEDs turn on. I assume I just need to send a signal switching the pin betweenhigh and low? So my questions are:
 
1.    Is this the correct pin to be using for this?
2.    What code do I need to send to the usb module toswitch the signal to high?
 
This seems simple but I am very new to this. The link to theuser’s guide for the USBMOD3 is below which will show all the possible pins Ican use. Thanks for the help!
 
http://www.elexol.com/Download/documents/USBMOD3DS1.pdf

16 -  Matlab / Graphics & Image Processing / Re: reduce dimension (PCA)

Started by andrean_voo - Last post by hero_hont on: August 18, 2010, 11:40:21 AM

hello>>>
We used PCA (Principal component analysis) recogintion  human face..It have got eigenvectors and eigenvalues. That are loof for difficult others. I had used PCA and Neural Network in the topic use Matlab..but i need know what do you want? Code in the matlab or lesson PCA...
 

17 -  Matlab / Matlab Programming / GUIDE Calendar "Userform"

Started by Laniermami - Last post by hero_hont on: August 18, 2010, 11:21:53 AM

i think you use Gui in the matlab, Frist, we open GUI.. next write code on the command,, try use loop while, if

18 -  Matlab / Matlab Programming / Re: please help me with this matlab linear algebra

Started by phpmaster - Last post by starbinbin on: August 17, 2010, 05:52:46 PM

I can't catch these equations clearly.
But I recommand that you can use the optimasation toolbox

19 -  Matlab / Graphics & Image Processing / reduce dimension (PCA)

Started by andrean_voo - Last post by andrean_voo on: August 14, 2010, 02:22:47 PM

how to reduce dimension using PCA (principal component Analysis) in matlab??  ;)

20 -  Matlab / Matlab Programming / ieee 14 bus

Started by parth - Last post by parth on: August 12, 2010, 06:03:43 PM

matlab coding for ieee 14 bus ??

Pages: 1 [2] 3 4 5 ... 10