Answered

Laplace Transform of unit step

syms t iwant = piecewise(0<t<2*pi,sin(t),0); L = laplace(heaviside(iwant)); fplot(L,[-2*pi 2*pi]) Try like this , and also ...

Laplace Transform of unit step

syms t iwant = piecewise(0<t<2*pi,sin(t),0); L = laplace(heaviside(iwant)); fplot(L,[-2*pi 2*pi]) Try like this , and also ...

10 dagar ago | 0

Answered

Convert higher order to first order system

clear y = @(t) sin(t) y(2) % y^(4) = 2*y'-y"+2*y^(3) t0 = 0.1; n = 100; h = 1e-2; a = [sin(t0) cos(t0) -sin(t0) -cos(t0)]';...

Convert higher order to first order system

clear y = @(t) sin(t) y(2) % y^(4) = 2*y'-y"+2*y^(3) t0 = 0.1; n = 100; h = 1e-2; a = [sin(t0) cos(t0) -sin(t0) -cos(t0)]';...

11 dagar ago | 0

Answered

Index exceeds number of array elements (1) Heuns method

% step size % h = 0.1; % number of steps % N = 10; x = zeros(1,N); y = zeros(1,N); yt = zeros(1,N); x(1) = 0.1; y(1) =...

Index exceeds number of array elements (1) Heuns method

% step size % h = 0.1; % number of steps % N = 10; x = zeros(1,N); y = zeros(1,N); yt = zeros(1,N); x(1) = 0.1; y(1) =...

11 dagar ago | 0

Answered

column-wise input for string and double data using fprintf

fprintf('%s\n %.3f\n %.3f\n %.3f\n %.3f\n %.3f\n %.3f\n', data_string.', data_numeric.') Add a newline after each format specif...

column-wise input for string and double data using fprintf

fprintf('%s\n %.3f\n %.3f\n %.3f\n %.3f\n %.3f\n %.3f\n', data_string.', data_numeric.') Add a newline after each format specif...

11 dagar ago | 1

| accepted

Answered

Colors not showing in legend

legend('Zone1','Zone2','Zone3','Zone4','Zone5','Zone6'); Use a different variable name for legends. It seems you also use i...

Colors not showing in legend

legend('Zone1','Zone2','Zone3','Zone4','Zone5','Zone6'); Use a different variable name for legends. It seems you also use i...

11 dagar ago | 0

| accepted

Answered

How can I get a figure from an equation ?

N = 0:10:400; M = 350*(1-(N/4010).^2) plot(N,M) Try regular plot function and check

How can I get a figure from an equation ?

N = 0:10:400; M = 350*(1-(N/4010).^2) plot(N,M) Try regular plot function and check

12 dagar ago | 0

| accepted

Answered

arrays have incompatible sizes for this operation help me PLZ

clear;close all;clc counter=1; min_nl=-10; step_nl=1; max_nl=0; noise_levelsdB=min_nl:step_nl:max_nl; for k=min_nl:step_...

arrays have incompatible sizes for this operation help me PLZ

clear;close all;clc counter=1; min_nl=-10; step_nl=1; max_nl=0; noise_levelsdB=min_nl:step_nl:max_nl; for k=min_nl:step_...

13 dagar ago | 0

Answered

Hello, I'm trying to plot the I-V curve for a MOSFET, but I get a "Vectors must be the same length" error message. I don't understand why this is the case.

clear all; close all; clc; x1 = 0:0.01:6; y1 = (0).*x1-(1/2).*x1.^2; x2 = 0:0.01:6; y2 = (1/2)*x2.^2; x3 = 0:0.01:6; y3 = ...

Hello, I'm trying to plot the I-V curve for a MOSFET, but I get a "Vectors must be the same length" error message. I don't understand why this is the case.

clear all; close all; clc; x1 = 0:0.01:6; y1 = (0).*x1-(1/2).*x1.^2; x2 = 0:0.01:6; y2 = (1/2)*x2.^2; x3 = 0:0.01:6; y3 = ...

14 dagar ago | 0

Answered

Fourier Series for thin airfoil theory

trapzDataFore = DF(1,:)*cos(n*theta*pi/180) % change to radian trapzDataAft = DF(1,:)*cos(n*theta*pi/180) % change to radian...

Fourier Series for thin airfoil theory

trapzDataFore = DF(1,:)*cos(n*theta*pi/180) % change to radian trapzDataAft = DF(1,:)*cos(n*theta*pi/180) % change to radian...

14 dagar ago | 0

Answered

find the x value

syms x y = piecewise(x>=8,10*sqrt(x)+20,0<=x<=8,5*x + 20,x<0,10) fplot(y,'linewidth',2); axis([-5 5 0 50]) Try using piecewis...

find the x value

