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...

22 hours ago | 0

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 ...

10 days 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...

25 days 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.

1 month 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 months 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 months 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 months 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 months 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: ...

2 months 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

2 months 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.

2 months 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...

2 months 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',...

2 months 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

2 months 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

2 months 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...

2 months 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))...

2 months 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,...

2 months 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)

2 months 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 ...

2 months 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...

2 months 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...

2 months 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...

2 months 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 ...

2 months 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...

2 months 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 ...

2 months 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...

3 months ago | 2 answers | 0

Answered

matlab.graphics.illustration.Legend/set

Hello, Try this, legend_h = legend('TOFA (5uM)... ...'); set(legend_h,'Color','none','...','...'); It seems you have forgot...

matlab.graphics.illustration.Legend/set

Hello, Try this, legend_h = legend('TOFA (5uM)... ...'); set(legend_h,'Color','none','...','...'); It seems you have forgot...

3 months ago | 0

Answered

How to call xlim and ylim after the most recent zoom?

Hello, Try this: hFig = figure; hAxis = axes(hFig); hPlt = plot(hAxis,rand(100,1)); zoomObj = zoom(hFig); set(zoomO...

How to call xlim and ylim after the most recent zoom?

Hello, Try this: hFig = figure; hAxis = axes(hFig); hPlt = plot(hAxis,rand(100,1)); zoomObj = zoom(hFig); set(zoomO...

5 months ago | 0

| accepted

Question

How to change inputdlg's editbox into a popup menu?

Hellooo dear community! I want to create a small dialog box which contains 2 different popup-menu. Do we have any built-in fun...

5 months ago | 1 answer | 0