help-octave
[Top][All Lists]
Advanced

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

String vector from argv


From: Oka Kurniawan
Subject: String vector from argv
Date: Mon, 14 Apr 2008 14:23:13 +0800

Hi
I am trying to cat a string that I obtain from argv. But I got this error

error: strcat: all arguments must be strings
error: evaluating if command near line 38, column 3
error: called from `strcat' in file
`/home/kurniawano/Programs/Octave3/share/octave/3.0.0/m/strings/strcat.m'
error: evaluating assignment expression near line 12, column 11
error: evaluating if command near line 2, column 1

This is my code

fname=argv()(1,:);
fnameout=strcat(fname,".p");

I checked that argv should return vector string. But it seems that it
cannot be concatenated using strcat. Should I convert it or anything?

anyone have any idea?

thanks


reply via email to

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