Answered
Why am I getting this error of "Not enough input arguments. Error in conv (line 27) if ~isvector(a) || ~isvector(b) Error in DesignProject3PlugFlow (line 108) Rctsize=interp1(u(:,7),V,conv)" in my code?
Note that <https://www.mathworks.com/help/matlab/ref/conv.html *|conv|*> (link) is a MATLAB function. Name your *|‘conv’|* vect...

8 years ago | 0

Answered
Beginner Matlab Question for Physics Lab Plot
The scales on all axes in the MATLAB plotting functions is linear. See the documentation on the <https://www.mathworks.com/...

8 years ago | 0

Answered
How to remove the scientific notation such as -1.200340354078778e+11 from a matrix?
Use the <https://www.mathworks.com/help/matlab/ref/format.html *|format|*> (link) function. format short q = -1.200340...

8 years ago | 1

| accepted

Answered
How to repeat the same number after certain interval in if statement?
I am not certain that I understand what you want to do. You are apparently using only *|14|* of the *|16|* elements (or rows or...

8 years ago | 0

| accepted

Answered
Code for equation with ln
Try this: u=0.23; y=0.3; v=0.00001; fcn = @(ustar,u,y,nu) 5*log(ustar.*y/nu)- 3.05 - u/ustar; ustar ...

8 years ago | 1

Answered
A the surface x->-10:10, y->-10:10, z=0 to a plot of a curve in 3d (using plot3 in Matlab 2014b)?
Try this: xx=0:9; yy=[-5:0 -1:-1:-4]; zz=[1:5 4:-1:0]; figure plot3(xx,yy,zz,'-o'); hold on patch(...

8 years ago | 1

| accepted

Answered
how to solve the modified gompertz equation
Try this: y=[10 12.5 15 17.5 20 22.5 25 27.5 30 32.5 35 37.5 40 42.5 45 47.5 50]; t=[62.1 77.3 92.5 104 112.9 121.9 12...

8 years ago | 0

| accepted

Answered
Why can't I multiply two arrays using the '*' operator?
Because the dot operator does _element-wise_ multiplication (and division and exponentiation). These are termed _array_ operati...

8 years ago | 2

| accepted

Answered
Convert from XYZ surface plot to just Z surface plot
You did not say what you have tried, and what did not work. Consider: Z = randn(100); figure surf(Z) vie...

8 years ago | 0

| accepted

Answered
XLim for bar plot with several data series
Since *|'XLim'|* is an axes property, do this: figure bar(rand(1,200), 'hist','FaceColor','flat') XL = get(gca, 'XLi...

8 years ago | 1

Answered
Isotherms Plot for a waterbody
I do not know what your data are, so I can only guess. I would use the <https://www.mathworks.com/help/matlab/ref/surf.html...

8 years ago | 0

Answered
X-axis for Fast Fourier Transformation
I am not certain what you are doing, or what you want. I usually create frequency vectors (the *|x|*-axis for a Fourier tra...

8 years ago | 0

Answered
plotted 3 graph, only 2 shown up
Nothing is wrong. Note that if the *|‘x’|* and *|‘y’|* vectors have the same values, *|‘a’|* and *|‘w’|* are the same, so *...

8 years ago | 0

Answered
Color based on values from a matrix.
This seems to color them correctly: M = [randperm(20)', randperm(20)', randi(1000, 20,1)]; figure scatter(M(:,1)...

8 years ago | 2

| accepted

Answered
How do I add values to a vector instead of replacing them?
Use a row and ‘default’ column subscript for *|allIDs|*: allIDs(i,:) = [p(i) ImageIDs(1) ImageIDs(2) ImageIDs(3) ImageIDs(...

8 years ago | 0

| accepted

Answered
Solving Coupled ODE's by ODE45
If I understand correctly what you want, you can simply modify *|‘arbit’|* (and calls to it) directly: arbit2 = @(t,y, gam...

8 years ago | 0

Answered
How to solve an equation and build a vector using a for loop?
Note that zero is not a positive integer. Positive integers are integers greater than zero. Try this: r = 0:0.0025:0...

8 years ago | 0

Answered
Integral vector .* sin(pi*x) error matrix dimensions must agree.
When in doubt, and if you do not intend matrix operations, vectorise every operation to do element-wise operations. Specifying ...

8 years ago | 0

| accepted

Answered
Showing points in 2D map.
Finding the centre and radius is trivial: T0 = [T1; T2; T3; T4]; C = mean(T0); ...

8 years ago | 0

| accepted

Answered
How to plot RMSE vs Epochs graph
As I understand it, ‘RMSE’ is the square-root of the MSE value. I am not certain what you want to do. Here are two options...

8 years ago | 0

Answered
How to Solve Non Linear Electronutrility condition in Space region region in semiconductor? Using vpasolve it is showing [empty syms] error while a theortical solution exist.
There appears to be a minimum, but not a root. *_To illustrate_ —* fcn = @(E0) (sqrt(2)*(Nb+Pb)*e*Ld*sqrt(cosh(ub+(E0...

8 years ago | 2

| accepted

Answered
how to get zero mean normalized input
Much depends on what you intend by ‘normalize’. If you have *|R2018a|* or later, use the <https://www.mathworks.com/help/ma...

8 years ago | 0

Answered
Finding minimal vector of matrix
The <https://www.mathworks.com/help/matlab/ref/sortrows.html *|sortrows|*> (link) function is one option: M = [0.0026 0...

8 years ago | 0

| accepted

Answered
How can I decompose the alpha, beta, gamma & theta bands using matlab for a 14-channel raw EEG data?
One option: <https://www.mathworks.com/matlabcentral/answers/311687-hi-all-i-m-having-trouble-to-get-transfer-function-for-t...

8 years ago | 0

Answered
Help plotting Integral Equation !! ?
Use the <https://www.mathworks.com/help/matlab/ref/integral.html *|integral|*> (link) function. If you are not already fami...

8 years ago | 0

Answered
Plot in matlab 2012 not working in matlab 2016
See the section in the <https://www.mathworks.com/help/matlab/release-notes.html?rntext=&startrelease=R2014b&endrelease=R2014b&c...

8 years ago | 0

Answered
error bar in two plot3 and how to show error of figures?
You only have two curves so statistics (such as the standard deviation) are meaningless, and (to the best of my knowledge), *|er...

8 years ago | 0

| accepted

Answered
Finding and Identifying Roots
The parentheses are not correctly placed. The entire quantity *|‘(-2*b) + sqrt((2*b)^2 - (4*3*a*c)))’|* should be divided b...

8 years ago | 0

| accepted

Answered
How to obtain the period of a function created by ODE45
Try this: function [] = pendulum() tspan=[0 70]; h0=[pi/18, 0]; opts = odeset('Events', @Events); ...

8 years ago | 1

| accepted

Answered
Read special text file
This will read your file: fidi = fopen('Simon REMY B52-2016.txt'); D = textscan(fidi, '%{yyyy-MM-dd HH:mm:ss}D %f', 'He...

8 years ago | 0

| accepted

Load more