Answered
can Matlab solve such a symbolic integral?
I am not certain what you want. This works in R2020b: syms A w t x f = sqrt(A + (w*x + t)^2); fint = int(f,x); fint = si...

6 years ago | 1

| accepted

Answered
How to find the average peak values and plot?
Try this: m=1000; I1=0.5; I2=0.3; I3=0.2; L1=70*m; L2=140*m; n1=2; n2=1.444; index=n2; lam=m*(1.5:0.000001:1.6); Q12...

6 years ago | 1

| accepted

Answered
Matlab legend wont match graph
See if this slight modification does what you want: legend([h1(1), h2(1), h3(1), h4(1), h5(1), h6(1), h7(1), h8(1)],'Solar Arr...

6 years ago | 0

| accepted

Answered
warning at the start of matlab software
See if this MathWorks Support Team explanation helps: Why do I receive the error "Warning: An error occurred while reading the d...

6 years ago | 0

| accepted

Answered
How do I read in this text file using fopen fclose and fscanf and then split each column into variables?
If you have R2013b or later, use readtable: T1 = readtable('car_data.txt', 'VariableNamingRule','preserve'); with: FirstFi...

6 years ago | 0

Answered
Finding exponential decay of a*e^(-t*b)*sin(c*t) function
See if fitting it will do what you want. See for example How to filter noise from time-frequency data and find natural frequen...

6 years ago | 1

| accepted

Answered
How can one get parameters of fitlm as an output?
First, see the documentation for F-Statistic, then see the documentation for anova, specifically tbl.

6 years ago | 0

| accepted

Answered
How to make a meshgrid out of 1D data?
Using oinly two points could prove to be a challenge. The griddata function might be easiest for this problem, however griddedI...

6 years ago | 0

Answered
Find the gradient using matlab code
You can do exactly what you want in either base MATLAB or using the Symbolic Math Toolbox. Please search the documentation us...

6 years ago | 0

Answered
How to set the grid of the right yyaxis?
Another option is to create new right-axis tick positions to match the tick positions on the left: x1=[200, 300, 250, 520, 340...

6 years ago | 0

| accepted

Answered
Concatenate signals ( sine wave and a line )
You are attempthing to vertically concatenate them. Use commas (,) instead fo semicolons(;) and it will work. Commas horizon...

6 years ago | 1

Answered
Zone identification on curve
Try this: D = load('identification.mat'); var = D.var; x = 0:numel(var)-1; varfilt = sgolayfilt(var, 5, 271); Lmx = ...

6 years ago | 2

| accepted

Answered
How to use custom X values for the findchangepts function?
The findchangepts function outputs the change points as a vector of integer indices. To put them in the context of your data,...

6 years ago | 0

Answered
How do I pick specific rows of a txt file and plot data?
Try this: D1 = readmatrix('collagen405.txt', 'HeaderLines',14); x = D1(:,1); y = D1(:,2); figure plot(x, y) grid title...

6 years ago | 0

Answered
ODE45 must return column vector
Try this: I=[80,131,189,270,320,407,450,530,620,686,740,900,1095]; t2=[74,29,21,12,8,5.7,4.4,3.6,2.1,1.8,1.5,1.0,0.7]; a=....

6 years ago | 0

| accepted

Answered
Plotting a 3D surface model with colours from excel
I am not certain what result you want. One option: T1 = readtable('dagslysdata.xlsx', 'HeaderLines',3); Xv = linspace(min(...

6 years ago | 0

| accepted

Answered
I'm trying to plot this equation, if anyone can help
Take the square root of both sides, and plot: y = +sqrt(4*a*x); y = -sqrt(4*a*x); That’s how I would do it, anyway.

6 years ago | 0

Answered
Compass of complex matrix, getting "dot indexing is not supported for variables of this type."
See if this does what you want: c = compass (SOUSLEDNA); c1 = c(1); c1.LineWidth = 2; c1.Color = 'r'; .

6 years ago | 1

| accepted

Answered
Boundary line for contour
Sometimes, a bit of absolute creativity (‘thinking outside the contour) is necessary. I first did a meshc plot of your matric...

6 years ago | 1

| accepted

Answered
ODE45; Length of initial conditions vector not accepted
See if this does what you want: function ddx = odefcn(t,v,W,k,rho,S,R,m,P,c_Do) A_0 = (4.654*W*cos(t)*k)/(rho*S) - W*sin(...

6 years ago | 0

| accepted

Answered
Problems using a Butterworth filter instead of a bandstop to filter frequencies.
You are not designing the filter correctly. Try this instead: lfreq = 170; ...

6 years ago | 0

| accepted

Answered
How to put a numerical value inside a Bar graph?
Change the text call to: text(1:length(Y),Y/2,num2str(Y'),'vert','bottom','horiz','center'); % values position That should w...

6 years ago | 0

| accepted

Answered
How would I simulate this in Matlab?
I would approach it as a compartmental modeling problem. Plants grow at a specific rate, however some will die (for whatever ...

6 years ago | 0

Answered
How do I produce graphs from 'for' loop?
Use the hold function. figure hold on <LOOP> hold off If you are plotting single points in each loop iteration (not possi...

6 years ago | 0

| accepted

Answered
tf2ss not returning the correct State Space form
The result is correct. The exact configuration doesn’t matter, so long as all the matrices and vectors work together (and produ...

6 years ago | 2

| accepted

Answered
How do I generate a polynomial from roots that are repeated?
Iinteresting. I would expect no repeats, and complex conjugate values instead. Try this: rts = [ -0.7437 - 1.4178i ...

6 years ago | 0

| accepted

Answered
add standard deviation value and text on bars
When I try to run your code, I get: Unrecognized function or variable 'X'. In its absence, try this: Y=[0.9 0.83 0.700;1.58...

6 years ago | 2

Answered
ODE symbolic result plotting with fplot()
I am not certain what the problem is with the original function. If you simplify it first: phi = vpa(simplify(phi, 'Steps',...

6 years ago | 0

| accepted

Answered
solve 3 order differential equations
Without seeing your ODE solver call, I cannot determine what the problem is. This runs without error for me (in R2020b): ...

6 years ago | 0

Answered
How can I mark wheezes on a plot?
Try something like this: wheezes = sort(randi(100, 10, 1)); % Create Data ws...

6 years ago | 1

Load more