Réponse apportée
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);...

environ 2 ans il y a | 1

Réponse apportée
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, :)

environ 2 ans il y a | 0

| A accepté

Réponse apportée
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 ...

environ 2 ans il y a | 1

| A accepté

Réponse apportée
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...

environ 2 ans il y a | 0

Réponse apportée
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)...

environ 2 ans il y a | 1

| A accepté

Réponse apportée
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...

environ 2 ans il y a | 0

Réponse apportée
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...

environ 2 ans il y a | 1

Réponse apportée
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...

environ 2 ans il y a | 1

Réponse apportée
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...

environ 2 ans il y a | 1

Réponse apportée
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...

environ 2 ans il y a | 0

Réponse apportée
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, ...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 1

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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 ...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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 =...

plus de 2 ans il y a | 0

Réponse apportée
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*...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 1

Réponse apportée
Save file .txt the same name as loaded file
filename = "XRF3.mat"; load(filename) save(filename)

plus de 2 ans il y a | 0

Réponse apportée
Finding a definite integral
u and k are both functions of x. But I only know the values of u and k at some points of x. you can interpolate missing values ...

plus de 2 ans il y a | 0

Réponse apportée
MATLAB does not print vector file even with renderer specified
how about image format ? print('-image','a1.eps','-depsc')

plus de 2 ans il y a | 0

Réponse apportée
Adding zeros to a column vector to match a larger column vector
x = rand(100,1) % column vector y = rand(108,1) % another column vector of different size zeros(1,length(y)-length(x)) % row ...

plus de 2 ans il y a | 0

Réponse apportée
Numerical Differentiation using Finite Differences
h = 0.01; X = 0:h:2*pi; fx = sin(X); df1 = (sin(X+h) - sin(X))/h; df2 = (sin(X) - sin(X-h))/h; df3 = (sin(X+h) - sin(...

plus de 2 ans il y a | 1

Réponse apportée
why I get the error message like "Attempt to execute SCRIPT bar as a function"?
power_input = [-load -p_c] % this line uses builtin function load

plus de 2 ans il y a | 0

Réponse apportée
Inputting a Matrix into a function
t0 = 0.5235; t1d = 0:60; t1r = deg2rad(t1d);% use this function to convert to radians phi = pi; g = cos(t0)*cos(t1r) + sin(t...

plus de 2 ans il y a | 0

Réponse apportée
Symbolic toolbox differentiation by chain rule without expression defined
syms x(t) y(t) z(x,y) t x = x(t); y = y(t); z = z(x,y) C = diff(z,t)

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
How to count number of terms in a symbolic expression?
syms x y z='x*y+cos(x*y)*x+x*sin(x)+sin(x)*cos(x)-x-y+2' C = strsplit(z,{'+','-'}) length(C) C{3} % 3rd term

plus de 2 ans il y a | 0

Réponse apportée
What command do i need after de hold off fuction to print the labels in my plot?
print('-image','-dpng', 'windclimate_allyears.png') Try using the OpenGL graphics rendering format as above. The version of Mat...

plus de 2 ans il y a | 0

Réponse apportée
How do I optimize graph size?
May be the change in coefficient for cosine function plotted in black color as shown below z = -72:0.2:72; hold on Tb = 543.4...

plus de 2 ans il y a | 1

| A accepté

Charger plus