Answered

How do i select a point on matlab UIaxes and then get data for it?

Looks like there's something easier to do in 2020a. May want to try it out in 2019a or 2019b as I did not see it in the current ...

How do i select a point on matlab UIaxes and then get data for it?

Looks like there's something easier to do in 2020a. May want to try it out in 2019a or 2019b as I did not see it in the current ...

3 months ago | 0

Answered

App Designer: Calling variables created in other functions

This is what I came up with. I'm not sure if it's what you're after, but it looks like it could be. The first thing to learn abo...

App Designer: Calling variables created in other functions

This is what I came up with. I'm not sure if it's what you're after, but it looks like it could be. The first thing to learn abo...

3 months ago | 0

Answered

How to properly import excel data, insert values through "EDIT FIELD" and run a function using App Designer in Matlab?

What is this output = thorntwMater() You have nothing as the input arguements so that's the error it's going to throw.

How to properly import excel data, insert values through "EDIT FIELD" and run a function using App Designer in Matlab?

What is this output = thorntwMater() You have nothing as the input arguements so that's the error it's going to throw.

6 months ago | 0

Answered

Adding Custom Data Tip to 3D UIAxes slice() plot

Not sure if this is what you’re looking for, but this may help. https://www.mathworks.com/matlabcentral/answers/497552-hi-when...

Adding Custom Data Tip to 3D UIAxes slice() plot

Not sure if this is what you’re looking for, but this may help. https://www.mathworks.com/matlabcentral/answers/497552-hi-when...

7 months ago | 0

Answered

How can I plot in specific intervals?