syms x y = piecewise(x>=8,10*sqrt(x)+20,0<=x<=8,5*x + 20,x<0,10) fplot(y,'linewidth',2); axis([-5 5 0 50]) Try using piecewis...

15 dagar ago | 0

Answered

"readmatirx" does not read the expected data?

T2 = readmatrix("T2.csv",'Sheetname',"Range","B1:AY1") % empty ??? T2 = readmatrix("T2.csv",'Sheetname',"Range","A1:E1") % all ...

"readmatirx" does not read the expected data?

T2 = readmatrix("T2.csv",'Sheetname',"Range","B1:AY1") % empty ??? T2 = readmatrix("T2.csv",'Sheetname',"Range","A1:E1") % all ...

15 dagar ago | 0

Answered

I'm trying to figure out why after i run this code I'm not getting any messages and no plots are popping up

clear all num_fft=1024; dt=1; f= [ 0 0 0 0 1 0 0.5 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0] h=[ 2.76077e-006 0.000746586 0.0407636...

I'm trying to figure out why after i run this code I'm not getting any messages and no plots are popping up

clear all num_fft=1024; dt=1; f= [ 0 0 0 0 1 0 0.5 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0] h=[ 2.76077e-006 0.000746586 0.0407636...

16 dagar ago | 0

Answered

Solution of symbolic fourth order polynomial equation

A = 2; B = 1.4; C = 3 syms L eqn = L^4 + A*L^2 - B*L + C == 0 sol = double(vpasolve(eqn,2)) Try using vpasolve

Solution of symbolic fourth order polynomial equation

A = 2; B = 1.4; C = 3 syms L eqn = L^4 + A*L^2 - B*L + C == 0 sol = double(vpasolve(eqn,2)) Try using vpasolve

17 dagar ago | 0

Answered

3D interpolation using interp1

z1 = rand(1,100); m = 10; n = 15; u = rand(10,15,100); z2 = linspace(0.2,1,200); for i = 1:m for j = 1:n fo...

3D interpolation using interp1

z1 = rand(1,100); m = 10; n = 15; u = rand(10,15,100); z2 = linspace(0.2,1,200); for i = 1:m for j = 1:n fo...

18 dagar ago | 0

Answered

Error in execution?

clear clc x=[0 2 4 6 8]; y=[0 2 4 6 8]; T=[100 90 80 70 60; 85 64.49 53.50 48.15 50; 70 48.90 38.43 35.03 40; 55 38.78 30...

Error in execution?

clear clc x=[0 2 4 6 8]; y=[0 2 4 6 8]; T=[100 90 80 70 60; 85 64.49 53.50 48.15 50; 70 48.90 38.43 35.03 40; 55 38.78 30...

18 dagar ago | 0

Answered

How to plot a convergence graph for a double sum?

T=0; %terms used in series M=15; N=15; q_m=zeros(M,1); qq_m=zeros(M,1); x=2.5; y=3.5; for n=1:N for m=1:M T=T+...

How to plot a convergence graph for a double sum?

T=0; %terms used in series M=15; N=15; q_m=zeros(M,1); qq_m=zeros(M,1); x=2.5; y=3.5; for n=1:N for m=1:M T=T+...

20 dagar ago | 1

Answered

Divide transfer function get "Model I/O dimensions must agree." Please help

clc; clear; num1 = {1, 1, 1, 1, 1, 1, 1}; num2 = {-4, -4, -4, -4, -4, -4, -4}; den1 = {[10 1], [10 1], [10 1], [10 1], [10 1...

Divide transfer function get "Model I/O dimensions must agree." Please help

clc; clear; num1 = {1, 1, 1, 1, 1, 1, 1}; num2 = {-4, -4, -4, -4, -4, -4, -4}; den1 = {[10 1], [10 1], [10 1], [10 1], [10 1...

20 dagar ago | 0

| accepted

Answered

How I can fix this problem

clear all clear all clc i = 1;LL = 8:2:20; for N=8:2:20 tn = 7; M = 7; L = 5; attSR = -40; attPU = -60; % dB Nt = N; ...

How I can fix this problem

clear all clear all clc i = 1;LL = 8:2:20; for N=8:2:20 tn = 7; M = 7; L = 5; attSR = -40; attPU = -60; % dB Nt = N; ...

22 dagar ago | 1

Answered

How to solve a single nonlinear equation with parameter variations?

taue=0.95; L=5; kk=pi/(2*L); % change this to different variable hac=1.46; gamma=0.95; A0=0.01; %Initial guess w=0:...

How to solve a single nonlinear equation with parameter variations?

taue=0.95; L=5; kk=pi/(2*L); % change this to different variable hac=1.46; gamma=0.95; A0=0.01; %Initial guess w=0:...

23 dagar ago | 0

Answered

how to fix the array?

% x is the 1*476 array and t is also a 1*476 array meaning time f_up = 100; x= rand(1,476); t = x; f = (-f_up:0.1:f_up); w...

how to fix the array?

% x is the 1*476 array and t is also a 1*476 array meaning time f_up = 100; x= rand(1,476); t = x; f = (-f_up:0.1:f_up); w...

23 dagar ago | 1

| accepted

Answered

How to find volume of a curve [f(x)] which is rotated along y-axis?

%Volume along x-axis clc clear all syms x y fx = 3*cos(0.4*x+pi)%;x^(1/2);% 0<=x<=4 xmin = -5;%input('Enter minimum value...

How to find volume of a curve [f(x)] which is rotated along y-axis?

%Volume along x-axis clc clear all syms x y fx = 3*cos(0.4*x+pi)%;x^(1/2);% 0<=x<=4 xmin = -5;%input('Enter minimum value...

23 dagar ago | 0

Answered

why solve function does not return answer?

syms b eq1 = 1/tan(b)== 4;% example sol=solve(eq1,b) Solves uses an equation.

why solve function does not return answer?

syms b eq1 = 1/tan(b)== 4;% example sol=solve(eq1,b) Solves uses an equation.

24 dagar ago | 0

Answered

how save the calculated values from the loop one after the other in a vector ?

Vektor_c_Ab(i) = c_Ab; Vektor_t(i) = t; Vektor_F(i) = F; Use the loop iterator index variable

how save the calculated values from the loop one after the other in a vector ?

Vektor_c_Ab(i) = c_Ab; Vektor_t(i) = t; Vektor_F(i) = F; Use the loop iterator index variable

26 dagar ago | 1

| accepted

Answered

how can i plot this piceise function?

syms x y = piecewise(x< 6.7,1299*x,x>=6.7 & x< 12, 83*x,x>= 12,-1200*x); plot(subs(y,x,[0:25]))

how can i plot this piceise function?

syms x y = piecewise(x< 6.7,1299*x,x>=6.7 & x< 12, 83*x,x>= 12,-1200*x); plot(subs(y,x,[0:25]))

ungefär en månad ago | 0

Answered

Adding Linestyle to ezplot in Matlab

syms x f = inline('x.^2*exp(-x)', 'x'); d = inline('x.^3', 'x'); ezplot(f, [0 10]); hold on L = ezplot(d, [0 10]); L.LineSt...

Adding Linestyle to ezplot in Matlab

syms x f = inline('x.^2*exp(-x)', 'x'); d = inline('x.^3', 'x'); ezplot(f, [0 10]); hold on L = ezplot(d, [0 10]); L.LineSt...

ungefär en månad ago | 0

Answered

Starting and ending multiple plots at the same point on the same figure

Use axis after the plot axis([0 12000 0 0.8])

Starting and ending multiple plots at the same point on the same figure

Use axis after the plot axis([0 12000 0 0.8])

ungefär en månad ago | 0

Answered

Contour Graph/Plot displays edgy function

x = -10:.1:10; y = -10:.1:10; [X,Y] = meshgrid(x,y); mu = 0.1; phi = mu*(X./(X.^2+Y.^2)); [U,V] = gradient(phi,0.1,0.1); f...

Contour Graph/Plot displays edgy function

x = -10:.1:10; y = -10:.1:10; [X,Y] = meshgrid(x,y); mu = 0.1; phi = mu*(X./(X.^2+Y.^2)); [U,V] = gradient(phi,0.1,0.1); f...

ungefär en månad ago | 2

Answered

Error using + Matrix dimensions must agree. I want to find the value of Mt. Kindly help me clear the error.

a=1.5; % make good guess s=0.01; N=5; wd=0.002906; d=5; u=2; % guess i = 1; a1=a-((N-1)*(wd+s)):(wd+s):a; b1=a-((N-1)...

Error using + Matrix dimensions must agree. I want to find the value of Mt. Kindly help me clear the error.

a=1.5; % make good guess s=0.01; N=5; wd=0.002906; d=5; u=2; % guess i = 1; a1=a-((N-1)*(wd+s)):(wd+s):a; b1=a-((N-1)...

ungefär en månad ago | 0

Answered

How can I display only the fprintf without the error shown and using "function"

disp(iqcategory(112.5)) function [category] = iqcategory(score) %by Manav Divekar, 2021-10-28 %if the given score is greate...

How can I display only the fprintf without the error shown and using "function"

disp(iqcategory(112.5)) function [category] = iqcategory(score) %by Manav Divekar, 2021-10-28 %if the given score is greate...

ungefär en månad ago | 0

Answered

viscircles and imfindcircles problem

A = imread('coins.png'); imshow(A); % you forgot this line in your code [centers, radii, metric] = imfindcircles(A,[15 30]); ...

viscircles and imfindcircles problem

A = imread('coins.png'); imshow(A); % you forgot this line in your code [centers, radii, metric] = imfindcircles(A,[15 30]); ...

ungefär en månad ago | 0