Answered
save all value array in loop for
See this post.

6 years ago | 0

| accepted

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

6 years ago | 1

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

6 years ago | 0

| accepted

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

6 years ago | 0

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

6 years ago | 0

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

6 years ago | 0

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

6 years ago | 0

| accepted

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

6 years ago | 0

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

6 years ago | 0

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

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

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

6 years ago | 1

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

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

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

6 years ago | 1

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

6 years ago | 0

| accepted

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

6 years ago | 2

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

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

6 years ago | 2

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

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

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

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

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

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

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

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

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

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

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

6 years ago | 0

| accepted

Load more