Answered
Can I see the values that at the slider ?
You can access the slider value from the handle to the slider. I don't know if you're using 'guide' or 'appdesigner' (or neith...

7 years ago | 0

| accepted

Answered
How to merge two plots into one
To put both axes on the same figure, use subplot() % Plot initial -Cp and shape fig1 = figure; subplot(2,1,1) plot(initial....

7 years ago | 0

| accepted

Answered
How to restrict user inputs?
inputOK = false; while ~inputOK y = input('Please enter the letter ''i'' for an imperial output or ''m'' for a metric outp...

7 years ago | 1

Answered
Rearrange halves of yaxis in graph
If I understand correctly, move the section of data from x=1.25 to x=2.1 and place that segment just before x=0. Assuming you...

7 years ago | 1

| accepted

Answered
Plotting issues with labeling axis and giving titles
My hunch is that 'title' is a variable in your data and no longer represents matlab's builtin function of the same name. This ...

7 years ago | 0

Answered
Use of Anovan parameter 'continuous'?
"The documentation for the parameter 'continuous' for anovan is scant. I have three factors, two are numeric: 'P','F', and one i...

7 years ago | 0

Answered
AOC tool in Matlab to create an ANCOVA
The aoctool() only allows for one grouping variable. Instead, anovan() might be an option for what you're describing. anovan()...

7 years ago | 1

Answered
How can I get bootstrapped marginal means and confidence intervals after an ANCOVA?
Matlab provides an example how to plot the confidence bounds from within the aoctool(). https://www.mathworks.com/help/stats/a...

7 years ago | 0

Answered
How to Specify Line Color & Style
Use plot() instead of scatter(). For example, plot(numVal(:,1),numVal(:,4), 'g-o', 'markerfacecolor', 'g'); For a descriptio...

7 years ago | 0

| accepted

Answered
Hi all please i need to know how to generate a Poisson distributed number using the built-in function (poissrnd).use this command to generate 5000 numbers and use maxlikelihood estimate for poission distribution to complete its means
That's not how I interpreted part-1 of your problem. " i need to know how to generate a Poisson distributed number using the ...

7 years ago | 0

| accepted

Answered
fprintf length of vector
fprintf('Length of vector is %d\n', length(V)) The " %d " specifies that the number to be printed is an integer which should al...

7 years ago | 0

Answered
bar plot ylim problem
ylim() does work. ylim([0,15]) %at the end of your code; shown in the figure below. Or you can make it flexible. This line ...

7 years ago | 0

| accepted

Answered
getting user input in title and legend
In addition to Star Strider's method, the user can directly edit titles and legend strings by selecting them on the figure itsel...

7 years ago | 0

Answered
Using a switch case to determine parking cost
One option is to create an input dialog. prompt = {'Number of weeks', 'Number of days', 'Hours', 'Minutes'}; dlgtitle = 'Ent...

7 years ago | 0

| accepted

Answered
error using contains function
I can see in your screen shot of workspace variables that your "Raw" array contains mostly NaN values. According to your error...

7 years ago | 0

| accepted

Answered
MATLAB 2019a ginput spectrogram issue
Changes were made to the toolbar starting in R2018b. The ginput() function temporarily disables the toolbar on the figure. To ...

7 years ago | 0

| accepted

Answered
How to compare and find the differences in each cell inside a cell structure array?
See the comments within the solution for an explanation of the methods. The basic approach is to convert your data to binary fo...

7 years ago | 0

| accepted

Answered
Read a certain amount of rows from a column of an excel file
Here are a couple options demonstrating how to work with the matrix you've already loaded into matlab. If your data is a cell a...

7 years ago | 0

| accepted

Answered
Cannot seem to correct the error with the function
In your call to fsolve(), the objective function contains two inputs sol=fsolve(@(X)eneqpv(X,Pcell),Tcellold); % ...

7 years ago | 1

Answered
How can I extract values from a histogram (figure)?
If you have access to the script/function that produced the histogram and the input data, you should get the histogram values fr...

7 years ago | 2

Answered
how can i plot a half sine wave plot or a cosine wave which has a origin as a centre ?
"can we plot a sine wave which half wave i.e. positive side only" Yes. Here's a hint. This produces one full cycle of a sin c...

7 years ago | 0

| accepted

Answered
Creating Timetables: Error Message in SampleRate
Here's a link to the 2017b documentation for timetable(). https://www.mathworks.com/help/releases/R2017b/matlab/ref/timetable....

7 years ago | 2

| accepted

Answered
How to add zero at the very beginning of my column matrix?
Use a semicolon instead of a comma. The variable 'Eng_Strain' is a column vector so you need to vertically concatenate the zer...

7 years ago | 0

| accepted

Answered
BoxPlot with datetime in Y-axis?
"How can I draw a boxplot with datetime value in the y axis? " Convert the datetime to numeric and then use datetick() to displ...

7 years ago | 2

| accepted

Answered
how to create black and white checkerboards with different number of squares
The output of checkerboard() contains normalized values where 0 represents black, 1 represents white, and values between represe...

7 years ago | 0

| accepted

Answered
Find rows in matrix A that contain value x, find() fails
This will return a logical vector the same length as the number of rows in your matrix. 'True' values (1) mark rows that have a...

7 years ago | 0

| accepted

Answered
Return back to a specific line
Here's a functional example that you can run or step through in debug mode. The flag 'continueForLoop' determines whether the fo...

7 years ago | 1

Answered
Linearization of points problem
In this case, the error message clearly tells you what the problem is. Error using linearize (line 132) The first input argum...

7 years ago | 0

| accepted

Answered
Matrix problem with my vectors
"I am tryin to create a vector of angles in incrments of 5 from -5 to 25" angles = -5 : 5 : 25 Result: angles = -5 0...

7 years ago | 0

Answered
How do I create more than one plot at a time in a script?
Create the different axes prior to your loops. Then specify which axes should be used for each histogram. Here's an example th...

7 years ago | 0

| accepted

Load more