将行向量更改为列向量 [英] Change row vector to column vector

查看:351
本文介绍了将行向量更改为列向量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当所有750个条目都排在一行时,如何将其更改为一列?

How can I change this into a column, at the moment all 750 entries are on one row?

p = normal(1:750)-1;

我尝试过:

columns = 1;
p = normal(1:750)-1;
p = p(1:columns);

我也尝试过:

rows = 1000;
p = normal(1:750)-1;
p = p(1:rows)';

推荐答案

我想您可以转置:

p = (normal(1:750)-1)'

这篇关于将行向量更改为列向量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