Réponse apportée
How to reset time to zero at the change of one value
B = 1; % usual input B value if cyc == 0 B = 3; % input a different B value when cyc = 0 y = myFun(B) time = 0...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
VST Code generation issues with element-wise multiplication
gains = [0.5, 0.725]; in = rand(8) out = [in(:,1) * gains(1), in(:,2) * gains(2)] out = in .* gains % check the matrix multi...

plus de 3 ans il y a | 0

Réponse apportée
How to fit a defined function?
To define *a* and then call in function

plus de 3 ans il y a | 1

Réponse apportée
I am modelling a PI controller for DC motor using TIF28027F & DRV8x motor driver. I want to know how can I see the intermediate signal values (marked in red) in MATLAB or CCS?
you can add a scope block to visualize data from the signal outputs in form of graphs. Chech more info below https://in.mathwo...

plus de 3 ans il y a | 0

Réponse apportée
How to add Zero after an integer value?
Use format long

plus de 3 ans il y a | 0

Réponse apportée
Storing array of values from for loop
results(:,run)=[time(run); volmean(run)]; % change plot(results) % after for loop

plus de 3 ans il y a | 0

Réponse apportée
Code gets stuck when generating third set of plots in a for loop
clc clear format long % global Pr ddf = 1; dtheta = -1; span = [0 10]; % Increments da = 1e-4; db = 1e-4; % B...

plus de 3 ans il y a | 0

Réponse apportée
Why am I receiving these errors? (Error using symfun/subsindex, Error in indexing (line 1079))
syms y(t) d1y = diff(y,1) d2y = diff(y,2) eq1 = .588*(6.86-9.8*sin(y(t))) == d2y; [F,S] = odeToVectorField(eq1) ode...

plus de 3 ans il y a | 0

Réponse apportée
Looping with two vectors ?
V = (pi*yq(3002:10001)/3 .* (xq(3002:10001).^2 + xq(3002:10001)*3 + 9); May be you can just vectorize the equation with giv...

plus de 3 ans il y a | 0

Réponse apportée
No Arrows showing in plot When using quiver
[X,Y]=meshgrid(linspace(-2.5,2.5,10)); Ur=1+((Y-X)/2.5)-((X.*Y)/2.5^2); for i=1:size(X,1) for j=1:size(X,1) ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Trying to use user input directly into another switch case.
switch q1:q2:q3

plus de 3 ans il y a | 0

Réponse apportée
Equation and plot of an image
val= - (3475270952860169*x1.^9)/2147483648 + (8404527124189405*x1.^8)/2147483648 - (265994861691087*x1.^7)/67108864 + (466653583...

plus de 3 ans il y a | 0

Réponse apportée
Please this code says Error using plot. Vectors must be the same length. Error in untitled2 (line 8) plot(I,V,'0');
I=[10 20 30 30 40 50 60 70 80 90 100]; V=[1.5 1.9 2.2 2.5 2.77 3 3.25 3.5 3.72 3.95 4]; % this vector has less number of eleme...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Plotting complementary error function with 2 variables
T0 = 100; T1 = 70; c = 1; t = linspace(1,10,20); syms x u = (T0-T1)*erf(x./(2*c*sqrt(t)))+T0; fplot(u,[1 10]) you can t...

plus de 3 ans il y a | 0

Réponse apportée
Somebody help me for my exercise please.
clc clear close all U=200; %velocity gamma=1000; %circulation Q=14; %vo...

plus de 3 ans il y a | 0

Réponse apportée
Tracking code but no plots is observed
plot3(x,y,z,'b')

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Plot specific columns from a .txt file
data=readmatrix('4311_test.txt'); plot(data(12:end,3)*1e4,data(12:end,2)) % multiply with 10000 grid minor xlabel('10^{4}...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Making a proper integral equation
f = x^-1*(sin(x^-1*log(x))) ; %

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Half plotting problem of spectrogram
imwrite(outputImage, destFile,'Quality',"lossless"); It appears that some part of the image data is being lost during write...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
I'm trying to change marker size in a graph
markerSize_types = 12;

plus de 3 ans il y a | 0

Réponse apportée
when i run this programme which is a decomposition lu i get Error using / Arguments must be numeric, char, or logical. Error in untitled2 (line 10) L(:,1) = A(:,1)/U(1,1);
A=input("entrer le scoeficients de votre matrice"); B=input("entrer le vecteur");

plus de 3 ans il y a | 0

Réponse apportée
Printing cell array elements
fprintf(' the root estimates xr=[x1;x2;...;xn] are: \n%f', R) Missing format specifier

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
How do I use a for loop to keep the z dimension in the end?
A_Pad(:,:,iCoil) = upsample(A(:,:,iCoil),2);

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Dimensions of array being concatenated are not consistent
u= [um1.' uo]; % transpose um1

plus de 3 ans il y a | 0

Réponse apportée
Extract rows that their columns have specific values
A = [ 0.1 0 ; 0.5 0 ; 3 0 ; 0 0 ]; for i = 1:size(A,1) if (A(i,:) >= 0) & (A(i,:) <=1) % ...

plus de 3 ans il y a | 0

Réponse apportée
Converting Table to Readable Format for Scatter Plot
T1 = readtable('Data.xlsx'); T1_Data = table2array(T1); % this converts cell to numeric T1_Data = T1_Data'; % T1_Data = cell2...

plus de 3 ans il y a | 0

Réponse apportée
Matlab Legend Issue - I'm always getting legend for data1, but not for data2. Could you kindly let me know what I'm doing wrong? Thank you.
legend([s0(1), s1(1)], {'Data1', 'Data2'})

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Code for graphing bending moment is giving the wrong graph and I don't know why, can anyone help?
Mt=sum(M); May be by doing this change

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Zeros array outputting the last data set from loop instead of all iterations
rECI(:,idx) = R3Om*R1*R3w*r; % multiplying r perifocal vector by rotation matrices vECI(:,idx) = R3Om*R1*R3w*v; % multiplying v...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Plot of an curve and its equation
x = 0 : 0.1 : 0.9; y = [0.584459303 0.496427561 0.351841147 0.269416786 -0.080568348 0.354476019 0.155290021 0.7550904...

plus de 3 ans il y a | 0

| A accepté

Charger plus