University of Rochester, NY

New Bulgarian University, Sofia Bulgaria

Answered

App Designer - I cannot add rows when using uitable

This was recently addressed here (copied below). You need to add data to the table and that will control the number or rows. ...

App Designer - I cannot add rows when using uitable

This was recently addressed here (copied below). You need to add data to the table and that will control the number or rows. ...

6 hours ago | 0

| accepted

Answered

Using Matfile() in combination with a variable

The mat file object is similar to a structure array. Use parentheses to access fields dynamically. m = matfile('myMat.mat'); ...

Using Matfile() in combination with a variable

The mat file object is similar to a structure array. Use parentheses to access fields dynamically. m = matfile('myMat.mat'); ...

6 hours ago | 0

Answered

Error after clicking in pushbutton "Parent must be a scalar graphics handle."

Whenever you're troubleshooting an error in this forum, include the entire error message and indicate what line is causing the e...

Error after clicking in pushbutton "Parent must be a scalar graphics handle."

Whenever you're troubleshooting an error in this forum, include the entire error message and indicate what line is causing the e...

18 hours ago | 2

| accepted

Answered

equation for the sum of sinusoids

"I'm not sure I understand the pi/3, pi/4, etc. used in the x1-x4 equations below. Can anyone explain why this is included?" A ...

equation for the sum of sinusoids

"I'm not sure I understand the pi/3, pi/4, etc. used in the x1-x4 equations below. Can anyone explain why this is included?" A ...

21 hours ago | 0

| accepted

Answered

After requesting input of str2func, how do I make sure the user wrote a valid function?

The solution below uses a try/catch statement nested within a while loop that tests the function. If the function passes, the w...

After requesting input of str2func, how do I make sure the user wrote a valid function?

The solution below uses a try/catch statement nested within a while loop that tests the function. If the function passes, the w...

1 day ago | 0

Answered

find how many times a signal becomes above a certain signal

I think what you mean is that you want to count the number of times a continuous signal goes below 80 and then later goes above ...

find how many times a signal becomes above a certain signal

I think what you mean is that you want to count the number of times a continuous signal goes below 80 and then later goes above ...

1 day ago | 0

| accepted

Answered

How do I add a Table in App Designer?

To add data to a UItable in App Designer, use the startupFcn() after creating the table in the UI. From the App Designer in d...

How do I add a Table in App Designer?

To add data to a UItable in App Designer, use the startupFcn() after creating the table in the UI. From the App Designer in d...

1 day ago | 0

| accepted

Answered

Using save(Filename) in a Callbackfunction of a button

"I was under the impression, that if i use save only the functions workspace will be saved." Yep, as confirmed by, help save ...

Using save(Filename) in a Callbackfunction of a button

"I was under the impression, that if i use save only the functions workspace will be saved." Yep, as confirmed by, help save ...

1 day ago | 1

| accepted

Answered

How to make a plot move in random directions

It's unclear what you mean by a 'circle' and to 'run around' but hopefully this code will get you started. At the top of the c...

How to make a plot move in random directions

It's unclear what you mean by a 'circle' and to 'run around' but hopefully this code will get you started. At the top of the c...

5 days ago | 0

Answered

text style in Matlab

