Community Profile

photo

Jiri Hajek


Last seen: Today Active since 2022

Statistics

All
  • Knowledgeable Level 3
  • First Answer
  • Solver
  • First Review

View badges

Content Feed

View by

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
Plot timeseries for mean monthly temperature
See help on plot timeseries...

17 days ago | 0

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Load more