How to show full column of data?

4 次查看(过去 30 天)
Hello. I ran the code like x=0:0.0001:0.8; and y=linspace(2,3,length(x));. After running I cannot see the transposed full column of data for "x or y" in the commond window. Please explain me why and how can I show it?. Thanks.

采纳的回答

Image Analyst
Image Analyst 2023-2-27
Leave off the semicolons. They are row vectors. To make them column vectors use the apostrophe.
x=0:0.0001:0.8
x = 1×8001
0 0.0001 0.0002 0.0003 0.0004 0.0005 0.0006 0.0007 0.0008 0.0009 0.0010 0.0011 0.0012 0.0013 0.0014 0.0015 0.0016 0.0017 0.0018 0.0019 0.0020 0.0021 0.0022 0.0023 0.0024 0.0025 0.0026 0.0027 0.0028 0.0029
y=linspace(2,3,length(x))
y = 1×8001
2.0000 2.0001 2.0002 2.0004 2.0005 2.0006 2.0008 2.0009 2.0010 2.0011 2.0013 2.0014 2.0015 2.0016 2.0017 2.0019 2.0020 2.0021 2.0023 2.0024 2.0025 2.0026 2.0027 2.0029 2.0030 2.0031 2.0032 2.0034 2.0035 2.0036
x=x'
x = 8001×1
1.0e+00 * 0 0.0001 0.0002 0.0003 0.0004 0.0005 0.0006 0.0007 0.0008 0.0009
y=y'
y = 8001×1
2.0000 2.0001 2.0002 2.0004 2.0005 2.0006 2.0008 2.0009 2.0010 2.0011
  6 个评论
Bacha Munir
Bacha Munir 2023-2-27
Thank you so much brother. You solved my big problem. Allah bless you.
Image Analyst
Image Analyst 2023-2-27
For things that long, I just look at the variable in the workspace. Double click on the variable in the workspace panel to bring it up in the "Variables" panel which is like a spreadsheet.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Grid Lines, Tick Values, and Labels 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by