Respondida
I have issues calculating the pitching moment (delta_e) and a specific formula
clc; clear; close all; % Defining variables V = 202; % Velocity (m/s) R = 1000; % Radius of curvature (m) g = 9.8; % Gra...

más de 3 años hace | 0

Respondida
How to remove extra labels from polarplot?
ax = gca ax.RTick = [] ax.RTickLabelRotation = 90; After plotting call the axes and set the RTick property to [] and RTi...

más de 3 años hace | 0

Respondida
Figure legend mismatch when using gobjects
Check the answer given by @Steven Lord in the below link https://in.mathworks.com/matlabcentral/answers/244707-how-to-change-o...

más de 3 años hace | 1

| aceptada

Respondida
Need help with this code. Not sure what I am doing wrong.
fprintf('hoop stress for inner radius cylinder, r = b: %0.2f\n', sigma_theta_theta1)

más de 3 años hace | 0

Respondida
how do I write 2^-x in MatLab?
x=1:10; % if you have x as vector of values 2.^(-x) % then use .^ element wise power % 2nd option is straightforward x = 2...

más de 3 años hace | 1

Respondida
maximum power pointTracking in wind turbine
refer the links present in this answer https://in.mathworks.com/matlabcentral/answers/477556-how-to-apply-mppt-algorithm-for-wi...

más de 3 años hace | 0

| aceptada

Respondida
I have issues calculating lift coefficient (CL), drag coefficient (CD), and thrust (T)
clc; clear; close all; % syms CL CD T CDzero K gamma V R g m rho S V = 202; R = 1000; g = 9.8; rho = 1.058; S = 24; m =...

más de 3 años hace | 1

| aceptada

Respondida
Multiply Individual Cells of a Matrix by a Scalar Using a For Loop
p1 = rand(100,1);% pressure matrix for k = 1: length(p1) P1(k) = p1(k)*100; end In this case, The previous solutions a...

más de 3 años hace | 0

| aceptada

Respondida
How to remove white space from beginning of a plot and adjust x-axis to start from 'January'?
xticks(1:7) xticklabels({'Jan', 'Feb','Mar','Apr','Oct','Nov','Dec'}) You can try the above

más de 3 años hace | 0

| aceptada

Respondida
plot multi time series close in value
subplot(211) hE = plot(sdate(begn(k):endn(k)),drates(begn(k):endn(k),1)*100) %,'LineStyle', 'none'); subplot(212) hO = plot(s...

más de 3 años hace | 0

Respondida
How to reposition logos and buttons in app designer after changing screen size.
Set the scalemethod to fit option for the Image component in app designer

más de 3 años hace | 0

Respondida
How do I turn back on the clear workspace warning?
May be you need to check the following to enable the confirmation dialog box preferences in *Matlab>General>Confirmation Dialogs...

más de 3 años hace | 0

| aceptada

Respondida
Need to create a contour plot from to equations when given x and y ranges.
q = 100; h = 2; p = 1; x = linspace(0, 10, 20); y = linspace(-10, 10, 20); [X Y] = meshgrid(x,y); psi = (q/2*pi) * atan((Y...

más de 3 años hace | 0

| aceptada

Respondida
Taylor series plotting with an exp function
syms x t=linspace(-pi,pi,100); % define 100 points fx=exp(t.^2/2)+exp(t).*cos(t); % define function plot(t,fx,'linewidt...

más de 3 años hace | 0

Respondida
im trying to Find ∂z∂u when u=0, v=3, if z=sin(xy)+xsin(y), x=2u2+v2, and y=3uv.
subs(Q,{u,v},{0,3})

más de 3 años hace | 0

Respondida
Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 0-by-0.
for i=1:64 %read 64 lines of data %A(i,1) = fscanf(Arduino,'%f') %A(i,1) = fscanf(Arduino,'%f'); A(i,1) =...

más de 3 años hace | 0

Respondida
How can I put variable equal to zero in loop
% using loop w= 10; %input('k='); for k=1:w m=sym('U1',[1 k]) == 0; end m you can also do so without using loop % without...

más de 3 años hace | 0

Respondida
Use variable as placeholder in a path
path1 = '/Users/reubenaddison/Documents/Data/PO1/'; data = dlmread(fullfile(path1, num2str(cell2mat(filenames(trialnumber)))),'...

más de 3 años hace | 0

| aceptada

Respondida
Imaginary parts of complex X and/or Y arguments ignored. getting this warning line 22 and line 24
%Code for position analysis and animation I = 1; %link lengths l1=10; l2=5; l4=28; l5=10; a=20; for th2=0:0.1:4*pi ...

más de 3 años hace | 0

Respondida
Indexing in symsum-Funktion
syms n r phi % declare r and phi as symbolic also anz = 5; A = sym('A',[anz 1]) q = symsum(A.*r^n*cos(n*phi), n, 2, anz) %...

más de 3 años hace | 0

Respondida
How to idealize a moment curvature plot as a bilinear curve?
trapeziumarea(Xi,1) = 0.5*(v(Xi)+(Lastpoint(:,2)-Lastpoint(:,1)))*(v(Xi)/K); Trapezium area may be different as above ...

más de 3 años hace | 0

Respondida
How to update a plot while a simulation is running?
if fusedospa(i) > 25 % create plot hold on end Use *hold on*

más de 3 años hace | 0

Respondida
Why does this code fail?
fid = fopen('for1234.dat','w+'); fclose(fid) Since you are writing the data repeatedly to the same file, place the above f...

más de 3 años hace | 0

Respondida
plot using matlab(parabolic)
x = linspace(0.1,5,100); % may be parabolic y = 0.453 .* exp(-1.036 .* x) .* sinh((2.29.* x).^0.5); plot(x,y); Parabolic p...

más de 3 años hace | 0

Respondida
How to prepare extract monthly Data from a group of data?
A = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1272440/AO_1950_2022.xlsx'); A.Properties.Variable...

más de 3 años hace | 0

| aceptada

Respondida
'Index in position 1 is invalid. Array indices must be positive integers or logical values.', error in line 14 i.e., t1=D(ax(i),ay(i)).
clc clear all syms x y f=x*y^2;%input('enter the function:') p=diff(f,x); q=diff(f,y); [ax,ay]=solve([p,q],[x y]); ax=do...

más de 3 años hace | 0

Respondida
add constant value to row
A=readmatrix('DATA.xlsx'); % assuming DATA your filename A(:,end+1)=600; writematrix(A,'DATA.xlsx','Delimiter','tab') % writ...

más de 3 años hace | 0

Respondida
How to interpolate a set of data wher the X size is different for the Y size
Y=[1:14].';% 1 x 14 X=[1:2:5].'; % 1 x 3 Z=rand(14,3); % 14 x 3 [xq,yq]=meshgrid(1:0.0005:5,1:0.0005:14); % ...

más de 3 años hace | 0

Respondida
i want to plot the graph for while loop but the graph was blank
t(d)= t+h; %update T0 T0(d)= newT0;

más de 3 años hace | 0

Respondida
How to create a vector that repeats 5 values per increment in a for loop?
x = zeros(1,5); for ii=100:50:1000 x = [x ones(1,5)*ii]; end x(x==0) = []

más de 3 años hace | 0

| aceptada

Cargar más