Answered

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

1 day ago | 0

| accepted

Answered

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

1 day ago | 0

Answered

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

1 day ago | 0

Answered

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

1 day ago | 0

Answered

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.

1 day ago | 0

| accepted

Answered

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

1 day ago | 0

| accepted

Answered

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

1 day ago | 0

Answered

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

2 days ago | 1

| accepted

Answered

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

2 days ago | 0

| accepted

Answered

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

2 days ago | 1

Answered

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

2 days ago | 0

Answered

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

3 days ago | 0

| accepted

Answered

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

3 days ago | 0

Answered

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

3 days ago | 0

| accepted

Answered

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

3 days ago | 0

| accepted

Answered

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

3 days ago | 0

| accepted

Answered

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

4 days ago | 0

Answered

1.85 exponential axis plot - possible?

You can set your tick labels to be whatever your want. The label and value are indpendent properties. One approach would be to d...

1.85 exponential axis plot - possible?

You can set your tick labels to be whatever your want. The label and value are indpendent properties. One approach would be to d...

4 days ago | 1

| accepted

Answered

Difference between movmad and med(abs(x-med(x)))

You are comparing 2 different equations. The documentation says the equation used in movmad is You are using medfilt1, which ...

Difference between movmad and med(abs(x-med(x)))

You are comparing 2 different equations. The documentation says the equation used in movmad is You are using medfilt1, which ...

4 days ago | 1

| accepted

Answered

How to convert a number into a date

Haven't figured out Type 1 yet, but based on this website, I think I've got a way to convert Type 2. % GPS time t = 52634; tU...

How to convert a number into a date

Haven't figured out Type 1 yet, but based on this website, I think I've got a way to convert Type 2. % GPS time t = 52634; tU...

5 days ago | 0

Answered

Plotting Two Data Sets on a Figure

Something like this? Use the hold command. x = linspace(-pi,pi); y1 = sin(x); plot(x,y1) hold on y2 = cos(x); plot(x,...

Plotting Two Data Sets on a Figure

Something like this? Use the hold command. x = linspace(-pi,pi); y1 = sin(x); plot(x,y1) hold on y2 = cos(x); plot(x,...

5 days ago | 0

| accepted

Answered

how can i change the type of data imported data from excel file

I'd probably do something like this file ="ahmedMohamed_data1.xlsx"; data = readtable(file) data.indices = str2double(split(d...

how can i change the type of data imported data from excel file

I'd probably do something like this file ="ahmedMohamed_data1.xlsx"; data = readtable(file) data.indices = str2double(split(d...

5 days ago | 0

Answered

Multiple grouping variables in a boxplot

The file exchange may have some code that does this. See this post. As far as what can be done in MATLAB, here's a simple examp...

Multiple grouping variables in a boxplot

The file exchange may have some code that does this. See this post. As far as what can be done in MATLAB, here's a simple examp...

5 days ago | 0

Answered

Grader says answer Verified in Reference Solution is wrong when submitted by a Learner

From what I can see, the issue is that you are comparing two symbolic variables. Symbolic variables do not have a concept of tol...

Grader says answer Verified in Reference Solution is wrong when submitted by a Learner

From what I can see, the issue is that you are comparing two symbolic variables. Symbolic variables do not have a concept of tol...

6 days ago | 1

| accepted

Answered

How to create a uniform y-tick interval in subplots

Something like this works. Note that you'll have some challenges because most of your y values are very small, so it might not l...

How to create a uniform y-tick interval in subplots

Something like this works. Note that you'll have some challenges because most of your y values are very small, so it might not l...

6 days ago | 0

| accepted

Answered

Any idea to make scatter plot more clear to read?

Have you checked out the properties for scatter plots? Consider changing your marker style or marker size. You can also adjust ...

Any idea to make scatter plot more clear to read?

Have you checked out the properties for scatter plots? Consider changing your marker style or marker size. You can also adjust ...

6 days ago | 0

Answered

how to plot single curve with 2 yaxis align?

Your second plot is not appearing. Starting in r2016a, the recommended way to plot with 2 y-axes is to use yyaxis. = [0.015 ...

how to plot single curve with 2 yaxis align?

Your second plot is not appearing. Starting in r2016a, the recommended way to plot with 2 y-axes is to use yyaxis. = [0.015 ...

6 days ago | 0

Answered

matlab online (Unrecognized function or variable 'minFunc'.)

That is not a function created by MathWorks. Make sure you have the file for the function, and that it either exists on your MAT...

matlab online (Unrecognized function or variable 'minFunc'.)

That is not a function created by MathWorks. Make sure you have the file for the function, and that it either exists on your MAT...

6 days ago | 0

| accepted

Answered

How to run a loop for variables satifying a specific condition and multiply them by values stored in a matrix?

I recommend you spend some time going through MATLAB Onramp. It's interactive, and you can go at your own pace. Oh, and it's fre...

How to run a loop for variables satifying a specific condition and multiply them by values stored in a matrix?

I recommend you spend some time going through MATLAB Onramp. It's interactive, and you can go at your own pace. Oh, and it's fre...

6 days ago | 0

| accepted

Answered

How to reindex values from a vector

index = [4 2 3 1 5]; x=[0.5392 0.7805 0.5867 0.4189 0.9886]; sortedX = x(index) sortedX = 1×5 0.4189 0.7805...

How to reindex values from a vector

index = [4 2 3 1 5]; x=[0.5392 0.7805 0.5867 0.4189 0.9886]; sortedX = x(index) sortedX = 1×5 0.4189 0.7805...

6 days ago | 0

| accepted