Question


What is the data type of the output of the length function?
Why not indicated in the description? http://www.mathworks.com/help/matlab/ref/length.html I guess it is double, but why? Le...

9 years ago | 2 answers | 0

2

answers

Question


How to create a formated text output (for example rich text) from MATLAB?
I want to use bold face or text color or background somehow.

9 years ago | 2 answers | 0

2

answers

Question


How to save figure as appears on the screen? with the same aspect ratio, and font size, etc. ?
figure('units','normalized','outerposition',[0 0 .5 1]); hist(rand(100)); saveas(gcf,sprintf('%s.png',mfilename)); ...

9 years ago | 2 answers | 0

2

answers

Question


How to create a portrait figure?
I want to draw subplots on a portrait figure: 3 rows and 2 columns of square boxes. I can use outerposition to force figure wind...

9 years ago | 0 answers | 0

0

answers

Question


How to create a structure in which variables can be labelled with a string?
I need a data structure in which there are structs with common fields: xxx.mean, xxx.std, xxx.description, yyy.mean, yyy.std, y...

9 years ago | 1 answer | 0

1

answer

Question


How to use path in a script in which another script is loaded?
So have a script1.m in which another script is loaded such like this: cd(fileparts(which(mfilename))); run('myload.m'); scr...

9 years ago | 1 answer | 0

1

answer

Question


Is it possible write subroutines with input arguments in MATLAB?
So I dont want a function with definite output variables, but I want input arguments for my script. For example I want to loa...

9 years ago | 3 answers | 0

3

answers

Question


The integer data sructures such as int8 or int16 has NaN values?
The integer data sructures such as int8 or int16 has NaN values?

9 years ago | 2 answers | 0

2

answers

Question


Is it accepted to change counting index within a for cycle?
something like this is accepted? for i = 1:100 i = i+5; % do something end

9 years ago | 3 answers | 0

3

answers

Question


Is it possible to save the whole text of the command window at the end of a run?
I dont want to use fprintf twice to write on the command window and into a text file. Is it possible to write only on the comman...

9 years ago | 1 answer | 0

1

answer

Question


Is it possible to create and save integer vectors in MATLAB?
I mean, save it on less space than standard vectors with floating point numbers? or MATLAB automatically save integers in an eff...

9 years ago | 1 answer | 0

1

answer

Question


How to cut last empty space characters from a string?
Which is the most simple way to cut empty space characters at the end of a string (if exists)?

9 years ago | 1 answer | 0

1

answer

Question


How to go through folder in a given folder?
How to go through folder in a given folder? I have the folder from uigetdir.

10 years ago | 2 answers | 0

2

answers

Question


Is it possible to convert/transform a normally distributed random variable to a Poisson-variable?
Is it possible to convert/transform a normally distributed random variable to a sample from a Poisson-variable?

10 years ago | 1 answer | 0

1

answer

Question


Are there any predefined discrete color set with optimal neighboring contrasts?
I would like N colors in circular order with high (or highest) average contrast for neighboring pairs. Or just want a discret...

10 years ago | 2 answers | 0

2

answers

Question


How to change axes linewidth?
Is it possible to control linewidth of axis and tics?

10 years ago | 4 answers | 0

4

answers

Question


How to draw transparent grey lines on each other to make darker joints?
Is it possible to draw curves with grey lines such way that intersections are darker?

10 years ago | 1 answer | 0

1

answer

Question


how to display the name of an input function by a function functions?
I would like to write a function functions ff and run this way: ff(@inputfunc) which prints the name of the input function, i...

10 years ago | 2 answers | 0

2

answers

Question


How to load a jpg properly?
My problem is that the orientation of a picture can differ in the EXIF and in reality (for example viewed by Preview software). ...

10 years ago | 2 answers | 0

2

answers

Question


how to create a white image?
I would like to create a NxM white image. But how to put color vectors [256 256 256] into a 2D array?

10 years ago | 2 answers | 0

2

answers

Question


how to format integer numbers to start with filling zeros?
I would like to transform n = 1:12 to '01','02',...,'11','12'

10 years ago | 2 answers | 0

2

answers

Question


How to put two pictures next to each other?
I have a landscape and a portrait image, and I want to put them next to each other to form a single picture, so I want to resize...

10 years ago | 1 answer | 0

1

answer

Question


How to load data from other directory?
I want to load data from other director, but I want to set relative path instead of absolute. So how to step back from current d...

10 years ago | 5 answers | 0

5

answers

Question


What is drawable are?
For me: figure('units','normalized','outerposition',[0 0 1 1],'position',[0 0 0.5 0.5]); has the same effect as: fi...

10 years ago | 2 answers | 0

2

answers

Question


Is it possible to set the size of a figure with labels?
I would like to set the size of the whole figure and not the axes. Moreover, I dont want any margin, so for example x-label text...

10 years ago | 2 answers | 0

2

answers

Question


How to get the screen width?
Is it possible to set outer position of a figure in normalized units (for example to be equal to 1), than get the width in other...

10 years ago | 2 answers | 0

2

answers

Question


How to set the with of the figure window but keep the high flexible?
I would like to set the width of the window to be maximal (screen width), but I dont want to fix the height of the figure window...

10 years ago | 1 answer | 0

1

answer

Question


How to use different units for position and outerPosition?
Is it possible to set outerposition with normalized units, but position with other units (pixels or inches)?

10 years ago | 2 answers | 0

2

answers

Question


How to set paper size?
If I want to save my figure with a user defined height and width and crop etc. The proper way is to define the window size, and ...

10 years ago | 1 answer | 0

1

answer

Question


How to control the next color?
I am using scatter plots: scatter(...); scatter(...); scatter(...); scatter(...); etc. Each of the plots has different colors ...

10 years ago | 1 answer | 0

1

answer

Load more