Answered

Can I hide a tab in MATLAB App Designer?

As of r2020a, there isn't an option to control the visibility or enable-property of individual tabs. However, you can apply thi...

Can I hide a tab in MATLAB App Designer?

As of r2020a, there isn't an option to control the visibility or enable-property of individual tabs. However, you can apply thi...

23 days ago | 0

Answered

Grouped bar graph with scatter plot

Here are some demo you can follow to get the x-coordinate of the center of each bar. Any one of them should be sufficient. ht...

Grouped bar graph with scatter plot

Here are some demo you can follow to get the x-coordinate of the center of each bar. Any one of them should be sufficient. ht...

24 days ago | 0

Answered

Shifting signals to the right

If you'd like to circularly shift the data "A" by "K" positions along the "dim" dimension, Y = circshift(A,K,dim) (click for m...

Shifting signals to the right

If you'd like to circularly shift the data "A" by "K" positions along the "dim" dimension, Y = circshift(A,K,dim) (click for m...

24 days ago | 0

| accepted

Answered

plot() shows multiple y values for the same x value

It looks like the coordinate values are limited by precision. See this answer for an explanation and solution. https://www....

plot() shows multiple y values for the same x value

It looks like the coordinate values are limited by precision. See this answer for an explanation and solution. https://www....

24 days ago | 1

| accepted

Answered

Matlab GUI - Tabgroup visibility - checkbox

Control tab selectivity As of r2020a, there isn't an option to set the visibility or 'enable' property of a tab. However, you ...

Matlab GUI - Tabgroup visibility - checkbox

Control tab selectivity As of r2020a, there isn't an option to set the visibility or 'enable' property of a tab. However, you ...

24 days ago | 1

| accepted

Answered

tab delimited .txt file

For more recent releases of Matlab (r2013b or later), use writetable() with the delimiter set to \t. writetable(T,'tabledata2.t...

tab delimited .txt file

For more recent releases of Matlab (r2013b or later), use writetable() with the delimiter set to \t. writetable(T,'tabledata2.t...

25 days ago | 0

Answered

ginput and 'CurrentPoint' property do no match real axes coordinates

Written in r2020a update 3 Symptoms of the problem The current mouse position within an axes has a limit of precision such th...

ginput and 'CurrentPoint' property do no match real axes coordinates

Written in r2020a update 3 Symptoms of the problem The current mouse position within an axes has a limit of precision such th...

27 days ago | 0

| accepted

Answered

Quick question GUI AppDesigner

1) When the user clicks on the "GoTo SecondFig" pushbutton and the new figure appears, the user cannot push again the button on ...

Quick question GUI AppDesigner

1) When the user clicks on the "GoTo SecondFig" pushbutton and the new figure appears, the user cannot push again the button on ...

27 days ago | 0

| accepted

Answered

percentage of up days every 12 days

Assuming your data are daily stock prices, you can use Y = diff(X,1,dim) to compute the difference across the n_th dimention of...

percentage of up days every 12 days

Assuming your data are daily stock prices, you can use Y = diff(X,1,dim) to compute the difference across the n_th dimention of...

27 days ago | 0

| accepted

Answered

Label index/variable name near data points