hold on for ii = 1:100:size(YourArray,1)-100 plot(YourArray(ii+19,1), YourArray(ii+19,2) end hold...

How can I plot in specific intervals?

hold on for ii = 1:100:size(YourArray,1)-100 plot(YourArray(ii+19,1), YourArray(ii+19,2) end hold...

7 months ago | 0

Answered

How to record result in a for loop nested in a for loop?

Not sure what the point of alpha is, but here’s something to save your data. clc clear for i = 1:5 for j = 1:1...

How to record result in a for loop nested in a for loop?

Not sure what the point of alpha is, but here’s something to save your data. clc clear for i = 1:5 for j = 1:1...

7 months ago | 0

| accepted

Answered

Legend when plotting with while

This may work. clc clear all T = readtable('Book1.xlsx'); Time=T.DateTime; ColumnYouNeed = input('Which varia...

Legend when plotting with while

This may work. clc clear all T = readtable('Book1.xlsx'); Time=T.DateTime; ColumnYouNeed = input('Which varia...

7 months ago | 0

| accepted

Answered

Problem with sliders and plot (App Designer)

I think this is what you mean but let me know if I’m wrong. % Callbacks that handle component events ...

Problem with sliders and plot (App Designer)

I think this is what you mean but let me know if I’m wrong. % Callbacks that handle component events ...

7 months ago | 0

| accepted

Answered

My program isn't plotting anything

I’m assuming your variables a and b are actual values. If not, it will obviously give an error that a and b are undefined. I thi...

My program isn't plotting anything

I’m assuming your variables a and b are actual values. If not, it will obviously give an error that a and b are undefined. I thi...

7 months ago | 0

Answered

I get the error "Undefined function 'symsum' for input arguments of type 'double'. while solving the equation given below.Please help me.

I ran the script below and got a very large answer. You should check my code/output as there may be a mistake (using matlab mobi...

I get the error "Undefined function 'symsum' for input arguments of type 'double'. while solving the equation given below.Please help me.

I ran the script below and got a very large answer. You should check my code/output as there may be a mistake (using matlab mobi...

7 months ago | 0

| accepted

Answered

Copy parameters from UIAxes to other Axes in external figure app designer

Check Adam Danz’s answer in the link below to get started https://www.mathworks.com/matlabcentral/answers/281318-how-can-i-save-...

Copy parameters from UIAxes to other Axes in external figure app designer

Check Adam Danz’s answer in the link below to get started https://www.mathworks.com/matlabcentral/answers/281318-how-can-i-save-...

8 months ago | 0

| accepted

Answered

How to use savefig in app-designer?

I’d use the function created by Adam Danz found on https://www.mathworks.com/matlabcentral/answers/281318-how-can-i-save-a-figur...

How to use savefig in app-designer?

I’d use the function created by Adam Danz found on https://www.mathworks.com/matlabcentral/answers/281318-how-can-i-save-a-figur...

8 months ago | 1

| accepted

Answered

Graphing multiple graphs in one figure

%Use hold on and hold off clear clc xx=transpose(1:10); hold on for hh = 1:6 randvec...

Graphing multiple graphs in one figure

%Use hold on and hold off clear clc xx=transpose(1:10); hold on for hh = 1:6 randvec...

8 months ago | 0

Answered

How to generate and plot a 3D structured mesh in MATLAB?

I’m not sure what all you wanted to do. Is this what you were looking for? clear clc W=8; % Width ...

How to generate and plot a 3D structured mesh in MATLAB?

I’m not sure what all you wanted to do. Is this what you were looking for? clear clc W=8; % Width ...

8 months ago | 0

Answered

How can I create a 3D plot by using the surf?

You could get better resolution if you had more points in your var_disp and ave_disp vectors. I suppose you could interpolate, b...

How can I create a 3D plot by using the surf?

You could get better resolution if you had more points in your var_disp and ave_disp vectors. I suppose you could interpolate, b...

8 months ago | 0

| accepted

Answered

Invalid syntax at num2str. A'(' might be missing a closing ')'

disp([' (a) tanh(e)=',num2str(tanh(exp(1)))])

Invalid syntax at num2str. A'(' might be missing a closing ')'

disp([' (a) tanh(e)=',num2str(tanh(exp(1)))])

8 months ago | 0

Answered

2D plots : Hovering and index information

https://www.mathworks.com/matlabcentral/answers/497552-hi-when-you-create-a-plot-and-hover-over-a-data-point-without-pressing-an...

2D plots : Hovering and index information

https://www.mathworks.com/matlabcentral/answers/497552-hi-when-you-create-a-plot-and-hover-over-a-data-point-without-pressing-an...

8 months ago | 0

| accepted

Answered

How to move y-axis number on the left side ?

ax = gca; ax.YAxisLocation = "left";

How to move y-axis number on the left side ?

ax = gca; ax.YAxisLocation = "left";

8 months ago | 0

| accepted

Answered

how to add a new entry for legend while running a multiple plot

x=1:10; hold on for ii=1:3 y=ii.*x; fig1 = plot(x,y); legvec{ii} = sprintf('plot for run %d',ii); end legend(...

how to add a new entry for legend while running a multiple plot

x=1:10; hold on for ii=1:3 y=ii.*x; fig1 = plot(x,y); legvec{ii} = sprintf('plot for run %d',ii); end legend(...

8 months ago | 0

| accepted

Answered

Not enough input arguments

Is this what you mean? y = 2*cos(2*pi*((f1+f2)/2)*t)*cos(2*pi*((f1-f2)/2)*t);

Not enough input arguments

Is this what you mean? y = 2*cos(2*pi*((f1+f2)/2)*t)*cos(2*pi*((f1-f2)/2)*t);

8 months ago | 0

| accepted

Answered

How to combine two variables in a table

You should rename your value called mean as something that is not already a function name. meanval = {1,2,3,4,5,6,7,...

How to combine two variables in a table

You should rename your value called mean as something that is not already a function name. meanval = {1,2,3,4,5,6,7,...

8 months ago | 0

Answered

how do I write variance in percentage?

You would probably use the coefficient of variation. Coefficient of variation is the standard deviation divided by the mean and ...

how do I write variance in percentage?

You would probably use the coefficient of variation. Coefficient of variation is the standard deviation divided by the mean and ...

8 months ago | 0

Answered

x greater than y by some value

if x - y > 10 disp(’greater than 10’) else disp(‘less than or equal to 10’) end

x greater than y by some value

if x - y > 10 disp(’greater than 10’) else disp(‘less than or equal to 10’) end

8 months ago | 0

| accepted

Answered

Limiting mouseclick event to current Axes in App Designer

Find the pixel locations where you want the function to activate. If it’s a rectangle, then that’s easier. You’ll have four poin...

Limiting mouseclick event to current Axes in App Designer

Find the pixel locations where you want the function to activate. If it’s a rectangle, then that’s easier. You’ll have four poin...

8 months ago | 0

| accepted

Answered

How to merge several 2D plots and make a single 3D plot if vector lengths are not same.

Can you provide some of your data? That way, we could get a better idea of the min/max values for x and y and determine if inter...

How to merge several 2D plots and make a single 3D plot if vector lengths are not same.

Can you provide some of your data? That way, we could get a better idea of the min/max values for x and y and determine if inter...

8 months ago | 0

Answered

Calculate area under curve of multiple peaks

Not the most robust code, but it will work for what you have. You will need to check your findpeaks function to make sure it's o...

Calculate area under curve of multiple peaks

Not the most robust code, but it will work for what you have. You will need to check your findpeaks function to make sure it's o...

8 months ago | 0

Answered

how to solve a system of non linear-equations

I ran the code below and some different versions of vpasolve, but I still got the same answer: no solution. So I have to think t...

how to solve a system of non linear-equations

I ran the code below and some different versions of vpasolve, but I still got the same answer: no solution. So I have to think t...

8 months ago | 0

Answered

Issue with Switch state in AppDesigner

function VioletSwitchValueChanged(app, event) value = app.VioletSwitch.Value if strcmpi(value,'On') ==...

Issue with Switch state in AppDesigner

function VioletSwitchValueChanged(app, event) value = app.VioletSwitch.Value if strcmpi(value,'On') ==...

9 months ago | 1

Answered

definite integral not giving exact answer

I don't know what the issue is. I did this and got 8*r/5. The answer seems to be correct. syms r sym(-r*(cos(175787564848171/7...

definite integral not giving exact answer

I don't know what the issue is. I did this and got 8*r/5. The answer seems to be correct. syms r sym(-r*(cos(175787564848171/7...

9 months ago | 0