photo

Jiri Hajek


Last seen: 2年弱 前 2022 年からアクティブ

Followers: 0   Following: 0

統計

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

バッジを表示

Feeds

表示方法

回答済み
How can I randomly excuted for loops inside MAIN FOR LOOP instead of run them in ordered ?
Hi, use randperm function to generate the random ordering. growingOrder = 1:10; randomOrder = growingOrder(randperm(length(gr...

2年弱 前 | 1

回答済み
How to divide many lines ?
Hi, since your oibjective is to split all existing lines, its sufficient to: Get coordinates of the midpoints in all existing l...

2年弱 前 | 1

回答済み
How to write this fuction in Matlab? I have an example code in Python
Hi, your function contains four parameters, so the python code is incomplete. You can do this several ways in MATLAB, classic sy...

2年弱 前 | 1

回答済み
copying matrix values based on a specific value in another column
Hi, for this, se use logical indices in MATLAB: A=[1 1 1 1 2 2 2 2 3 3 3 3]'; B=[3 4 6 7 8 9 0 12 4 5 6 8]'; C=[A B]; selected...

2年弱 前 | 0

| 採用済み

回答済み
How can I make MATLAB recognize multiples?
HI, you can utilize the rem or mod functions, which give you remainder after division. There are slight differences between the ...

2年弱 前 | 1

| 採用済み

回答済み
Link multiple edit fields in app designer
Hi, you can use a callback on the first edit field (ValueChangedFcn). In this callback function, you simple assign the new value...

2年弱 前 | 0

| 採用済み

回答済み
Connecting two Matlab scripts under one loop
Hi, I'm responding to your request "I want to instruct the program to terminate when the first part's ccondition is not met ". Y...

2年弱 前 | 1

回答済み
Interp1 is not woking
Hi, as you have already noticed, there is no good general extrapolation method, which you seem to have expected. That is why the...

2年弱 前 | 0

回答済み
Shaded Plot of multiple curves
Hi, look at the plot properties. You can set color, width, etc. of any of the graphs as desired. https://www.mathworks.com/help...

2年弱 前 | 0

回答済み
Defining and plotting a piecewise function of irregular interval
Hi, you need to check your code... In your first syntax, you have a size mismatch of x1 and y1. You may use the "ones" function ...

2年弱 前 | 0

回答済み
Automatic positioning of text on the chart
Hi, you can get the desired behaviour using annotation (see https://www.mathworks.com/help/matlab/ref/annotation.html).

2年弱 前 | 1

回答済み
How to add multiple variables to a structure
Hi, eval is indeed completely unnecessary for your assignment.To create a new field in a structure, for which you have a name de...

2年弱 前 | 1

回答済み
Put vectors with different length into NaN vectors with allways the same length
Hi, the for loop is not required, you can achive the same assignment simply by: V1(1:length(x),1) = x;

2年弱 前 | 1

| 採用済み

回答済み
Nx4 Table of randi(1,M) so that the columns are not equal and each number only repeats P times
Hi, I think you can use an algorithm which essentially mimics your prescription like the following code snippet. There is just t...

2年弱 前 | 0

回答済み
Sort cell array with matrix
Hi, in order to achieve what you need, you have to perform few steps. % Extract numeric vector containing just the value used ...

2年弱 前 | 0

回答済み
How to Reassign Wrong cluster Values.
Hi, your clusters contain just matrices organized in four columns, so you can easily e.g. put two of them together (concatenate ...

約2年 前 | 0

回答済み
solving two-variable matrix function
Hi this can be done using inline function very efficiently like this: fh=@(x,y)[x+y,x*y]; fh(2,-2)

約2年 前 | 1

回答済み
How to add zeros diagonally in a matrix?
Hi, MATLAB has functions that can extract upper and lower triangular parts of a matric, rest is just adding them into a zero pre...

約2年 前 | 0

回答済み
Adapt my colorbar to a specific value
Seems like you need to focus on colormap, that's the function which defines your color scale. Or maybe just change the scale for...

約2年 前 | 0

回答済み
Combine multiple columns into one column
Hi, I believe you are almost there... To make the discussion simple, let's consider just one of the filenames. You need to make ...

約2年 前 | 0

回答済み
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...

約2年 前 | 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...

約2年 前 | 0

| 採用済み

回答済み
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...

約2年 前 | 0

回答済み
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...

約2年 前 | 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年 前 | 0

| 採用済み

回答済み
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年 前 | 0

| 採用済み

回答済み
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.

約2年 前 | 0

| 採用済み

回答済み
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.

約2年 前 | 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...

約2年 前 | 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...

約2年 前 | 1

| 採用済み

さらに読み込む