답변 있음
Matlab mass pendulum simulation
f1 = m*g; When computing acceleration, This term needs to be positive if I understand it correctly from law of motion.

17일 전 | 0

답변 있음
Plot the Poisson CDF with the Standard Normal Distribution CDF
x3 = -3:0.1:3 Use the same intervals as x1

17일 전 | 0

답변 있음
how to calculate inverse of modulus function
x= inv(a)*mod(1,N); Check with this

17일 전 | 0

답변 있음
data is getting plot on 4 different graphs while I would like to see all the data on one graph!
figure(1) If you use loop index for figure, then it will plot as many figures as number of files

17일 전 | 0

| 수락됨

답변 있음
Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 7-by-1.
y(i,j,:)= net(double(tst')); Since the resulting matrix _tst_ is transposed, you need this

18일 전 | 0

답변 있음
Incrementing a loop for the next set of values
poweredbypv=(zeros(size(8760,24))); for j = 1: length(poweredbypv) for i=1:24 if Egenpv(i) > Eelectrolyzer poweredbypv(j,i...

20일 전 | 0

| 수락됨

답변 있음
Unexpected MATLAB Operator ':'
Step = contents{iRow,Step}; Change this line to above. You are trying to make Step as string inside the _switch case statem...

21일 전 | 0

답변 있음
Plotting a Continuous Spectrum
Try changing the values for T ,time period from 0.2 to 1. You can notice the difference whether it's continuous or appears as di...

23일 전 | 1

| 수락됨

답변 있음
Discrete transfer function show different results in Simulink and in Matlab!
Delete the ZOH (zero order hold) block and run again

26일 전 | 0

답변 있음
The data cannot be plotted because it is incompatible with the size
num=25*[0.4 1]; den=conv([0.16 1],[1 6 25]); G=tf(num,den) step(G)

26일 전 | 0

답변 있음
Lagrange Interpolation related problem (plotting a graph)
x = input('Enter values of x: '); y = input('Enter values of y: '); n = length(x); L = zeros(n,n); for i = 1:n V= 1; ...

26일 전 | 0

답변 있음
Trapezoidal numerical integration without use of function?
a=0; b=1; f=@(x)x.*sin(x); n=100; x=linspace(a,b,n+1); h=(b-a)/n; qt=sum(h*(f(x(1:n))+f(x(2:n+1)))/2) You did not use...

26일 전 | 0

답변 있음
Not enough input Arguments
T = ones(1,3) ;% define as here Td = ones(1,3) ; e = angle_axis(T,Td) % now call You are trying to input a 6 x 6 matri...

26일 전 | 0

답변 있음
Plot two functions with several changing variables
p = 80; m = 10; n = 1:1:10; g = 9.81; N = 11; Lext = linspace(68,80,length(n)); L = 68; k = -(p.*g + m.*g - n.*(m.*g) -...

27일 전 | 0

답변 있음
Convolute ramp signal and step signal
x = 1:1:10 ; p = linspace(0.1,1,length(x)); u = ones(1 , length(x)); r = p.*u; y = conv(r,u,'same'); plot(x,y); Try us...

28일 전 | 1

| 수락됨

답변 있음
struggling with error in code
clear all close all clc Vo = linspace(5,25,41); lambda = 7.5; beta=(0:0.5:8); r=27.46; R = 30.56; B = 3; rho = 1.225...

29일 전 | 0

답변 있음
hello i want to create a table by using the value i obtained from a for loop, how can i get it
x=5 y=30 I = 1 for z=[1 2 4 8] a(I)=x*y*z; xx(I) = x;yy(I) = y; I = I+1; end iwant = table(xx.',yy.',a.','VariableName...

29일 전 | 0

| 수락됨

답변 있음
Replace variable to values
syms s ans = 1/s subs(ans,s,7)

30일 전 | 0

답변 있음
How to solve a system of equations symbolically? (MATLAB R2011a)
syms x1 x2 x3 X1 X2 X3 t S = solve([x1- 3*t*X1+X2==0, x2 - 2*t^2*X2 ==0, x3 - 5*t*X3 == 0], [X1 X2 X3]) S = [S.X1 S.X2 S.X3]...

약 1달 전 | 0

답변 있음
Plotting 2 Semi Circles
th = -pi:pi/50:0;r = 2; xunit = r * cos(pi/2 +th) + 3; yunit = r * sin(pi/2+ th) + 3; plot(xunit,yunit,'-b'); hold on ; li...

약 1달 전 | 0

답변 있음
How to arrange with the graph
clc; clear; K_t=750; K_r=250; b=5; f_z=0.1; theta=0:360 ; for i = 1: length(theta) if (theta(i) >= 60 & theta(i...

약 1달 전 | 0

| 수락됨

답변 있음
Use of sampletime in a constant block simulink
The sampletime is used commonly used in signal processing, controller tuning for establishing a desired data quality measured by...

약 1달 전 | 0

답변 있음
Error using gcm?
ax = axesm('MapProjection','eqdcylin','Frame','on','Grid','on',... 'MapLatLimit',[-90 90],'MapLonLimit',lonlim, 'MeridianL...

약 1달 전 | 0

답변 있음
Changing order when calculating frequencies in a loop
plot(CAM(1:i,:),'linewidth',2) Change this line to above inside the _for loop_

약 1달 전 | 0

답변 있음
Concatenate Columns of Cells
[ii,jj] = find( cellfun('ischar',d)); Replace this line with below in @Andrei code. It should work [ii,jj] = find(cel...

약 1달 전 | 0

답변 있음
I can't find the error in this code. Please help with the dimension. Error in line 42
clc clear all close all %% Initial and Boundary conditions %% g = 9.81; J = 1.2./1000; h = 0.075; lambda = 0.075; u_st...

약 1달 전 | 0

| 수락됨

답변 있음
For loop in for loop
k11=28.21; k21=-4.23; k12=-18.133; k22=2.59; k13=20.815; k23=-2.97; t=0:0.1:3; num_t=length(t); t4=0; t3=-0.3588; t2=...

약 1달 전 | 0

| 수락됨

답변 있음
Hello, i receive this error, i am attempting to plot Td with sample h
h = 0:10; n = 1:11; %h and n matrix sizes must be consistent p1 = 1.1; p2 = 2.1; Td = h.*((1-p1.^n - p2*p1.^n)./(p1*p2.^n...

약 1달 전 | 0

답변 있음
Operator '+' is not supported for operands of type struct
glucose1_5.date = [glucose1_5.date glucose1_5.time]; Try using the above when adding two different formats

약 1달 전 | 0

| 수락됨

답변 있음
how to create cell array using matrix data?
A= [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20]; B = num2cell(A,1).'; cx = [cell(4,1); {1:5}]; cy = [cell(4,1); ...

약 1달 전 | 0

더로드