Question


Is it possible to print multiplication sign on a plot title?
×

mer än 6 år ago | 2 answers | 0

2

answers

Question


Is there a function to do this?
f(number,chars); f(12,4) = '0012';

mer än 6 år ago | 3 answers | 0

3

answers

Question


Why plotting is so slow?
I have a matrix with size 1500x1500, and the contourplot of this matrix takes 6sec in the script (tic-toc pair around the contou...

mer än 6 år ago | 0 answers | 1

0

answers

Question


I am rally confused. Why parfor is slower than for in this very simple test situation?
tic A = 1:100; B = 1:100; Nx = 500; Ny = 500; x_values = linspace(0,1,Nx); y_values = linspace(0,1,Ny); ...

mer än 6 år ago | 0 answers | 0

0

answers

Question


How to adjust colorbar on the side of contour plots?
Is it possible to put colorbar on the left side instead of the right side? And is it possible to shift the colorbar more to the...

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

1

answer

Question


Is it possible to compile a MATLAB script to an exe or a C-sharp or C++ code?
Is it possible to compile a MATLAB script to an exe or a C-sharp or C++ code?

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

1

answer

Question


How to enhance contrast on a grayscale image?
How to call eqhist to make the lowest value white and the highest value balck?

mer än 6 år ago | 2 answers | 0

2

answers

Question


Is it possible to save images into a single pdf with MATLAB without margin?
Is it possible to save images into a single pdf with MATLAB without margin? And is it possible to control the quality or compre...

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

1

answer

Question


Is it possible to collect input parameters with a GUI window?
I need a checkbox, a string input, a selection from a list, a folder selection, and a done button. Are there any flexible method...

mer än 6 år ago | 2 answers | 0

2

answers

Question


How to select a point with coordinates with a GUI?
I would like to put an image on the screen, and select two points with the mouse in a GUI window. Is it possible? Moreover the i...

mer än 6 år ago | 2 answers | 0

2

answers

Question


Is it possible to join pdf files with MATLAB?
Is it possible to join pdf outputs (plots or pictures/images) into a single pdf file with MATLAB?

mer än 6 år ago | 4 answers | 0

4

answers

Question


How to put a function definition into a string?
I have a script, and I have an in-line function definition, for example like this: f = @(a,x) 1./(1+exp(-tan(a).*(x-a))); ...

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

1

answer

Question


Is it possible to get back a name of a function as a string?
Is it possible to get back a name of a function as a string? For example I have myf = @(x) x^2; And I need 'myf'

mer än 6 år ago | 3 answers | 0

3

answers

Question


How to vectorize function with 3 input vectors and 3-dimensional matrix output?
Let f = @(X,Y,Z) ...; and length(X) = Nx; length(Y) = Ny; length(Z) = Nz; How to write f if I want a matrix (M) with size Nx x ...

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

1

answer

Question


How to estimate the runtime of a parfor-loop? Whats wrong with this?
I have a MacBook Pro 2017 with 3,5 GHz Intel Core i7. As I know i7 has 4 cores. I've tried the following example script: http...

mer än 6 år ago | 0 answers | 0

0

answers

Question


How to follow progress of a parfor-loop?
I would like to follow the run on a progress bar of a cycle. In case of simple for-loop is easy, but whatif I use parfor?

mer än 6 år ago | 2 answers | 1

2

answers

Question


Can continue make parfor ineffective?
Allocation of workers are assigned by the compiler at the begining of the parfor cycles? Or is it decided on-line during the cyc...

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

1

answer

Question


How to check monotonity of a vector?
How to check easily that components of a vector form a monotone (increasing) sequence or not?

mer än 6 år ago | 2 answers | 0

2

answers

Question


Is it possible to rewrite/update a printed line?
I want to simulate a progress bar during the run, so 1% has to be updated to 2% for example

mer än 6 år ago | 4 answers | 0

4

answers

Question


How to convert '123' to [1,2,3]?
How to convert '123' to [1,2,3]? Which is the shortest way?

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

1

answer

Question


Is it possible to create an inline function which gives back n binary digits of a number in a vector?
The input parameters must be the number x itself, and the number of digits (N). So dec2base(x,2) is not good, because its output...

mer än 6 år ago | 2 answers | 0

2

answers

Question


How to do a cycle through a N-dimensional grid, if n is not fixed?
I know there is ngrid, but you have to know n. What if I want to do n for cycles, but I don't know n at the moment, it is a vari...

mer än 6 år ago | 1 answer | 1

1

answer

Question


How to convert an arbitrary rational to binary digits?
I have a number n1/n2, where n1 and n2 are integers. I would like to convert to base-2 and get the digits in order.

mer än 6 år ago | 3 answers | 0

3

answers

Question


How to plot high resolution?
I would like to plot a histogram with 2048 bins. Is it possible plot and save it? pdf? retina display

mer än 6 år ago | 2 answers | 0

2

answers

Question


How to hide triangulation trace for fill or patch functions?
My poblem is that I can see the triangulation of a filled area in pdf. If you zoom into, you can see very thin white edges.

mer än 6 år ago | 0 answers | 0

0

answers

Question


Is it possible to set marker line width?
I want to use x and + marks with scatter but with bolder marks. Is it possible?

mer än 6 år ago | 2 answers | 4

2

answers

Question


How to set box line color?
The deafault is not black but dark gray if I save it to a pdf. I want black. How to set?

mer än 6 år ago | 0 answers | 0

0

answers

Question


Is it not possible to set script directory to current directory as default in MATLAB?
I dont want to always put this line in my scripts: cd(fileparts(which(mfilename)));

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

1

answer

Question


How to draw bunch of line segments?
I would like to draw [x1 x2],[y1 y2] line segments, and I have data in the form X1(i) = x1 etc. and i=1:1000; Is it possible to ...

mer än 6 år ago | 2 answers | 0

2

answers

Question


How to draw one bar with different color?
I would like to draw a histogram, and change the color of the bar (corresponds to a bin) consisting a given value x. How to do t...

mer än 6 år ago | 0 answers | 0

0

answers

Load more