This is easy with labelpoints() found on the file exchange. figure('Name','Result','NumberTitle','on'); hold on p11 = plot(...

Label index/variable name near data points

This is easy with labelpoints() found on the file exchange. figure('Name','Result','NumberTitle','on'); hold on p11 = plot(...

27 days ago | 0

| accepted

Answered

Is it possible to approximate this shape as a circle?

I assum you already have the coordinates of the shape based on your previous quesiton. Once you have the coordinates, you can u...

Is it possible to approximate this shape as a circle?

I assum you already have the coordinates of the shape based on your previous quesiton. Once you have the coordinates, you can u...

27 days ago | 0

Answered

Smooth edge on contour plot

See the 'levels' option. You could get the levels from the first controur plot and use the same levels for the 2nd plot. conto...

Smooth edge on contour plot

See the 'levels' option. You could get the levels from the first controur plot and use the same levels for the 2nd plot. conto...

27 days ago | 1

| accepted

Answered

Create all combinations of a vector

It looks like input x is a 1x10 vector of 1s and 0s starting from [0 0 0 0 0 0 0 0 0 0] and ending at [1 1 1 1 1 1 1 1 1 1]. Th...

Create all combinations of a vector

It looks like input x is a 1x10 vector of 1s and 0s starting from [0 0 0 0 0 0 0 0 0 0] and ending at [1 1 1 1 1 1 1 1 1 1]. Th...

27 days ago | 1

| accepted

Answered

Text overlapp in uifigure plot

Here are two ways to control the position of text in a plot Use Matlab's text() function The HorizontalAlignment and Vertical...

Text overlapp in uifigure plot

Here are two ways to control the position of text in a plot Use Matlab's text() function The HorizontalAlignment and Vertical...

1 month ago | 1

| accepted

Answered

How do I plot wind direction timeseries with arrows

The quiver() function is what you want to use. It's desiged exactly for this purpose. Since your vectors are in degrees and t...

How do I plot wind direction timeseries with arrows

The quiver() function is what you want to use. It's desiged exactly for this purpose. Since your vectors are in degrees and t...

1 month ago | 0

| accepted

Answered

set() function works on 2017a but crash on 2018b

First, some feedback, The try-catch may have avoided an error message but that doesn't mean the problem was solved. The probl...

set() function works on 2017a but crash on 2018b

First, some feedback, The try-catch may have avoided an error message but that doesn't mean the problem was solved. The probl...

1 month ago | 0

Answered

Converting Categorical Array/Table to Numerical

By far the best solution is to avoid representing numeric values as categorical values in the first place. If you can un-do tha...

Converting Categorical Array/Table to Numerical

By far the best solution is to avoid representing numeric values as categorical values in the first place. If you can un-do tha...

1 month ago | 0

| accepted

Answered

How can I create a legend for an event data plot?

The easiest method IMO is to use the DisplayName property of (most) graphics objects. Here's a demo using loops. It defines ...

How can I create a legend for an event data plot?

The easiest method IMO is to use the DisplayName property of (most) graphics objects. Here's a demo using loops. It defines ...

1 month ago | 1

| accepted

Answered

Remove columns from cell array when several cells in such columns have zero-values

cellArray is your cell array. threshold is the percent of 0-values per column that defines "several". See inline comments fo...

Remove columns from cell array when several cells in such columns have zero-values

cellArray is your cell array. threshold is the percent of 0-values per column that defines "several". See inline comments fo...

1 month ago | 1

| accepted

Answered

plot3 out of loop

A critical missing bit of information is missing from your questions. An error is thrown by the last line in your quesiton. E...

plot3 out of loop

A critical missing bit of information is missing from your questions. An error is thrown by the last line in your quesiton. E...

1 month ago | 0

Answered

Sum of all columns in a 3D cell array

Here are the inputs according to your description pyi_z = num2cell(rand(301,51,3)); % Check size size(pyi_z) ans = 3...

Sum of all columns in a 3D cell array

Here are the inputs according to your description pyi_z = num2cell(rand(301,51,3)); % Check size size(pyi_z) ans = 3...

1 month ago | 0

| accepted

Answered

Explain error histogram ?

I don't know how this plot was created but judging by the axis labels I can estimate what the storyline is. Below is a very ge...

Explain error histogram ?

I don't know how this plot was created but judging by the axis labels I can estimate what the storyline is. Below is a very ge...

1 month ago | 1

| accepted

Answered

Plotting a signal in matlab

This notation, x < y < z is interpretted by Matlab as (x < y) < z but since (x < y) is always true (1) or false (0), it can...

Plotting a signal in matlab

This notation, x < y < z is interpretted by Matlab as (x < y) < z but since (x < y) is always true (1) or false (0), it can...

1 month ago | 0

Answered

Draw points on UIAxes until you press a button in APP DESIGNER

Once drawpoint() is called, it waits for a response and the waiting time cannot be interrupted until you either draw a point, pr...

Draw points on UIAxes until you press a button in APP DESIGNER

Once drawpoint() is called, it waits for a response and the waiting time cannot be interrupted until you either draw a point, pr...

1 month ago | 1

| accepted

Answered

How to use the handle of APP Designer in MATLAB Function?

'u' should be a character vector or string scalar. If you're trying to input a numeric value, it must first be converted to a ...

How to use the handle of APP Designer in MATLAB Function?

'u' should be a character vector or string scalar. If you're trying to input a numeric value, it must first be converted to a ...

1 month ago | 0

Answered

countour plot based on temperature value

This example in the documentation shows how to set up the contour() inputs. For the syntax contour(x,y,z), z is your mxn temp...

countour plot based on temperature value

This example in the documentation shows how to set up the contour() inputs. For the syntax contour(x,y,z), z is your mxn temp...

1 month ago | 0

| accepted

Answered

cross corelation in matlab

If you have two signals, S1 and S2 where S2 is a segment of S1, you can find the location of S2 in S1 by incrementally shifting ...

cross corelation in matlab

If you have two signals, S1 and S2 where S2 is a segment of S1, you can find the location of S2 in S1 by incrementally shifting ...

1 month ago | 0

Answered

How to find the average of mean square error?

M = mean(A,dim) Where dim is the dimensions you're averaging over and A is your matrix of data. See the link for more info and ...

How to find the average of mean square error?

M = mean(A,dim) Where dim is the dimensions you're averaging over and A is your matrix of data. See the link for more info and ...

1 month ago | 0

| accepted

Answered

Two ui.control.UIAxes with the same image are not of the same size, app designer

If you want the axes to be the same size, why are you multiplying the width and height by 0.45? 0.45*app.UIFigure.Position(3), ...

Two ui.control.UIAxes with the same image are not of the same size, app designer

If you want the axes to be the same size, why are you multiplying the width and height by 0.45? 0.45*app.UIFigure.Position(3), ...

1 month ago | 0

Answered

Adding Horizontal Offset Within a Loop

Create an offset variable that continues to increase within the loop. hold on offset = 0; for i=5:16 plot(DataRx(:,i) ...

Adding Horizontal Offset Within a Loop

Create an offset variable that continues to increase within the loop. hold on offset = 0; for i=5:16 plot(DataRx(:,i) ...

1 month ago | 1

| accepted