differentiation for a function
syms x y k = x-y^2 diff(k,y)

ongeveer een maand ago | 0

How to sum the product between a matrix and 2 vectors
M = 10; N = 10; %ndot = zeros(M,N) nj = zeros(M,1) ni = zeros(N,1) %n = zeros(N,M) for i = 2:N for j = 1:M ...

ongeveer een maand ago | 0

Nested if statements not correctly calculating?
if u(i,j)==0 if u(i+1,j)==0 if u(i,j+1)==0 if u(i-1,j)==0 if u(i,j-...

ongeveer een maand ago | 0

| accepted

Question

How can i upload my profile picture in MATLAB account ?
Wheni login to my MATLAB account, i could not upload the profile picture It always shows Unable to upload image, Mathworks sy...

ongeveer een maand ago | 1 answer | 0

### 1

How to find the delta cycles (change in the number of cycles) in two sine signals with nearly identical frequencies?
%ue plot(t,(sig1_with_noise-sig2_with_noise)./(2*pi)) As you said, you can take the difference between two signals and div...

ongeveer een maand ago | 0

Plotting Length vs Height
%if true constants2(i) = (D+(f*lp(i)))/(D*2*g); V3(i) = (constants/constants2(i))^(1/3); hp(i) = ((f*(lp(i)/D)*((V3(i)^...

ongeveer een maand ago | 0

How to change x-axis values?
ax = gca ax.XAxis.Exponent = 0;

ongeveer een maand ago | 0

add two elements from diffrent matrices and store it into new matrix.
QtA(t)=max(0,QtA(tp)+LAMtA(t)-OtA(t)-LtA(t-1));

ongeveer een maand ago | 1

| accepted

how do i plot control polygon?
%true plot3(Gx,Gy,Gz); hold on; plot3(Gx1,Gy1,Gz1) Use plot3 command

ongeveer een maand ago | 0

| accepted

My plot won't show any graph
clear %%Given : T= 5; del_t=3; t=linspace(0,T,del_T); E=5; v=0.3; Sya=25; Sy=15; d=0.4; vis=0; gamma=0; %Assume...

ongeveer een maand ago | 0

| accepted

Writing ~ using fprintf
'\sim y \sim -\sim w Use \sim for tilde

ongeveer een maand ago | 0

Undefined operator '/' for input arguments of type 'cell'.
%rue width = 20; % width = num2cell(width); Comment the num2cell line and try again

ongeveer een maand ago | 1

Update the Legend dataN value in GUI
%rue legend(sprintf('\zeta = %d',zeta)); Use sprintf in legend in pushbutton callback function

ongeveer een maand ago | 1

Index exceeds the number of array elements (11).
%if ht*3.*sin(x(m)+1)*exp(t(n))+u(n,m); Use m as index for x and n for t according to your definition of x and t

ongeveer een maand ago | 0

i want to plot an log function
%true r = 0.01:0.001:1; y = (r.^3).*log(1./r); %element wise plot(r,y);grid on

ongeveer een maand ago | 1

SUBPLOT : UPPER & LOWER PLOT
%true for i = 1: 6 subplot(6,2,i) y = cos(i*x); plot(x,y) title(sprintf('y = cos(%dx)', i)); end

ongeveer een maand ago | 0

| accepted

Can anyone help me write a MATLAB script like the attached figure?
Use _patch, fill , line , rectangle gtext_ functions to create the figure

ongeveer een maand ago | 0

Sum of elements in 2D matrix greater tha 150
for a = 1:254 for b = 1:318 if (R_10M(a,b) > 150) value(a,b) = R_10M(a,b); % use row and column indic...

ongeveer een maand ago | 0

| accepted

How can I get the correct angular position of revolving member
The waveform for angle also seems correct. Why do you think it is incorrect ? You can check it as For half revolution of the j...

ongeveer een maand ago | 0

Issues with ylim?
Can you check whether any of arrays _tmin or TMP_ has NaN in them ?

ongeveer een maand ago | 0

why is there no lines in in my plot
for n=1:length(data) fprintf('%f %f\n',data(n,1),data(n,2)); x(n)=data(n,1); y(n)=data(n,2); plot(x(1:n...

ongeveer een maand ago | 0

How to plot multiple lines groups in 3D graph as in picture ?
Use _plot3_ function https://in.mathworks.com/help/matlab/ref/plot3.html

ongeveer een maand ago | 1

| accepted

2-D plot
%true R = 1:100; Ri = 1.5; Ro = 2; y = (1599-(Ro^2./(1599*R.^2))); plot(R/Ri,y,'linewidth',2);grid on

ongeveer een maand ago | 0

Array indices must be positive integers or logical values.
%true a=exp(-1); o=0.009931621960609; x2=-2.5:0.1:9.5; y2=0.5*exp(-a*(x2-(0.5*o^2*a))).*(1+erf((x2-o^2*a)/sqrt(2)*o));...

ongeveer een maand ago | 1

| accepted

How can I create sine wave with varying amplitude between certain range?
%if amp = 1:2:5; data = amp.*abs(sin(2*pi*F*t)) Use _abs_ to plot only the fixed amplitude range

ongeveer een maand ago | 0

| accepted

problem in matlab for sin and cos
Mqwp= [1,0,0,0;... 0, cos(2*t).^2+(sin(2*t).^2*cos(d)), sin(2*t)*cos(2*t)*(1-cos(d)), -sin(2*t)*sin(d);... 0, sin(2*t)...

ongeveer een maand ago | 0

How do i script to calculate the Sum for the following expression
N = 100; for i = 1:N S(i) = 1/i + 1/((i+2)*(i+3)); end SS = sum(S) There are other ways to do

ongeveer een maand ago | 0

How to make a color scale like this?
%if colormap('gray') shading interp colorbar Use colormap as gray

ongeveer een maand ago | 0