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

más de 3 años hace | 1

| aceptada

Respondida
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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 1

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 1

| aceptada

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

Cargar más