# Jiri Hajek

**Statistics**

RANK**882**

of 271,724

REPUTATION**66**

CONTRIBUTIONS

**1** Question

**34** Answers

ANSWER ACCEPTANCE **
0.0%
**

VOTES RECEIVED**3**

RANK

of 18,321

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

How to changes X Y coordinate System and get value point?

Hi, you need to use matrix transformations of coordinates as described e.g. here: https://en.wikipedia.org/wiki/Kinematics#Matri...

13 hours ago | 0

Generate a random logical vector of a given size with a given number of true values?

Hi, ince the number of true values is known beforehand, the problem may be translated as just picking random positions, where to...

1 day ago | 0

| accepted

Calculate values inside a nested loop with different steps and store them in the same variable.

Hi, you can use any special vector of indexes (natual numbers) like this: j = [1:10,15:5:50]; for i=j C(i)= sum(x>i); e...

1 day ago | 0

| accepted

can any one tell me why that function can not run??

Hi, you obviously did not do any debugging. Your attempt at coding has several issues, but you can easily rectify them if you go...

1 day ago | 0

How to properly augment a cell vector to a matrix doubles and output on excel?

Hi, you need to get acquainted with tables. They enable you to do exactly what you need.

2 days ago | 0

| accepted

how to add specific columns in table (in verse)

Hi, you've righly spotted the subtle difference parentheses vs curly braces ("Curly braces, {}, returns an array concatenated f...

2 days ago | 0

| accepted

how to find the position of a char matrix where the value is equal to an another matrix

Hi, for this purpose you can use ismember function.

3 days ago | 0

| accepted

A figure created within a for loop is not plotted (only the last one is shown)

Hi, you need to use the hold function after you display the first curve.

4 days ago | 0

How to obtain output from function always as cell array even though it would be of size 1

Hi, since you are unsure about the type of a variable, you can solve this by adding a condition: for i = 1:N if iscell(ou...

4 days ago | 0

How do I connect two points from my Adjacency Matrix that are k distance away from each other and display it in my graph?

Hi, it seems you have mixed up two concepts together. The meaning of a nonzero element (i,j) in the adjacency matrix is that con...

9 days ago | 1

| accepted

Doesn't work brush on appdesigner aplication

Hi, your problem has been discussed elsewhere: https://www.mathworks.com/matlabcentral/answers/1598954-is-the-brush-tool-availab...

15 days ago | 0

Treat and handle missing hourly data (with daily profile), that might have large gaps

To identify the clusters of outliers, one may use logical indexing and the time vector. This is just a skeletal draft of the alg...

16 days ago | 0

Plot timeseries for mean monthly temperature

See help on plot timeseries...

17 days ago | 0

Code optimization by way of selective computations

Hi, you need to convert your flags to logical array, initialize the results with zeros and then apply the function to the flagge...

17 days ago | 0

| accepted

Change look of margin plot

Hi, this special plot apparently has a specific structure. I'd suggest to try and analyze the properties of your plot object. It...

18 days ago | 0

| accepted

How i make multi window app in app designer

Why don't you ask google first... Extensive documentation is available : https://www.mathworks.com/help/matlab/creating_guis/cr...

29 days ago | 0

How to steer uiprogressdlg from external function

Hi, I believe you could use the function setappdata, which allows you to change global variables in your app from an external fu...

29 days ago | 0

| accepted

How to explain a difference in solutions of integrals between MATLAB and MAPLE?

Nicely done graphs! So, just by looking at the graphs, it is clear that: The integral of your function is a negative value, wit...

30 days ago | 0

| accepted

linke fluent to matlab without AAS toolbox

Corrected (thanks to Walter Roberson for pointing out the imprecise formulation): Hi, so you are looking for a way to let MATL...

30 days ago | 0

How can I open an url into matlab browser?

That will not be possible according to the documentation ... (cit: "If url is an external site, then the page opens in your syst...

1 month ago | 0

| accepted

double gyre - compute absolute and relative dispersion

Hi, seems like you are almost there... But you have to make up your mind on the meaning of your dispersion formulae. In statisti...

1 month ago | 1

| accepted

Check if cell contains another cell

Hi, you can use the isa function: isa(a{i},'cell') Note that the use of eval is not recommended for many a good reason...

2 months ago | 0

Plot data from 2 or more timeseries with different x axis scale

If you supply to the plot command also x data - datetime class, then the plot will have the expected look by efault, and it will...

2 months ago | 1

| accepted

How to plot in real time the value of a variable in Matlab App Designer?

It should be sufficient to enforce update of your output using: drawnow limitrate.

2 months ago | 0

interp1 vector of interpolated sample points using Euler method

Please have a look into the documentation of interp1, namely the section on extrapolation method. You'll see that NaNs are the d...

2 months ago | 0

How to implement slider with simulation time series?

It seems you just need the basic slider functionality, so whay don't you try the example from documentation.

2 months ago | 0

Generate random numbers with a constraint

A general answer to your general question is inverse transform sampling, which makes it possible to generate sample random data ...

2 months ago | 0

| accepted

create a tab which appear before closing the GUI

You have to create a UIFigureCloseRequest callback, which is easily done in AppDesigner by a right click on the app.UIFigure in ...

2 months ago | 0

x and y- line until point

You will neet to plot the auxiliary lines separately - first plot the graph, then use the hold function and last plot all the li...

2 months ago | 0

Stop button to interrupt push botton

There is some confusion in the way you use callbacks. When you use a state button (or a switch) to interrupt a running for loop...

2 months ago | 0