Answered
Index exceeds the number of array elements. Index must not exceed 1.
z(i+1)=z(i)+(1/6*(k1_hiz(i)+2*k2_hiz(i)+2*k3_hiz(i)+k4_hiz(i))); v(i+1)=v(i)+(1/6*(k1_ivme(i)+2*k2_ivme(i)+2*k3_ivm...

10 dagar ago | 1

Answered
Couette flow between two plate
dpdx= -2:0.1:2; miu = 1; y = linspace(0,1,length(dpdx)) vv = 0.25*miu*dpdx.*y.^2 v = 0.5*miu*dpdx.*y plot(y,v,y,vv) lege...

12 dagar ago | 1

Answered
Control systems failing to plot
Check if you have defined _bode_ as variable in your program.

13 dagar ago | 0

Answered
Need a help to design a block.
If there is no standard block for flow rate in (Smmulink or Simscape)library, then you can define 2 variables as signals. One fo...

13 dagar ago | 0

| accepted

Answered
Matlab code - can anyone guide me how to sort this kind of error, I am new to MATLAB and trying to create an interface for a audio listening experiment
function varargout = TEST(varargin) % TEST MATLAB code for TEST.fig % TEST, by itself, creates a new TEST or raises the e...

13 dagar ago | 0

| accepted

Answered
How to plot subset of X-axis names on bar plot?
plotNamesD = plotNames(1:kId);% use the for loop index plotDataD = plotData(1:kId); bar(plotNamesD,plotDataD); hold ...

15 dagar ago | 0

| accepted

Question


Does MATLAB mobile version have different features ?
Have anyone tried MATLAB mobile for android OS ? Does it have any different features from regular matlab software ?

16 dagar ago | 0 answers | 0

0

answers

Answered
Refresh plot using switch case with dropdown menu in App designer
plot(x,y) ax = gca % get the axes handle of current plot delete(ax);% delete the axes handle Hope this works

17 dagar ago | 0

Answered
Remove a part of data and replace it with data to fit trend
<https://in.mathworks.com/help/curvefit/smooth.html> Check this link

17 dagar ago | 0

Answered
reading and interpreting statistical chart
<https://in.mathworks.com/help/matlab/ref/pie.html> Check this link

17 dagar ago | 0

| accepted

Answered
Plotting a Piecewise Function
syms x z(x) y=piecewise(x<0,0, x>0,1); z(x)=(1+(x-1).*exp(-x)).*y; fplot(z,[-3 3]) Best wishes

18 dagar ago | 0

| accepted

Answered
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.

19 dagar ago | 0

Answered
Plot the Poisson CDF with the Standard Normal Distribution CDF
x3 = -3:0.1:3 Use the same intervals as x1

19 dagar ago | 0

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

20 dagar ago | 0

Answered
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

20 dagar ago | 0

| accepted

Answered
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

21 dagar ago | 0

Answered
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...

23 dagar ago | 0

| accepted

Answered
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...

23 dagar ago | 0

Answered
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...

25 dagar ago | 1

| accepted

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

28 dagar ago | 0

Answered
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)

28 dagar ago | 0

Answered
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; ...

29 dagar ago | 0

Answered
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...

29 dagar ago | 0

Answered
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...

29 dagar ago | 0

Answered
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) -...

30 dagar ago | 0

Answered
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...

ungefär en månad ago | 1

| accepted

Answered
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...

ungefär en månad ago | 0

Answered
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...

ungefär en månad ago | 0

| accepted

Answered
Replace variable to values
syms s ans = 1/s subs(ans,s,7)

ungefär en månad ago | 0

Answered
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]...

ungefär en månad ago | 0

Load more