how to make ["a","b",["c","d"],"e"] into ['a', 'b', 'c', 'd', 'e'] ?--001a11c34e8edbc7c404f6a94bbe
Content-Type: text/plain; charset=ISO-8859-1
>>> x=["a","b",["c","d"],"e"]
>>> y=x[2]
>>> y
['c', 'd']
>>> x.insert(2,y[0])
>>> x
['a', 'b', 'c', ['c', 'd'], 'e']
>>> x.insert(3,y[1])
>>> x
['a', 'b', 'c', 'd', ['c', 'd'], 'e']
>>> del x[4]
>>> x
['a', 'b', 'c', 'd', ...
(mapcar 'quote '("1" "2" "3" "4"))(mapcar 'quote '("1" "2" "3" "4")) returns
((quote "4") (quote "4") (quote "4") (quote "4"))
Interesting and (for me) unexpected. Because
(mapcar 'read '("1" "2" "3" "4")) returns
(1 2 3 4)
and
(mapcar 'princ '("1" "2" "3" "4")) gives
1234("1" "2" "3" "4")
Why isn't (mapcar 'quote '("1" "2" "3" "4&q...
solution to ""ERROR: Output argument 'a' was not assigned during call to 'xlim'": Link to download xlim.m/ylim.m is not updatedHi,
I found technical solution to download new fixed xlim.m/ylim.m files in this adress:
http://www.mathworks.com/support/solutions/en/data/1-19WWP/index.html?product=CO&solution=1-19WWP
However they refering to a link to get the fixed files - but the link is not available any more.
Do you know where I can download those files from?
Thanks,
Gilad
"Gilad Asseraf" <gilad_asseraf@amat.com> wrote in message
news:hsr9v6$333$1@fred.mathworks.com...
> Hi,
> I found technical solution to download new fixed xlim.m/ylim.m files in
> this adress:
&g...
"Undefined operator '/' for input arguments of type 'cell'." Error?What does this error mean?
On 8/30/2015 12:49 PM, bobDizzle wrote:
> What does this error mean?
>
You seem to have used {} to build your matrix or vectors.
use [] instead of {} and try again
On 08/30/2015 1:10 PM, Nasser M. Abbasi wrote:
> On 8/30/2015 12:49 PM, bobDizzle wrote:
>> What does this error mean?
>>
>
> You seem to have used {} to build your matrix or vectors.
>
> use [] instead of {} and try again
or, dereference cell array contents with {}.
The precise solution would depend on the context
The answer to the question is tha...
Why """, not '''?Why is """ the preferred delimiter for multi-line strings?
On Mar 5, 9:56 am, MartinRineh...@gmail.com wrote:
> Why is """ the preferred delimiter for multi-line strings?
Is it ? FWIW, I use single quotes whenever I can and double whenever I
have to (i.e. rarely).
George
On Wed, 5 Mar 2008 06:56:24 -0800 (PST)
MartinRinehart@gmail.com wrote:
> Why is """ the preferred delimiter for multi-line strings?
Where did you see that? The only place I saw it was the style guide
and it was only talking about docstrings. Even there they used "...
what does this error mean `activate': can't activate activesupport (= 3.0.1, runtime) for ["activerecord-3.0.1"]i am using active record in my program and cannot understand what this
error means.
require 'watir'
include Watir
require 'active_record'
ActiveRecord::Base.establish_connection(
:adapter => "mysql",
:host => "127.0.0.1",
#:host => "sun",
:database => "Trader",
:username => "root",
:password => "password"
)
class Rawdata < ActiveRecord::Base
set_table_name "rawdatas"
end
E:\TradingTools\trader\app\helpers>GrabMBTTrades.rb
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:233:in `ac...
MNRFIT Error "Undefined function or method 'mnrfit' for input arguments of type 'double'"My data looks like this:
Y=[4;4;5;13.....]; (n by 1)
X= 1.3 6.9
2.0 3.2
4.2 6.9048
..... (n by 2)
when i used: [B,dev,stats]=mnrfit(x,y,'interactions','off');
The error message appeared : ??? Undefined function or method 'mnrfit' for input arguments of type 'double'.
What caused that problem? Also, shall I convert the y into a format of 1,2,3,4,...k, rather than the code number originally assigned for each choice (starting from 4, to 500+. with irregular numbering)
Thanks!
"Yiyi Wang" <yiyiwang@mail.ute...
What do the authors in The Little Schemer mean by the "function's structure" and "argument's structure"?Hi all,
I finished reading The Little Schemer a few days ago and one of the
answers was not clear to me.
It's on page 40, 3rd from the top. It's about simplifying the rember
function (which removes the first occurrence of an element from a
list).
The question asks "So why don't we simplify right away?" and the
answer is "Because then a function's structure does not coincide
with its argument's structure."
Any ideas what "a function's structure" and "argument's structure"
are? And how do they coincide or not coincide?
Here...
fminsearch error: "Undefined function or method 'L' for input arguments of type 'double'"Hi,
I am trying to minimizing the function 'L' below but I keep getting
the error:
?? Undefined function or method 'L' for input arguments of type
'double'
My code is the following:
----------------------------------------------------------------
%seastate = 2000 x 1 vector
%pings = 2000 x 1 vector
%entang = 2000 x 1 vector
x0 = [-1.5 0.3 -0.1 0.001]; %my initial parameters
exponent = @(x0) x0(1) + x0(2).*seastate + x0(3).*pings +
x0(4).*pings.^2;
pi = @(x0) exp(exponent)./(1 + exp(exponent);
oneminuspi = @(x0) 1 - pi(x0);
L = @(x0) -1*log(pr...
Request " ''BOLD' Error in process BDUGKSH ''NORMAL' "How could I put bold characters in request command, like this :
Request " ''BOLD' Error in process BDUGKSH ''NORMAL' "
Thanks in advance.
In article <ddf392ea.0311131305.595344d3@posting.google.com>, contracer11@uol.com.br (Shiva MahaDeva) writes:
> How could I put bold characters in request command, like this :
>
> Request " ''BOLD' Error in process BDUGKSH ''NORMAL' "
>
> Thanks in advance.
It depends on what kind of terminal it's going to.
In article <ddf392ea.0311131305.595344d3@pos...
Can't "mk CONF=9pcdisk" --> gives error "rc: #d/0: token '=': syntax error"I'm in /sys/src/9/pc and I type
`mk CONF=9pcdisk`
and rc gives me the error "rc: #d/0: token '=': syntax error".
Why is this? Just doing mk works fine (I think).
Thanks! Plan9 looks very cool... just finished reading through intro (all of it).
you're using backquotes, why? that would be `{mk CONF=3D9pcdisk} in rc's
syntax.
now to compile that kernel the syntax is:
% mk 'CONF=3Dpcdisk'
now are you sure you want a pcdisk?=20
On Jul 19, 2012, at 6:07 AM, kalaracey@gmail.com wrote:
> I'm in /sys/src/9/pc and I type
>=20
...
Compile time error: "error: 'write_n' is not a member of 'ACE'"Hi All,
ACE VERSION: 5.5.6
HOST MACHINE and OPERATING SYSTEM: LINUX, Kernel 2.6.19-1.2288.fc5,
i686
I tried to compile the program given below, but was giving following
compilation error:
Please help me to compile this proram
---------------------------------------
COMPILATION------------------------------------------
[root@paresh ACE_MSG_BLOCK]# g++ main.C -o main -lACE -IACE_ROOT
main.C: In function 'int main(int, char**)':
main.C:9: error: 'read_n' is not a member of 'ACE'
main.C:20: error: 'write_n' is not a member of 'ACE'
-------...
html dir="rtl" does 'a b c' in same direction as "ltr" but '1 2 3' in different directionhttp://www.frostjedi.com/terra/scripts/demo/rtl.html
If you view the source, you'll see two divs - <div>a b c</div> and
<div>1 2 3</div>. Both are displayed on the right hand side of the
screen. <div>a b c</div> renders as 'a b c' but '1 2 3', instead,
renders as '3 2 1' and I don't know why. Any ideas?
On 2009-02-23, yawnmoth <terra1024@yahoo.com> wrote:
> http://www.frostjedi.com/terra/scripts/demo/rtl.html
>
> If you view the source, you'll see two divs - <div>a b c</div> and
&g...
lynx 'browser' can't do "<?xml version="1.0" encoding="utf-8"?>"lynx is lighteningly fast to fetch a set of pages [via a script] via dump > fileID.
But [my current version] doesn't render the 'style' of:
"<?xml version="1.0" encoding="utf-8"?>"
What is this new "xml" crap ?
Will it likely take over the older *.html ?
Thanks for any info,
== Chris Glur.
news@absamail.co.za wrote in news:1172596265.663611@vasbyt.isdsl.net:
> lynx is lighteningly fast to fetch a set of pages [via a script] via
> dump > fileID.
>
> But [my current version] doesn't ...