Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

mybm1

@mybm1
About
Posts
82
Topics
21
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • how to free memory space for 2 dimension ?
    M mybm1

    float **deviation1;
    deviation1=memory_alloc_2D(waveframesize,NUM_OF_COEFFICIENTS);

    for(i=0;i

    I am trying to free the memory space of deviation but it seem not working cause the process is killed and while checking the running process for every loop the memory size is incremented..can someone suggest where i wen wrong?

    C / C++ / MFC performance tutorial question

  • Is it possible to scroll JFrame if so den how?
    M mybm1

    Is it possible to scroll JFrame if so den how?

    Java question

  • How to set color for text in java.
    M mybm1

    ya i also observed it is not going inside the loop condition is not satisfied but i can solved it out is my logic wrong ?

    Java java tutorial

  • How to set color for text in java.
    M mybm1

    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {

       filepath ="/home/GUI/Language\_Independent/Output/Frame\_1.txt";
       file =new File(filepath);
       fileContents="";
    
    try
         {
             br = new BufferedReader(new FileReader(filepath));
       
         }
         catch(Exception E)
         {
           jLabel1.setText(E.toString());
           
         }
    
    try
         {
             while((fileContents= br.readLine())!=null)
             {
                 System.out.println("fileContents");
                 jLabel1.setText(fileContents);
                 
                 
                 String str = "a";
          
            while(br.readLine()== str) {
               
             jLabel1.setForeground(Color.red);
            }
             }
             br.close();
         }
         catch(Exception E1)
         {
             jLabel1.setText(E1.toString());
         }    
        
    
        
        
    // TODO add your handling code here:
    }         
    

    Frame_1 consist of generate text eg:abcdefgh..
    for this generated file i want to set color for specific char eg a=red so on.
    jLabel1.setForeground(Color.red);
    is not working at all.Please someone suggest and thnks in advanced

    Java java tutorial

  • how to display panel just below input panel.?
    M mybm1

    Quote:

    /*
    * To change this license header, choose License Headers in Project Properties.
    * To change this template file, choose Tools | Templates
    * and open the template in the editor.
    */

    package Speech.WavePanel;

    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileReader;
    import javax.swing.JFrame;
    import javax.swing.JScrollBar;
    import javax.swing.JScrollPane;
    import javax.swing.SwingUtilities;

    /**
    *
    * @author saikat
    */
    public class output extends javax.swing.JFrame {

    String filepath;     
    String fileContents;
    File file;
    BufferedReader br;
    /\*\*
     \* Creates new form output
     \*/
    public output() {
        initComponents();
        
       // JScrollPane.setSize(new java.awt.Dimension((xSize - graphFromScreen), graphVerticalSize));
      //  jScrollPane1.setPreferredSize(new java.awt.Dimension((xSize - graphFromScreen), graphVerticalSize));
       // jScrollPane1.setMinimumSize(new java.awt.Dimension((xSize - graphFromScreen), graphVerticalSize));
    
    }
    
    private void ScreenProperties()
    {
        
        
     jLabel1.setSize(new Dimension(800, 150));
     jLabel1.setPreferredSize(new Dimension(800, 150));
     
     
     JFrame frame= new JFrame();
     frame.setLocation(1650, 430);
     
      JScrollPane scrollPane = new JScrollPane(jLabel1);
      add(scrollPane, BorderLayout.CENTER);
      
                scrollPane = new JScrollPane();
      scrollPane.getViewport().add( jLabel1 );
      //JFrame.add( scrollPane, BorderLayout.CENTER );
                
      
      
     
      
        //JScrollPane pane = new JScrollPane(JScrollPane.VERTICAL\_SCROLLBAR\_ALWAYS, JScrollPane.HORIZONTAL\_SCROLLBAR\_AS\_NEEDED);
        //frame.setSize(500, 200);
       // frame.setContentPane(pane);
      
      
      
         
    }
    
    
    
    /\*\*
     \* This method is called from within the constructor to initialize the form.
     \* WARNING: Do NOT modify this code. The content of this method is always
     \* regenerated by the Form Editor.
     \*/
    @SuppressWarnings("unchecked")
    //                           
    private void initComponents() {
    
        jScrollPane1 = new javax.swing.JScrollPane();
        jPanel1 = new javax.swing.JPanel();
        jPanel2 = new javax.swing.JPan
    
    Java tutorial question

  • how to display panel just below input panel.?
    M mybm1

    Actually I have two Jpanel. One JPanel which takes input and the result is to be display in another JPanel.I just want that output Jpanel to be display just below the input JPanel.

    Java tutorial question

  • how to display panel just below input panel.?
    M mybm1

    Quote:

    how to display panel just below input panel.?

    Java tutorial question

  • Is it possible of getting same answer for inverse of matrix 100*100 dimension using gsl lib and matlab?
    M mybm1

    Quote:

    Is it possible of getting same answer for inverse of matrix 100*100 dimension using gsl lib and matlab

    C / C++ / MFC question

  • determinant of matrix in c N*N dimension return process kill .I took from net can anyone help me out where exactly its making this issue and how to overcome this issue.As per my program i pass @dimensional matrix of order x=100;
    M mybm1

    So nice of fren i set the recrusion_level in my program and while running its displaying exceed recrusion level as per printf i wrote and in infinte.any suggestion i really need to overcome this.

    C / C++ / MFC help css data-structures performance tutorial

  • determinant of matrix in c N*N dimension return process kill .I took from net can anyone help me out where exactly its making this issue and how to overcome this issue.As per my program i pass @dimensional matrix of order x=100;
    M mybm1

    Actually i am confused now do i need to call int foo() inside the determinant()? if at all i have to set counter can u please help me to implement in my code.

    C / C++ / MFC help css data-structures performance tutorial

  • determinant of matrix in c N*N dimension return process kill .I took from net can anyone help me out where exactly its making this issue and how to overcome this issue.As per my program i pass @dimensional matrix of order x=100;
    M mybm1

    thank you for ur suggestion but can u kindly tell me how to set the maximum recrusion size or else the without recrusion process..

    C / C++ / MFC help css data-structures performance tutorial

  • determinant of matrix in c N*N dimension return process kill .I took from net can anyone help me out where exactly its making this issue and how to overcome this issue.As per my program i pass @dimensional matrix of order x=100;
    M mybm1

    Quote:

    float determinant1(float **a,int n)
    {
    int i,j,j1,j2 ; // general loop and matrix subscripts
    float det = 0 ; // init determinant
    float **m = NULL ; // pointer to pointers to implement 2d
    // square array

    if (n < 1)    {   }                // error condition, should never get here
    
    else if (n == 1) {                 // should not get here
        det = a\[0\]\[0\] ;
        }
    
    else if (n == 2)  {                // basic 2X2 sub-matrix determinate
                                       // definition. When n==2, this ends the
        det = a\[0\]\[0\] \* a\[1\]\[1\] - a\[1\]\[0\] \* a\[0\]\[1\] ;// the recursion series
        }
    
    
                                       // recursion continues, solve next sub-matrix
    else {                             // solve the next minor by building a
                                       // sub matrix
        det = 0 ;                      // initialize determinant of sub-matrix
    
                                           // for each column in sub-matrix
        for (j1 = 0 ; j1 < n ; j1++) {
                                           // get space for the pointer list
            m = (float \*\*) malloc((n-1)\* sizeof(float \*)) ;
    
            for (i = 0 ; i < n-1 ; i++)
                m\[i\] = (float \*) malloc((n-1)\* sizeof(float)) ;
                       //     i\[0\]\[1\]\[2\]\[3\]  first malloc
                       //  m -> +  +  +  +   space for 4 pointers
                       //       |  |  |  |          j  second malloc
                       //       |  |  |  +-> \_ \_ \_ \[0\] pointers to
                       //       |  |  +----> \_ \_ \_ \[1\] and memory for
                       //       |  +-------> \_ a \_ \[2\] 4 doubles
                       //       +----------> \_ \_ \_ \[3\]
                       //
                       //                   a\[1\]\[2\]
                      // build sub-matrix with minor elements excluded
            for (i = 1 ; i < n ; i++) {
                j2 = 0 ;               // start at first sum-matrix column position
                                       // loop to copy source matrix less one column
                for (j = 0 ; j < n ; j++) {
                    if (j == j1) continue ; // don't copy the minor column element
    
                    m\[i-1\]\[j2\] = a\[i\]\[j\] ;  // copy source element into new sub-matrix
                                            // i-1
    
    C / C++ / MFC help css data-structures performance tutorial

  • determinant of matrix in c N*N dimension return error at //answer[r][s]=input[p][q];
    M mybm1

    I cant get u properly can u please ellaborate...

    C / C++ / MFC performance help

  • determinant of matrix in c N*N dimension return error at //answer[r][s]=input[p][q];
    M mybm1

    even though i change it, its not working..

    C / C++ / MFC performance help

  • determinant of matrix in c N*N dimension return error at //answer[r][s]=input[p][q];
    M mybm1

    but i cant find out where the logic is getting wrong can u help me out.

    C / C++ / MFC performance help

  • determinant of matrix in c N*N dimension return error at //answer[r][s]=input[p][q];
    M mybm1

    it compile finely but while running segmentation fault occur and couldnt printf the output.

    C / C++ / MFC performance help

  • determinant of matrix in c N*N dimension return error at //answer[r][s]=input[p][q];
    M mybm1

    float determinant(float **input,int order)
    {

    int j,p,q,t,i;
    float pr;
    float d;
    float *c;
    //c=memory_alloc_2D1(row,column);
    float **answer;
    answer=memory_alloc_2D1(order,order);
    float **b;
    b=memory_alloc_2D1(order,order);

    for(j=1;j<=order;j++)
    {
    int r=1,s=1;
    for(p=1;p<=order;p++)
    {

           for(q=1;q<=order;q++)
           		 {
            		        if(p!=1&&q!=j)
              				{
    			
    	answer\[r\]\[s\]=input\[p\]\[q\]; // error as segmentation fault
                				s++;
                				if(s>order-1)
                 				{
                   					r++;
                   					s=1;
                  				}   
              				 }
            		 }
        }
    
     	for(t=1,pr=1;t<=(1+j);t++)
     		pr=(-1)\*pr;
     		c\[j\]=pr\*determinant(b,order-1);
     }
     		for(j=1,d=0.0;j<=order;j++)
     		{
      			 d=d+(input\[1\]\[j\]\*c\[j\]);
     		}
    

    return(d);

    }

    main.c

    float determinantmatrix;
    determinantmatrix=determinant(covariance1,waveframesize);

    //covariance1 is the input matrix

    C / C++ / MFC performance help

  • matrix multiplication in c but my program is printing garbage value with correct dimension..
    M mybm1

    function.c

    Quote:

     float \*\*mult(float \*\*input1,float \*\*input2,int row1,int column1,int row2,int column2)
    

    {
    int i,j,k;
    float **mult1;
    mult1=memory_alloc_2D1(row1,column2);
    //mult1[i][j]=0;
    for(i=0;i

    main.c -program.

    float **deviation1;
    deviation1=memory_alloc_2D(waveframesize,NUM_OF_COEFFICIENTS);
    for(i=0;i

    Quote:

    float **trans1;
    trans1=memory_alloc_2D(waveframesize,NUM_OF_COEFFICIENTS);
    trans1=transpose(deviation1,waveframesize,NUM_OF_COEFFICIENTS);
    for(i=0;i

    float **multiplication;
    multiplication=memory_alloc_2D(waveframesize,NUM_OF_COEFFICIENTS);
    multiplication=mult(trans1,deviation1,waveframesize,NUM_OF_COEFFICIENTS,NUM_OF_COEFFICIENTS,waveframesize);

    C / C++ / MFC performance

  • how to print the value of variable which is define in header file.?
    M mybm1

    Thank you Richard ..hav a nice day

    C / C++ / MFC data-structures testing beta-testing tutorial question

  • how to print the value of variable which is define in header file.?
    M mybm1

    Please have a watch upon my code ..

    C / C++ / MFC data-structures testing beta-testing tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups