Answered
How can I modify the values of the y axes
Modifying them depends on the axis scale. If they are linearly-scaled, use the Exponent property in Tick Values and Labels in t...

5 years ago | 0

| accepted

Answered
Removing Plot Points inside area
There are too many missing values to run your code, so I can’t. One option is to plot a filled circle after you’ve plotted ev...

5 years ago | 0

| accepted

Answered
Iterating using a specific interval, to intermittently average data in a scatter plot.
When s >= 7 the code overwrites the array. The indices are otherwise all integers greater than 0, so the problem with them no...

5 years ago | 1

| accepted

Answered
Creating Shapes in MATLAB
See the documentation on the fill function. It describes everything you want to do, with example code.

5 years ago | 1

| accepted

Answered
POLES, ZEROES INTO MESSAGE BOX
Specify the real and imaginary parts of the poles (and later, zeros) and add a newline (\n) character: result = msgbox(sprintf...

5 years ago | 0

| accepted

Answered
Read specific area on graph
Use the bandpass function (introduced in R2018a).

5 years ago | 0

Answered
Function returns 'NaN' when running it in a loop after second iteration
Please promise to never again use global variables! That aside, and since ‘ri2’ is nowhere to be found, I can’t run your code...

5 years ago | 0

Answered
How can I identify number of cells in this image?
Maybe I’m missing something in your objection to using those example, however this actually appears to work, even with the clust...

5 years ago | 0

| accepted

Answered
Special legend for special bar plot
See if the approach in How to draw bar graph of different colors ? will do what you want.

5 years ago | 0

| accepted

Answered
Anonymous Function Error Question
The problem you want to solve is not at all clear. It would appear that you are doing curve-fitting (parameter estimation), w...

5 years ago | 0

Answered
How to calculate mean and standard deviation from a textfile
‘I am being asked to find the average of this using the mean function and also to find the standard deviation using the std func...

5 years ago | 1

| accepted

Answered
find a point on a graph
Try somethiing like this with your data: x = 10:50; % Create Data y = 4000 - 80*x; ...

5 years ago | 1

Answered
Extract x,y,z coordinates from figure
If you used the ‘x’ and ‘y’ vectors from your previous post Add x and y Values to z data from excel file and if you want to save...

5 years ago | 1

Answered
All tables in the bracketed expression must have the same number of variables.
Without knowing more about the .csv files, after reading them using readtable, use table2array to convert them to arrays, then v...

5 years ago | 0

| accepted

Answered
My Grading program is not printing the answers onto the text file
There are different ways to do this, however the easiest may be to put it in a loop: for k = 1:numel(Scores) if Scores(k)...

5 years ago | 0

| accepted

Answered
What is the meaning of this statement: M1 = txyz'/trgb';
The ‘trbg’ assignment passes that vector to either function ‘rgb’ or as indices into array ‘rbg’ and returns the result, then di...

5 years ago | 1

Answered
cant seem to get this to translate
With no idea of what you want to do, and creating my own ‘plot_polygon’ function, try this: plot_polygon = @(x,y) plot(polysha...

5 years ago | 0

| accepted

Answered
Hourly averages over a 20yr time series
See if the groupsummary function will do what you want. The retime function is also an option.

5 years ago | 1

Answered
Locating point on x-axis where the slope is decreasing
A reasonably robust way is to use the ischange function: D = load('data.mat'); Time = D.Time; theta = D.theta; [TF,m,b] =...

5 years ago | 0

| accepted

Answered
No Line in my plot its just dots
One approach is to create two new vectors from ‘f’ and ‘y’ and plot them after the loop: x=0.5; n=5; i=0; f=0; while ...

5 years ago | 1

| accepted

Answered
Add x and y Values to z data from excel file
It looks as though that would do exactly what you want. For example, this: z = rand(37,20); ...

5 years ago | 0

| accepted

Answered
Solving non linear equation
Try this: theta = 0.82 alpha = 0.27 D_x = linspace(0, 1.05, 20); D_x_fcn = @(x) theta*x+(1-theta).*(x.^(1-alpha)); for...

5 years ago | 0

| accepted

Answered
2D Interpolation of a scatterplot using xyz values.
There are several options, likely the easiest being: xv = linspace(min(x), max(x), numel(x)); yv = linspace(min(y), max(y), n...

5 years ago | 0

Answered
storing the array in a 3D array?
I would use a cell array. See the documentation for details.

5 years ago | 0

Answered
Unable to convert expression containing symbolic variables into double array error
Create ‘xdd’ as a cell array instead: xdd{i} = s^2*x(i) + 2*sin(t) That works.

5 years ago | 0

| accepted

Answered
How do I range through a set of columns in a table to generate data and store data in new columns?
Try this: T1 = readtable('matlab table.xlsx', 'VariableNamingRule','preserve'); Result = array2table(T1{:,1:8}.*T1.FixedCon...

5 years ago | 0

| accepted

Answered
Solving multiple symbolic equations
The resistances do not appear to have specific solutions, although other variables do: S = solve([eq1,eq2,eq3,eq4,eq5,eq6,eq7,...

5 years ago | 0

Answered
Estimate volume from extracted pulse
Since you are dealing with vectors and not functions, trapz (or cumtrapz, depending on the result you want) is likely the only w...

5 years ago | 0

| accepted

Answered
ploting function and its derivative error
Use the fplot function: syms x y z t f=log(x)+sin(x); y=diff(f,x,1); z=diff(f,x,4); t=diff(f,x,5); x=0:1; figure fpl...

5 years ago | 0

Answered
Add a title to a table built with syntax - AUCtable = table(x, y, z)
I am not exactly certain what you want as the end result. Try this: x = rand(5,1); ...

5 years ago | 0

| accepted

Load more