[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

char to int conversion problem

From: Alessandro Brezzi
Subject: char to int conversion problem
Date: Sun, 29 Apr 2007 21:11:46 +0200

Hi all,
I'm a newbe in Octave, so sorry for a dumb question.

I've tried a small piece of code:

octave:1> a='A';
octave:2> b=int8(a);
error: invalid conversion from sq_string to int8 scalar
error: evaluating assignment _expression_ near line 2, column 2

The same code is right in MatLab. What I've missed?

Thanks in advance

Octave version: GNU Octave, version 2.9.9 (x86_64-redhat-linux-gnu).
Linux system:  Linux 2.6.20-1.2944.fc6 #1 SMP Tue Apr 10 17:46:00 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
Alessandro Brezzi

reply via email to

[Prev in Thread] Current Thread [Next in Thread]