Community Profile Viesturs Veckalns

Active since 2016

Statistics

• Content Feed

View by

Question

latex - use package
I want to set label text as c_f2_3D.Label.String = '\frac{a}{b} \text{[cm]}' I instruct to use the Latex interpreter ...

ungefär 4 år ago | 1 answer | 0

1

Question

Display colorbar label horizontally and specify its position
In this example figure; [x, y, z] = sphere; surf(x, y, z); c = colorbar; c.Label.String = 'Z'; <</matlabcen...

ungefär 4 år ago | 1 answer | 1

1

Question

Combining different mesh granularities
This code figure; [x, y, z] = sphere(20); surf(x, y, z, 'edgecolor', 'None'); hold on; surf(x, y, z, 'facecolor',...

ungefär 4 år ago | 1 answer | 0

1

Question

histogram vector with deltaN specified
I have a vector x x = [1.7 2.2 1.7 3.0 2.2] also I have a deltaN associated with each value in x deltaN = [0.1 1.0...

ungefär 4 år ago | 2 answers | 0

2

Question

Create an array of strings
I try to create an array of strings fruit = ['apple', 'cherry'] What modifications are needed so that fruit(2) is 'cherr...

ungefär 4 år ago | 2 answers | 0

2

Question

show axes of spherical coordinates
In this plot obtained from the code [x, y, z] = sphere; surf(x, y, z); xlabel('x'); ylabel('y'); zlabel('z'); <</m...

ungefär 4 år ago | 1 answer | 0

1

Question

function that outputs a matrix with matrix elements referenced explicitly
I can write a function that outputs a matrix function f = func(arg) ... f = [res1, res2, res3] end I can store ...

mer än 4 år ago | 1 answer | 0

1

Question

sphere - increase granularity
Is there a way to increase the granularity of the grid produced by the sphere command?

mer än 4 år ago | 1 answer | 0

1

Question

flow control with functions of matrices
theta is a matrix [0:0.01:0.5]*pi I want to evaluate a function t using a flow control of values of theta: if theta>pi*(...

mer än 4 år ago | 1 answer | 0

1

Question

indexing entry of a matrix result
A is an MxN matrix. To get the number of columns of A I can do the following: s = size(A); ncol = s(2); How can I con...

mer än 4 år ago | 1 answer | 0

1

Question

concatenated matrix - factoring out a matrix coefficient
A, B and C are MxN matrices. I construct a matrix D in the following way: D = [A./C, B./C] It is inviting to bring out ...

mer än 4 år ago | 1 answer | 0