Say I have a value of 2
How can I convert this into say a [50,1] matrix such that it is the same size to do some addition/subtraction with my other matrix
Currently I only know using mat X = (2\2\2\2), but I don't want to have to forward slash 50 times, is there a faster way?
Related Posts with How to convert a scalar value into a large matrix
Looping over three locals.Dear colleagues, I am struggling to understand how can I loop over three locals in Stata. Indeed, …
Figure with 3 vertical subplotHi, I would like to create a figure with 3 different subplot that fit in 1 page, with the 3 subplot…
COMPLETELY FLUMMOXED: Problem with variable already defined error during loopHi I'm trying to loop through around 6000 .csv files of smart meter data to run the following opera…
Scatter plot with Country name and R-squareHi, I would like to create a scatter plot with a fitted regression line, along with R^2 and display…
System GMMI run the following command: xtdpdsys Lnzscore CostIncomeRatio LiquidTotalassets Legal DGPpercapita …
Subscribe to:
Post Comments (Atom)
0 Response to How to convert a scalar value into a large matrix
Post a Comment