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

4 years ago | 1

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

| accepted

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

| accepted

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

| accepted

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

4 years ago | 0

| accepted

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

4 years ago | 0

| accepted

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

4 years ago | 0

| accepted

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

4 years ago | 0

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

4 years ago | 1

| accepted

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

4 years ago | 0

| accepted

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

Answered
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

4 years ago | 0

| accepted

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

4 years ago | 1

| accepted

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

4 years ago | 0

| accepted

Answered
How to replace the zero with NaN in the specific column of cell arrays?
S = load(websave('I','https://in.mathworks.com/matlabcentral/answers/uploaded_files/1182108/I.mat')) K = cell2mat(S.I(:,1)); i...

4 years ago | 1

| accepted

Answered
How to convert column to a cell's arrays?
D = load('CF.mat') D.CF for k = 1:height(D.CF) I{k,:} = D.CF(k,:); end I

4 years ago | 1

| accepted

Load more