Community Profile

photo

Viesturs Veckalns


Active since 2016

Followers: 0   Following: 0

Statistics

  • Thankful Level 3

View badges

Feeds

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 ...

meer dan 6 jaar ago | 1 answer | 0

1

answer

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...

meer dan 6 jaar ago | 1 answer | 1

1

answer

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',...

meer dan 6 jaar ago | 1 answer | 0

1

answer

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...

meer dan 6 jaar ago | 2 answers | 0

2

answers

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...

meer dan 6 jaar ago | 2 answers | 0

2

answers

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...

meer dan 6 jaar ago | 1 answer | 0

1

answer

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 ...

meer dan 6 jaar ago | 1 answer | 0

1

answer

Question


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

meer dan 6 jaar ago | 1 answer | 0

1

answer

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*(...

meer dan 6 jaar ago | 1 answer | 0

1

answer

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...

meer dan 6 jaar ago | 1 answer | 0

1

answer

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 ...

meer dan 6 jaar ago | 1 answer | 0

1

answer

Question


Where to format plot?
I have a script (Matlab R2015b) ... BLOCK1 ... for i = 0:100 ... figure(1) ax = gca; ...

meer dan 7 jaar ago | 1 answer | 0

1

answer