답변 있음

Using Matlab Grader to check correct name-value pair was used

MATLAB Grader does not have a built-in way to test name value pairs. If I were going to assess this, I would test the followin...

Using Matlab Grader to check correct name-value pair was used

MATLAB Grader does not have a built-in way to test name value pairs. If I were going to assess this, I would test the followin...

2일 전 | 0

답변 있음

How to get 2 heatmaps

I suspect what is happeing is you are plotting both heatmpas onto the same axes, meaning the second one replaces the first. Plac...

How to get 2 heatmaps

I suspect what is happeing is you are plotting both heatmpas onto the same axes, meaning the second one replaces the first. Plac...

3일 전 | 0

답변 있음

How to take Image as Input in a function

You'd have to first load the image into MATLAB and store it in a variable. You can then pass that variable as input to your func...

How to take Image as Input in a function

You'd have to first load the image into MATLAB and store it in a variable. You can then pass that variable as input to your func...

3일 전 | 0

답변 있음

using fmincon with extra parameters

See this post from the MathWorks Support Team. You'd probably need a loop to iterate through all the lengths. Update your call ...

using fmincon with extra parameters

See this post from the MathWorks Support Team. You'd probably need a loop to iterate through all the lengths. Update your call ...

3일 전 | 0

| 수락됨

답변 있음

moving window chi square test for outlier removal

One thought would be to use the interactive task in live scripts to find, fill or remove outliers. It might not be sophisticated...

moving window chi square test for outlier removal

One thought would be to use the interactive task in live scripts to find, fill or remove outliers. It might not be sophisticated...

3일 전 | 0

답변 있음

summation of two curves with different data points

You are plotting against time. The easiest thing I can think of is putting the underlying data into a timetable and then using t...

summation of two curves with different data points

You are plotting against time. The easiest thing I can think of is putting the underlying data into a timetable and then using t...

3일 전 | 0

답변 있음

Converting a Cell of Cells into an Array of a String Column and Double Column

Arrays do not support mixed data types. Cells do, which is why your data is probably stored in a cell array. Something that does...

Converting a Cell of Cells into an Array of a String Column and Double Column

Arrays do not support mixed data types. Cells do, which is why your data is probably stored in a cell array. Something that does...

3일 전 | 0

답변 있음

How do I convert matlab file to pdf

If you are using a live script, the is an "Export to pdf" option in the Save menu on the home tab. Click the down arrow to expan...

How do I convert matlab file to pdf

If you are using a live script, the is an "Export to pdf" option in the Save menu on the home tab. Click the down arrow to expan...

5일 전 | 0

답변 있음

How to a two plot in same x value for different y value?

If you have 15 minutes, I suggest going through Chapter 9 of MATLAB Onramp. It will introduce you to plotting in MATLAB.

How to a two plot in same x value for different y value?

If you have 15 minutes, I suggest going through Chapter 9 of MATLAB Onramp. It will introduce you to plotting in MATLAB.

5일 전 | 0

| 수락됨

답변 있음

Calculating Time Intervals Between measurements

Time is incorporated into frequency (cycles/unit of time). What are the units of your frequency? It looks like Hz, which means c...

Calculating Time Intervals Between measurements

Time is incorporated into frequency (cycles/unit of time). What are the units of your frequency? It looks like Hz, which means c...

5일 전 | 0

답변 있음

Using loops to solve probles please assist

I recommend going through Chapter 13 of MATLAB Onramp. It takes about 10 minutes, and will help you learn how to use for loops.

Using loops to solve probles please assist

I recommend going through Chapter 13 of MATLAB Onramp. It takes about 10 minutes, and will help you learn how to use for loops.

5일 전 | 0

답변 있음

Found a potential bug in 'listdlg'?

It wouldn't be a bug since this behavior is documented in the doc. "If you specify the prompt as a character vector that is lon...

Found a potential bug in 'listdlg'?

It wouldn't be a bug since this behavior is documented in the doc. "If you specify the prompt as a character vector that is lon...

7일 전 | 0

| 수락됨

답변 있음

Strange error in using kmedoids function

The top error is likely the one you can do something about (Error using datasample (line 123)). Is the indicated code something ...

Strange error in using kmedoids function

The top error is likely the one you can do something about (Error using datasample (line 123)). Is the indicated code something ...

7일 전 | 0

답변 있음

Create Bar Charts with different bar colours with a legend

This is a popular assignment today. See this post. As for the legend, it's pretty simple. Take a look at this doc page for how ...

Create Bar Charts with different bar colours with a legend

This is a popular assignment today. See this post. As for the legend, it's pretty simple. Take a look at this doc page for how ...

7일 전 | 1

답변 있음

Conversion from MuPAD to MATLAB

Have you seen this page? It recommends trying the convertMuPADNotebook function. It also points to the resource page Convert MuP...

Conversion from MuPAD to MATLAB

Have you seen this page? It recommends trying the convertMuPADNotebook function. It also points to the resource page Convert MuP...

7일 전 | 0

답변 있음

colormap problem. bar graph doesn`t respond to colormap command

I just answered a similar question here. It is still possible, but it appears the way to do it has changed.

colormap problem. bar graph doesn`t respond to colormap command

