Beantwortet
Help with Legend for Plot
clc; % Clear the command window. close all; filename = 'amplitudeT1cleaned.xlsx'; data = readtable(filename); VN =...

mehr als 3 Jahre vor | 0

Beantwortet
i am trying to run my code with different L values, which changes the k values running them through the same function, generating Omega 1,2,3 for each L which I can plot .
keq=(3*E*Im)./(L.^3); You can use element wise division for all values of L

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
how to Insert cell array into a cell?
%INPUT A = {'one''two''three'}; B = {A,'four''five''six'};

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
I’m trying to find the resultant matrix z=R^-1*S but it keeps saying “array indices must be positive integers… how can I solve it?
R= [1 0 0 4 1; 2 -2 0 1 -1; 0 4 1 -3 0; 1 -1 2 2 1; 3 2 5 0 1]; S= [11;-7;3;-17;5]; Z=inv(R).*S

mehr als 3 Jahre vor | 0

Beantwortet
How to store output from for loop to a table
v = 100; g = -10; counter = -1; loops = 19; m = zeros(20,2); while counter <= loops counter = counter + 1; t = co...

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

Beantwortet
How to fit a defined function?
To define *a* and then call in function

mehr als 3 Jahre vor | 1

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

mehr als 3 Jahre vor | 0

Beantwortet
How to add Zero after an integer value?
Use format long

mehr als 3 Jahre vor | 0

Beantwortet
Storing array of values from for loop
results(:,run)=[time(run); volmean(run)]; % change plot(results) % after for loop

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Trying to use user input directly into another switch case.
switch q1:q2:q3

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

Beantwortet
Tracking code but no plots is observed
plot3(x,y,z,'b')

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
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}...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Making a proper integral equation
f = x^-1*(sin(x^-1*log(x))) ; %

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
I'm trying to change marker size in a graph
markerSize_types = 12;

mehr als 3 Jahre vor | 0

Beantwortet
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");

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 1

| akzeptiert

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

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Dimensions of array being concatenated are not consistent
u= [um1.' uo]; % transpose um1

mehr als 3 Jahre vor | 0

Beantwortet
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) % ...

mehr als 3 Jahre vor | 0

Mehr laden