Answered

how to find out distance between two points.

Here you can use this: NodeNumbersMatrix = [... 2 1 3 2 4 3 5 2 6 2 7 3 8 3 9 ...

how to find out distance between two points.

Here you can use this: NodeNumbersMatrix = [... 2 1 3 2 4 3 5 2 6 2 7 3 8 3 9 ...

6 días ago | 1

Question

How to get missing functions in Matlab 2018b about table and timetable operations?

Hello dear community! I have just realized that the functions below listed do not exist in my Matlab 2018b version with all to...

7 días ago | 0 answers | 0

Answered

Add specific date time column to every table inside a cell

Easiest and fastest way to do it using a cellfun and converting them to a timetable. Here is one line to do it all: NewCellAr...

Add specific date time column to every table inside a cell

Easiest and fastest way to do it using a cellfun and converting them to a timetable. Here is one line to do it all: NewCellAr...

7 días ago | 1

| accepted

Answered

Create a plot with a drop down menu in an App

I think you don't even need to define callback functions for your dropdowns. They are already properties of your app object. B...

Create a plot with a drop down menu in an App

I think you don't even need to define callback functions for your dropdowns. They are already properties of your app object. B...

25 días ago | 0

| accepted

Question

How to extract event start and finish indices by finding rising edges and falling edges of an array?

Hi dear community, I have a state array doesn't matter what value inside it but for example I only want to find array == 6 as ...

alrededor de 1 mes ago | 1 answer | 0

Answered

Hello! How can i make a condition run many times?

Basically, it can be done as follows with a while block: some_condition_to_be_fullfilled = 0; while some_condition_to_be_fu...

Hello! How can i make a condition run many times?

Basically, it can be done as follows with a while block: some_condition_to_be_fullfilled = 0; while some_condition_to_be_fu...

alrededor de 2 meses ago | 0

Answered

Remove or Undo GridLayout with App Designer.

Hi, Go to Canvas Tab, remove the tick on the "Show Grid" box.

Remove or Undo GridLayout with App Designer.

Hi, Go to Canvas Tab, remove the tick on the "Show Grid" box.

2 meses ago | 0

Answered

Delete entire rows based on one condition

Hi, Try this: data = num2cell(randi(5000,240,7)); % sample random data in a cell array my_Table = cell2table(data); % conver...

Delete entire rows based on one condition

Hi, Try this: data = num2cell(randi(5000,240,7)); % sample random data in a cell array my_Table = cell2table(data); % conver...

2 meses ago | 0

Answered

How to require a custom class type with addRequired?

Variable out is not defined in the function bar. Also bar is already a built-in function. Use another function name instead.

How to require a custom class type with addRequired?

Variable out is not defined in the function bar. Also bar is already a built-in function. Use another function name instead.

2 meses ago | 0

Question

How to change tooltip position in AppDesigner?

Hello dear community, I have created a GUI in appdesigner. I created a checkbox with a label text and a button right side of t...

2 meses ago | 0 answers | 0

Answered

unable to perform assignment because the left and right sides have a different number of elements.

Hi, It is because you defined dx = 3 as 1x1 double. Your function y_dot gives 2x1 double as result. So it is not possible to c...

unable to perform assignment because the left and right sides have a different number of elements.

Hi, It is because you defined dx = 3 as 1x1 double. Your function y_dot gives 2x1 double as result. So it is not possible to c...

2 meses ago | 0

| accepted

Answered

Draw vertical lines on a plot

There is a built-in function for that. For vertical lines use xline and for horizonal lines use yline. Here is sample code: ...

Draw vertical lines on a plot

There is a built-in function for that. For vertical lines use xline and for horizonal lines use yline. Here is sample code: ...

3 meses ago | 0

| accepted

Answered

Control Design without using s ”acker , place.

Basically you can check below link and videos how a state-space model created in Simulink. state space

Control Design without using s ”acker , place.

Basically you can check below link and videos how a state-space model created in Simulink. state space

3 meses ago | 0

Answered

Mathematical symbols in matlab

Hi, Check this: how-to-insert-latex-equation-into-static-text-plot-in-gui You should be writing in latex format.

Mathematical symbols in matlab

Hi, Check this: how-to-insert-latex-equation-into-static-text-plot-in-gui You should be writing in latex format.

3 meses ago | 0

| accepted

Answered

How can I classify data based on two columns??

Your error caused from the line for loop. You have 19 elements but m+1 will be 20. for m = 1:length(lines)-1 ... end Th...

How can I classify data based on two columns??

Your error caused from the line for loop. You have 19 elements but m+1 will be 20. for m = 1:length(lines)-1 ... end Th...

3 meses ago | 0

Answered

Strange histogram from point cloud

Basically, you can decrease Histogram's 'BinCounts' property or increase 'BinWidth' property. You can define them with 'Name',...

Strange histogram from point cloud

Basically, you can decrease Histogram's 'BinCounts' property or increase 'BinWidth' property. You can define them with 'Name',...

3 meses ago | 0

Answered

how to plot wind rose plot?

Hi, Have you tried this function from FEX? wind-rose

how to plot wind rose plot?

Hi, Have you tried this function from FEX? wind-rose

3 meses ago | 0

Answered

Matlab coding for equation below and output as matrix

Hi, Look at this piecewise function definition: piecewise

Matlab coding for equation below and output as matrix

Hi, Look at this piecewise function definition: piecewise

3 meses ago | 0

Answered

How to find an exact sequence of values?

Try Loren's findpattern2. Here is link: findpattern create vector x numbers of ones and run findpattern2. e = ones(1,x); fo...

How to find an exact sequence of values?

Try Loren's findpattern2. Here is link: findpattern create vector x numbers of ones and run findpattern2. e = ones(1,x); fo...

3 meses ago | 0

| accepted

Answered

merge parts of arrays of cell array into matrix using loop

Try this: solution = repmat({rand(6,300)},1,6); cC0_ges = reshape(cell2mat(cellfun(@(x) x(1,1:20), solution,'uni',false))...

merge parts of arrays of cell array into matrix using loop

Try this: solution = repmat({rand(6,300)},1,6); cC0_ges = reshape(cell2mat(cellfun(@(x) x(1,1:20), solution,'uni',false))...

3 meses ago | 0

| accepted

Answered

Trouble reading data from .mat file

Hi, Try this: fid = fopen('1.mat'); values = fread(fid); fclose(fid); It seems only file created 'MATLAB 5.0 MAT-file,...

Trouble reading data from .mat file

Hi, Try this: fid = fopen('1.mat'); values = fread(fid); fclose(fid); It seems only file created 'MATLAB 5.0 MAT-file,...

3 meses ago | 0

Answered

plotting 2 different sized data into histogram

Try this for your both histograms. Do not use nbins. widthvalue = 0.1; histogram(X,'BinWidth',widthvalue)

plotting 2 different sized data into histogram

Try this for your both histograms. Do not use nbins. widthvalue = 0.1; histogram(X,'BinWidth',widthvalue)

3 meses ago | 1

| accepted

Answered

Convert color map and a corresponding color scale to a matrix of numerical values.

What do you mean by opposite of inbuilt function colorbar? colorbar is a function to create any colorbar near your axis. The ...

Convert color map and a corresponding color scale to a matrix of numerical values.

What do you mean by opposite of inbuilt function colorbar? colorbar is a function to create any colorbar near your axis. The ...

3 meses ago | 0

Answered

How do I extract data from a specific subplot in a MATLAB figure?

Hi, If you don't have the handles of the plot in the figure here is a demonstration for you. Please read the comments careful...

How do I extract data from a specific subplot in a MATLAB figure?

Hi, If you don't have the handles of the plot in the figure here is a demonstration for you. Please read the comments careful...

3 meses ago | 0

| accepted

Answered

Property of gscatter information needed

Have you read that? gscatter you don't have to mention a 'Name','Value' pair argument inputs for gscatter. It works like th...

Property of gscatter information needed

Have you read that? gscatter you don't have to mention a 'Name','Value' pair argument inputs for gscatter. It works like th...

3 meses ago | 0

Answered

Delete end points from columns in a structure array

I did something like this: newS2 = arrayfun(@(y) structfun(@(x) x(3:end-2),y,'uni',false),S) Or: for i = 1:numel(S) n...

Delete end points from columns in a structure array

I did something like this: newS2 = arrayfun(@(y) structfun(@(x) x(3:end-2),y,'uni',false),S) Or: for i = 1:numel(S) n...

3 meses ago | 1

Answered

how to write Conditional for loop in matlab without giving range? and it should run till condition satisfied

You should use while loop instead. Here is the link: while Here is a sample code for your case: K=0; Flag = 1; while Flag ...

how to write Conditional for loop in matlab without giving range? and it should run till condition satisfied

You should use while loop instead. Here is the link: while Here is a sample code for your case: K=0; Flag = 1; while Flag ...

3 meses ago | 0

| accepted

Answered

How to show bin counts' percentage values in Histogram2 tile plot?

I have solved it writing a function manually add text to each rectangle. Here is the function: function hHist = normalized_h...

How to show bin counts' percentage values in Histogram2 tile plot?

I have solved it writing a function manually add text to each rectangle. Here is the function: function hHist = normalized_h...

3 meses ago | 0

| accepted

Answered

Mean of a Matrix

your for loop is length(rand_image_stim). So your mean value calculated 10000 times. You should store it and later get the mean ...

Mean of a Matrix

your for loop is length(rand_image_stim). So your mean value calculated 10000 times. You should store it and later get the mean ...

3 meses ago | 0

Question

How to show bin counts' percentage values in Histogram2 tile plot?

Hi Dear Community I have x and y values*, I want to plot it like a 3D Histogram but on the top view. (It should look like a he...

4 meses ago | 2 answers | 0