I just answered a similar question here. It is still possible, but it appears the way to do it has changed.

7일 전 | 0

| 수락됨

답변 있음

colormap doesn't work with bar plots in 2019a

Not sure if it's changed, but here's an example borrowed from the doc on bar. y = [1 3 5; 3 2 7; 3 4 2]; b = bar(y,'FaceColor'...

colormap doesn't work with bar plots in 2019a

Not sure if it's changed, but here's an example borrowed from the doc on bar. y = [1 3 5; 3 2 7; 3 4 2]; b = bar(y,'FaceColor'...

7일 전 | 0

| 수락됨

답변 있음

Hi, i am trying to delete NoValue from A without hardcoding so that i am only left with numbers and store them in Absorption vector but when i run the code it comes back exactly as it is, please help!!

The conditional of an if statement can only check one value at a time, yet deletedValues is a vector. For your if statement to w...

Hi, i am trying to delete NoValue from A without hardcoding so that i am only left with numbers and store them in Absorption vector but when i run the code it comes back exactly as it is, please help!!

The conditional of an if statement can only check one value at a time, yet deletedValues is a vector. For your if statement to w...

7일 전 | 0

| 수락됨

답변 있음

Why is day() function throwing me this error: Check for missing argument or incorrect argument data type in call to function 'day'?

Based on the arithmetic you are doing with your date, I think you want to use the function days instead of day. The former retur...

Why is day() function throwing me this error: Check for missing argument or incorrect argument data type in call to function 'day'?

Based on the arithmetic you are doing with your date, I think you want to use the function days instead of day. The former retur...

8일 전 | 1

| 수락됨

답변 있음

Need short one sentence explanaion on bwmorph

Did you try the documentation? "Removes interior pixels. This option sets a pixel to 0 if all its 4-connected neighbors are 1, ...

Need short one sentence explanaion on bwmorph

Did you try the documentation? "Removes interior pixels. This option sets a pixel to 0 if all its 4-connected neighbors are 1, ...

8일 전 | 0

| 수락됨

답변 있음

MATLAB Grader. How to check vectroization in students solution?

There is no built-in way to check that they used element-wise operators (.^). You can prohibit the use of the keyword for, to a...

MATLAB Grader. How to check vectroization in students solution?

There is no built-in way to check that they used element-wise operators (.^). You can prohibit the use of the keyword for, to a...

8일 전 | 2

답변 있음

I wrote a code for looping an angle value 1 through 100, and set an if condition that when true outputs a total pressure recovery value, my loop is spitting out sym values, what am I doing wrong?

I get an error on this line M_1n= double(M1*sind(b_1)) % M_1n=M_2n=M_3n The function double converts a symbolic value to a num...

I wrote a code for looping an angle value 1 through 100, and set an if condition that when true outputs a total pressure recovery value, my loop is spitting out sym values, what am I doing wrong?

I get an error on this line M_1n= double(M1*sind(b_1)) % M_1n=M_2n=M_3n The function double converts a symbolic value to a num...

8일 전 | 0

답변 있음

Multiple plots in the same figure

You have a figure command in your Dicom_Reading function. This will create a new figure window. This is why, when you run the fu...

Multiple plots in the same figure

You have a figure command in your Dicom_Reading function. This will create a new figure window. This is why, when you run the fu...

8일 전 | 0

| 수락됨

답변 있음

Creating a vector from nested for loops

Two ideas come to mind. for i =1:n for j=1:m b(i,j)=... end end b=b(:); Another way might be to add the...

Creating a vector from nested for loops

Two ideas come to mind. for i =1:n for j=1:m b(i,j)=... end end b=b(:); Another way might be to add the...

8일 전 | 0

답변 있음

find the values of polynomial to use polyfit

With polyfit, you supply it the X and Y data and it returns the equation for you. Well, the coefficients of the polynomial of th...

find the values of polynomial to use polyfit

With polyfit, you supply it the X and Y data and it returns the equation for you. Well, the coefficients of the polynomial of th...

8일 전 | 0

| 수락됨

답변 있음

How to approximate simple data vectors?

These look like straight lines to me. I'd use polyfit. If you have the Curve Fitting Toolbox, you could also use the fit funct...

How to approximate simple data vectors?

These look like straight lines to me. I'd use polyfit. If you have the Curve Fitting Toolbox, you could also use the fit funct...

8일 전 | 0

| 수락됨

답변 있음

how i can replace (99999,9) and (99,9900) in a column by NAN?

I'd use the function standardizeMissing. % Create a row vector and replace all instances of -99 % with the standard missing v...

how i can replace (99999,9) and (99,9900) in a column by NAN?

I'd use the function standardizeMissing. % Create a row vector and replace all instances of -99 % with the standard missing v...

8일 전 | 0

| 수락됨

답변 있음

How can I uninstall Biosig from Matlab?

The typcial way to do this is through the Add-Ons menu in the Home tab toolstrip. However, this toolbox is not created by MathW...

How can I uninstall Biosig from Matlab?

The typcial way to do this is through the Add-Ons menu in the Home tab toolstrip. However, this toolbox is not created by MathW...

9일 전 | 0