Set the FontName property. Here are some examples. title('myTitle', 'FontName', 'Times') xlabel('myLabel', 'FontName', 'Aria...

text style in Matlab

Set the FontName property. Here are some examples. title('myTitle', 'FontName', 'Times') xlabel('myLabel', 'FontName', 'Aria...

5 days ago | 1

| accepted

Answered

Return average of grades as a column vector?

You don't need a for-loop. The function cellfun() applies a function to all elements of a cell array. Check this out and apply...

Return average of grades as a column vector?

You don't need a for-loop. The function cellfun() applies a function to all elements of a cell array. Check this out and apply...

5 days ago | 0

Answered

Draw lines from both axis to point in plot

Draw vertical and horizontal reference lines First you should set the axis limits, then plot the lines. Here's a demo figure ...

Draw lines from both axis to point in plot

Draw vertical and horizontal reference lines First you should set the axis limits, then plot the lines. Here's a demo figure ...

5 days ago | 0

Answered

How can I instruct my Matlab code to continue running after an error in Simulink?

Try using a try/catch plot doc try

How can I instruct my Matlab code to continue running after an error in Simulink?

Try using a try/catch plot doc try

5 days ago | 0

| accepted

Answered

Please help! "Error: Function definitions are not permitted in this context. "

I see what's wrong in your screen shot. You're entering the entire function in the command window. That's not how you run func...

Please help! "Error: Function definitions are not permitted in this context. "

I see what's wrong in your screen shot. You're entering the entire function in the command window. That's not how you run func...

5 days ago | 0

| accepted

Answered

Add or remove a row of four horizontal Edit Field (Numeric) boxes in appdesigner on button push?

Edit boxes are single lined and single lined edit controls cannot have multi-lined text. So you can't add a row to an edit box....

Add or remove a row of four horizontal Edit Field (Numeric) boxes in appdesigner on button push?

Edit boxes are single lined and single lined edit controls cannot have multi-lined text. So you can't add a row to an edit box....

5 days ago | 0

| accepted

Answered

How to find the mode of a string array (no longer works in 2018b)

The documentation for both 2018a and 2018b indicate that the first input to mode() "can be a numeric array, categorical array, d...

How to find the mode of a string array (no longer works in 2018b)

The documentation for both 2018a and 2018b indicate that the first input to mode() "can be a numeric array, categorical array, d...

5 days ago | 0

| accepted

Answered

how can i seperate the value exp(1i*2*pi*bbbb);

The question is unlcear. Given d1 from [d1 = bb1 * exp(a)], are you asking how to get exp(a)? If so, exp(a) = log(d1/bb1);

how can i seperate the value exp(1i*2*pi*bbbb);

The question is unlcear. Given d1 from [d1 = bb1 * exp(a)], are you asking how to get exp(a)? If so, exp(a) = log(d1/bb1);

5 days ago | 0

| accepted

Answered

how to put function's out put plot in Guide axes

Suppose your function produces the following figure figure; axHand = axes; hold(axHand, 'on') plot(rand(10)); plot(rand(...

how to put function's out put plot in Guide axes

Suppose your function produces the following figure figure; axHand = axes; hold(axHand, 'on') plot(rand(10)); plot(rand(...

5 days ago | 0

| accepted

Answered

Check if a 2D Point lies on a given Arc or not

My solution calculates the euclidean distance between the 'test point' to all points on the arc. If the minimum distance is bel...

Check if a 2D Point lies on a given Arc or not

My solution calculates the euclidean distance between the 'test point' to all points on the arc. If the minimum distance is bel...

5 days ago | 0

Answered

How can I convert a character vector that includes date time and random text to datetime format?

This fits the pattern in your example but it is not robust to pattern changes. t = '2018-05-19_07.11.16_test6.csv'; dtchar...

How can I convert a character vector that includes date time and random text to datetime format?

This fits the pattern in your example but it is not robust to pattern changes. t = '2018-05-19_07.11.16_test6.csv'; dtchar...

5 days ago | 0

Answered

xlabel with non italic mu in latex

You can enter the µ character directly; no need for latex. xlabel('{\itt} / µs', 'interpreter', 'tex')

xlabel with non italic mu in latex

You can enter the µ character directly; no need for latex. xlabel('{\itt} / µs', 'interpreter', 'tex')

5 days ago | 0

| accepted

Answered

How to plot lines instead of symbols in loop

The reason a line will not show but single markers will is because you're only plotting one point at a time within the loop. A ...

How to plot lines instead of symbols in loop

The reason a line will not show but single markers will is because you're only plotting one point at a time within the loop. A ...

6 days ago | 0

| accepted

Answered

determining time interval between peaks using a for loop

I agree with jonas, a for-loop is unneeded. I also agree that anyone would need a sample dataset to determine the best approach...

determining time interval between peaks using a for loop

I agree with jonas, a for-loop is unneeded. I also agree that anyone would need a sample dataset to determine the best approach...

6 days ago | 0

| accepted

Answered

How to delete line in GUI axes with multiple lines?

The reason why the code doesn't remember the handle to l_1 is because once the callback function is finished, the variables no l...

How to delete line in GUI axes with multiple lines?

The reason why the code doesn't remember the handle to l_1 is because once the callback function is finished, the variables no l...

6 days ago | 1

| accepted

Answered

Removing data from one vector and corresponding vector

"I can understand how I would remove my temperature outliers, however because these are 2 separate vectors (both 20000x1, for ex...

Removing data from one vector and corresponding vector

"I can understand how I would remove my temperature outliers, however because these are 2 separate vectors (both 20000x1, for ex...

7 days ago | 1

| accepted

Answered

Free hand drawing in Matlab with output is XY coordinate of trajectory.

This might be what you're looking for. ginput() allows you to click on a graph as many times as you'd like and it returns a 2-co...

Free hand drawing in Matlab with output is XY coordinate of trajectory.

This might be what you're looking for. ginput() allows you to click on a graph as many times as you'd like and it returns a 2-co...

7 days ago | 0

| accepted

Answered

Fron Python to Matlab

I can't run your code right now in python so I can't compare the results but most of these lines should be the correct conversio...

Fron Python to Matlab

I can't run your code right now in python so I can't compare the results but most of these lines should be the correct conversio...

7 days ago | 0

| accepted

Answered

I keep getting 'Index exceeds array bounds.' my code doesn't like r(i)

Initially in your code, t is a vector. t = [0 pi/4 pi/2 3*pi/4 pi] t = 0 0.7854 1.5708 2.3562 ...

I keep getting 'Index exceeds array bounds.' my code doesn't like r(i)

Initially in your code, t is a vector. t = [0 pi/4 pi/2 3*pi/4 pi] t = 0 0.7854 1.5708 2.3562 ...

8 days ago | 0

| accepted

Answered

How to load a .mat file and make all the variables from that .mat file to be global variables?

You don't want to make all the mat variable global. That will open a can of worms. If variables in the mat file are needed in ...

How to load a .mat file and make all the variables from that .mat file to be global variables?

You don't want to make all the mat variable global. That will open a can of worms. If variables in the mat file are needed in ...

8 days ago | 0

Answered

How do i accept only numbers as input to forward to a switch case ?

This should solve both problems. Replace your first line with this. velocity = []; while isempty(velocity) try ...

How do i accept only numbers as input to forward to a switch case ?

This should solve both problems. Replace your first line with this. velocity = []; while isempty(velocity) try ...

8 days ago | 0

| accepted