Answered
Why is my function not recognized?
myEquation(2) function myEquation (x) a = 0.4361836; b = 0.1201676; c = 0.937298; r = exp(-0.5*(x^2))/(2*pi) t =...

22 dagar ago | 0

| accepted

Answered
remove data from fig file after plotting
|If you want to do it using figure properties alone, this is one way h = openfig('eps_mu_mu_34.fig') % figure properties ax =...

22 dagar ago | 0

Answered
always process on first image of the image series where exist in a folder while using imwrite inside for loop
image = imread(sprintf('%d.gif',a)); Try using the above format. Is *a.gif* a multimage file from which you try to read individ...

23 dagar ago | 0

| accepted

Answered
Newmark-Beta in dynamic analysis for solving nonlinear stiffness matrix problem
clear all clc % Define parameters n = 3; % Number of degrees of freedom m = eye(n); % Mass matrix (identity matrix for simpl...

26 dagar ago | 0

| accepted

Answered
How to modify the code to compute data on multiple inputs?
theta = [15 30 45]; for i = 1:227 % size(vp,2) for k = 1:length(theta) data{i,k} = fwmod_vpvsrho(vp(:,i),vs(:,...

27 dagar ago | 0

| accepted

Answered
How to control pitch angle?
This link can be helpful for your question <https://in.mathworks.com/help/control/ug/wind-turbine-control-design.html>

27 dagar ago | 0

| accepted

Answered
Tangent Line and Normal Line
f(x) = x^3 - 3*x + 2 instead of f(x) = 3^x - 3*x + 2

28 dagar ago | 2

Answered
Put letters as markers in a legend box
Use combination of LineStyle and Markers if you have lot of data series to represent in plot. Hopefully, legend box will not h...

28 dagar ago | 0

Answered
Minimum value from a vector for x in the range: x= [-4:0.5:4]; Calculate f(x)=x2+1.3x+2.
x = -4:0.5:4; f = @(x) x.^2 + 1.3*x + 2 [F idx] = min(f(x)) xv = x(idx) % value of x at which minimum of f(x) occurs

29 dagar ago | 0

Answered
error: Array indices must be positive integers or logic
y(i) = y(i) + 1; instead of y(II) = y(II) + 1;

29 dagar ago | 0

Answered
index problem while sort
Here is another way to get the indices without overhead of using ismember function Omega=[1.528 -1.528 0.792 -0.792]; [NN,ind]...

30 dagar ago | 2

Answered
How to apply for loop in case of product of function inside double summation?
R = 0:1; a = 1:10; b = -10:10;% define values for i = 1:length(R) for j = 1:length(R) pr_1(i,j) = a(i)*b(j);...

30 dagar ago | 1

Answered
How to find a specific number in a specific column in an excel file and how many times it occurs
D = readtable('test.xlsx'); rowsIndex = D.T == -1100; requiredRows = D(rowsIndex, :)

ungefär en månad ago | 0

| accepted

Answered
Matlab is not giving the correct z transform of - (n*a^n)*u[- n - 1];
syms n z a; y = (n*a^n)*heaviside(n+1) %... heaviside is supposed to be the unit function but apparently it's not working. yz ...

ungefär en månad ago | 1

| accepted

Answered
Turning string into a variable name for a function to use
As the error states, input arguments must be table, you need to either convert the f2load into table using table function or pas...

ungefär en månad ago | 0

Answered
How to display contour levels for some specific levels
Do you mean like this ? Z = peaks; figure [C,h] = contour(Z,8); v = [-1.6727, -0.0448059, 0.0648059, 3.6634] clabel(C,h,v)...

ungefär en månad ago | 1

| accepted

Answered
Why ist the Amplitude of the PSD lower than expected?
Hi @Linus Trauberg From the graph it appears there is a shift in the frequency range returned by pwelch as against to data tha...

ungefär en månad ago | 0

Answered
Function 'contains' did not work
if you use compose function nstead of num2str then contains works correctly, clear s1 = 1:100; s2 = [50 51]; s1str=c...

ungefär en månad ago | 1

Answered
Making the last two plots in a subplot have an x-axis in degrees?
clear ; clc ; x = linspace(-2,2,51) ; y1 = sinh(x).^2 ; y2 = tanh(x).^2 ; subplot(2,2,1) ; plot(x,y1,'s--r','LineWidth',2,'M...

ungefär en månad ago | 1

Answered
How to plot a given vector field A(x y,z)=(-y)x hat + ( x) y hat + (0) z hat in x y plane .I tried this code but getting an error
% Define the vector field A(x, y, z) = (-y)x_hat + (x)y_hat + (0)z_hat syms x y z A = [-y*x, x*y, 0]; xx = linspace(-2, 2, 2...

ungefär en månad ago | 1

Answered
scientific notation convertion of coefficients of a polynomial
syms x f = - 0.042440155 + 0.29476113*x + 0.47380563*x^2 - 0.17632127*x^3 + 0.038426007*x^4 - 0.005090693*x^5 + ... 0.0007...

ungefär en månad ago | 0

Answered
Error in the anonymous function
% Define A as a 1x24 vector AA = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ... 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, ... 21, 22, 23, ...

ungefär en månad ago | 0

| accepted

Answered
Help with the equation
Check whether the density input is correct or not to get a value of 4.5 forTBAL syms T_BAL Rho =1.225; % density ?? % stan...

2 månader ago | 0

Answered
How can I make it so that the value from my slider changes the rotation speed of the ferris wheel in my code?
Delete the return value for sliderCallback function call as shown below and put the while and/or for loop code for the animat...

2 månader ago | 1

Answered
SWITCH expression must be a scalar or a character vector. Error in pathplaninglaila (line 17) switch mode
The mode variable used for the switch expression needs a character data type. you need to convert that variable to char mode as...

3 månader ago | 0

Answered
Give me an example of a calling function.
Put the prog2 code in a function file (which returns the value of n) and call that function in prog1 script file as shown below ...

3 månader ago | 0

Answered
Replace strings with a different string and save the data
D = readtable('data.txt'); C = char(['40% Fe';'30% Al']) % e.g. element data to be filled in 1st column D.(1) = repmat(C,168/2...

3 månader ago | 0

Answered
Operator '>' is not supported for operands of type 'cell'.
T is a table array/datatype, and you try to access variable inside the table with same name , this is not valid operation idx =...

3 månader ago | 0

Answered
how to extract roots of equation
syms w N k1=70; k2=200; m1=0.1; m2=0.064; m3=0.04; r=0.25 M1=(m2+m3)/m1; M2=m2/m1; K=k2/k1; wn1=(sqrt(k1/m1))/(2*...

3 månader ago | 0

Answered
solving beam deflection curve
if you use linspace function, it divides the length between initial and final points into non-equispaced values, however if you...

3 månader ago | 1

Load more