Search Results - CodeGuru Forums
 CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

# Search:

Type: Posts; User: stunner08

1. ## Thread: output to be displayed in 9x 9 matrix

by stunner08
Replies
8
Views
1,013

### Re: output to be displayed in 9x 9 matrix

Do i to do transposing of matrix?
2. ## Thread: output to be displayed in 9x 9 matrix

by stunner08
Replies
8
Views
1,013

### Re: output to be displayed in 9x 9 matrix

Now I have totally changed the for loop as shown below:-

for (int S1=0;S1<=4;S1++){

for (int R=0;R<=8;R = R++){
myarr[5][9] = (float) rand()/(float) RAND_MAX;
3. ## Thread: output to be displayed in 9x 9 matrix

by stunner08
Replies
8
Views
1,013

### Re: output to be displayed in 9x 9 matrix

There was an error at the for loop too:-

for (int S1=0;S1<=8;S1 = S1 + 1){

for (int R=0;R<=8;R = R+1)
myarr[S1][R] = (double) rand()/(double) RAND_MAX;
z = myarr[S1][R];
4. ## Thread: output to be displayed in 9x 9 matrix

by stunner08
Replies
8
Views
1,013

### Re: output to be displayed in 9x 9 matrix

Now i have arranged the RandomFunction code to be within the main function as shown as below:-

int main()
{

srand( (unsigned)time( NULL ) );
int i, j;
5. ## Thread: output to be displayed in 9x 9 matrix

by stunner08
Replies
8
Views
1,013

### Re: output to be displayed in 9x 9 matrix

Hi D_Drmmr

Ur saying that the srand function can be called only in the main and not inside other functions?

Then how will i get the random numbers if the srand function is outside the...
6. ## Thread: output to be displayed in 9x 9 matrix

by stunner08
Replies
8
Views
1,013

### output to be displayed in 9x 9 matrix

Hi community,

I having trouble in displaying on of my result in 9 X 9 matrix which suppose to do so.

I have commented on that line which suppose to produce the result.
7. ## Thread: Change into 4 points floating number

by stunner08
Replies
2
Views
452

### Change into 4 points floating number

Hi,

I need help in acquiring 4 points floating value which I can seem to get. All i'm getting is 0.00000.

Here's the code :-

#include "mbed.h"
#include <stdio.h>
#include <stdlib.h>...
8. ## Thread: Converting MATLAB function to C++

by stunner08
Replies
5
Views
1,310

### Converting MATLAB function to C++

Hi,

I need to convert the following MATLAB function into C++. I ad have some info on using the Matlab engine but I still can understand what it is doing....

function [Is] = ver_eq(I)
l =...
9. ## Thread: Matlab functions need conversion

by stunner08
Replies
6
Views
1,668

### Re: Matlab functions need conversion

Hi,

I'm developing an API which that will be embedded to a ARM micro controller. I was have the simulation version which is in .m or Matlab file. But it seems that I have to convert it into C++...
10. ## Thread: Matlab functions need conversion

by stunner08
Replies
6
Views
1,668

### Matlab functions need conversion

Hi,

I need help in converting a few functions from matlab to VC++. Here's the code that I have done partially in C++ and some are still in MATLAB.

#include "mbed.h"
#include <stddef.h>...
Results 1 to 10 of 10