10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have some matlab code that sends the serial port elements of an array using matlab's fwrite function, e.g.:
fwrite(s, , 'uchar');
What would be a unix shell equivalent? E.g., after successfully accessing the port using instructions here:
Simple terminal serial port program for Linux/MacOSX... (3 Replies)
Discussion started by: darwin_886
3 Replies
2. Programming
When the STL generic algorithm's merge() function is used to merge two char arrays, the output is not as expected. Below is the program I tried with.
#include <iostream>
#include <algorithm>
#include <cstring>
#include <deque>
#include <iterator>
using namespace std;
int main() {
... (3 Replies)
Discussion started by: royalibrahim
3 Replies
3. Shell Programming and Scripting
I have the following function in a bash script that fails to return the sorted array. I think the problem lies in the recursion not correctly passing the arrays, but I can't tell what I'm doing wrong. Anyone see the problem?
function quicksort () {
local array=( `echo "$1"` )
local... (7 Replies)
Discussion started by: tkg
7 Replies
4. Programming
Hello everyone,
i need help with this , i need the equivalent matlab funtion tf(x,y) in scilab
and what do u recommend best from those three for a linux user (i need it for Control theory):
1-matlab
2-Scilab
3-Octave
thank you for your time (0 Replies)
Discussion started by: abu_malek
0 Replies
5. Shell Programming and Scripting
Hello,
I need experts help in converting the below tcl function to korn shell function equivalent.
proc lsNetMaskToBits {mask} {
set dw ; # Top N bits set
set dw 0x ; # Make sure it's hexadecimal, else XOR fails.
puts "lsNetMaskToBits dw $dw"
set dw ; # Complement => low 32-N bits... (1 Reply)
Discussion started by: JackMelson
1 Replies
6. Shell Programming and Scripting
Is there an equivalent of perl's pack function in bash ?
Or in other words, how can I achieve the same thing in bash ?
Much appreciated. (1 Reply)
Discussion started by: NewDeb
1 Replies
7. Programming
what is the equivalent function for wherey( ) ?? That is to return the current column position? (2 Replies)
Discussion started by: rockgal
2 Replies
8. Shell Programming and Scripting
hi, I was wondering if there was a good way to create an array within a function, where the name is based on a passed argument? I tried this:
_____________________________
func(){
#take in 1st arg as the arrayname
arrayName=$1
let i=0
while read line
do
arrayName=${line}
let i+=1... (5 Replies)
Discussion started by: nix21
5 Replies
9. HP-UX
Hello,
J create a thread C with a JNI function via JAVA.
J have the following message (but not in each time):
Someone has an idea ?
Thank.
Unexpected Signal : 4 occurred at PC=0x78C103E0
Function=
Library=(N/A)
NOTE: We are unable to locate the function name... (0 Replies)
Discussion started by: AUBERT
0 Replies
10. Linux
ANy one knows equivalent function of which in Turbo C.
I want to Execute Certain loop until any key is pressed.
i.e while(!kbhit)
{
----------
----------
}
This code work fine in DOS but NOt in LINUX
i try to use but not getting the expected result
... (0 Replies)
Discussion started by: niravuchat
0 Replies