The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
How to convert a single row list to matrix or vector? (Solved)
11-19-2015, 03:18 PM (This post was last modified: 11-19-2015 04:48 PM by cclinus.)
Post: #1
How to convert a single row list to matrix or vector? (Solved)
Hi,
How to convert a single row list to matrix or vector in program?
For example A:={1,2,3,4}

list2mat doesn't work for {1,2,3,4}.
I can use M0:={1,2,3,4} to obtain a vector.
But, I want to use local variable only.
Please help!

Regards,
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
How to convert a single row list to matrix or vector? (Solved) - cclinus - 11-19-2015 03:18 PM



User(s) browsing this thread: 1 Guest(s)