回答済み
Two Quadratics are equal find K1 and K2 cancel out X
A =[1 -1; 0 0]; B = [0; 1]; MC = ctrb(A,B); %Gives controllability matrix det (MC) %Not zero so is controllable syms K1 K2 ...

約3年 前 | 1

| 採用済み

回答済み
How to on/off a variable after 3 seconds interval
led1=0;  aa=3; tic T = toc while T<=90     pause(3);     led1=1;      pause(3);     led1=0;  toc; T = to...

約3年 前 | 1

回答済み
How to extract the correct data with regexp?
Use match option in place of 'tokens' in the line tokens = regexp(DATALow, '\<(R\d{2}[A-Z]?)/.*?(\d{4})[A-Z]*(?:(?:\d{4})[A-Z])...

約3年 前 | 0

回答済み
How can I construct a triangle function, when I tested one using 'integral(fun.-pi,pi)', error occurred.
integral(@triangle,-pi,pi,'ArrayValued',1) % call function using function handle function [a] = triangle(n) a=zeros(size(n)...

約3年 前 | 0

| 採用済み

回答済み
How to pass the signal x(t) in IIR band stop filter? Kindly develop the program for the following...... please.....
fs=5200; t=0:(1/fs):1; x=2*sin(400*pi*t)+3*cos(900*pi*t)-0.5*sin(1400*pi*t)+sin(2400*pi*t); figure % original signal plot(t...

約3年 前 | 0

回答済み
Why doesn't it work ?
s = 1.25; t1 = 0:0.01:pi/2; t2 = pi/2:0.01:pi; t = [t1 t2]; p=[4*sin(2*t1).^2.*exp(-(t1/s).^2)+2 4*sin(2*t2).^2.*exp(-(t2/s...

約3年 前 | 0

回答済み
fluctuations with specified mean velocity and amplitude
plot(t,v+V,'-*') hold on plot(t,V) Do you mean the above ?

約3年 前 | 0

回答済み
Why Can't int Find a Simple Integral?
Tips In contrast to differentiation, symbolic integration is a more complicated task. If int cannot compute an integral of an ...

約3年 前 | 0

回答済み
how to iterate cell array?
for i = 1:51 for itr = 1:100 %number of iteration is the size of my cell array N = all_N1{itr,i}; % switch position of...

約3年 前 | 0

回答済み
What is the answer of [(4 -2 ) /2 , 5 +6 , 7 , 8 ] ? Why does MATLAB output [1 5 6 7 8]?
[5 +6] Is not equivalent to 5+6 When you use concatenate operator [ ]

約3年 前 | 0

| 採用済み

回答済み
How to make piece-wise function accept single variables and vectors
x = 2:1000; y = piecewise(x) function y = piecewise(x) for k = 1:length(x) if (x(k)>0) & (x(k)<=120) % for 0 <...

約3年 前 | 0

| 採用済み

回答済み
Plotting in App designer
You need to add a callback function first to each of the components for graphs in which you want to plot. E.g. %Callback to...

約3年 前 | 0

回答済み
How to plot histogram using given data ?
Check the answer from the below link https://in.mathworks.com/matlabcentral/answers/1670649-bar-plot-with-a-hatched-fill-patter...

約3年 前 | 0

回答済み
How use imread in a loop
image_test{t}=imread([path,'nan_rows' num2str(t)])

約3年 前 | 0

| 採用済み

回答済み
multiplying row vector by a scalar
A = data(3, :).*B

約3年 前 | 0

回答済み
how do I solve symbolic eigenvalue?
I presume you need to compute the inverse of mass matrix , m, for a 4 x 4 stiffness matrix , before finding the Eigen solution....

約3年 前 | 0

回答済み
Adding and Deleting Columns in UITable App Designer
You can modify the function for columnCheckBox Value Changed as below, by using addvars function function Column4CheckBoxVa...

約3年 前 | 0

| 採用済み

回答済み
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...

約3年 前 | 0

回答済み
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...

約3年 前 | 0

回答済み
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...

約3年 前 | 1

| 採用済み

回答済み
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)

約3年 前 | 0

回答済み
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...

約3年 前 | 1

回答済み
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...

約3年 前 | 0

| 採用済み

回答済み
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 =...

約3年 前 | 1

| 採用済み

回答済み
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...

約3年 前 | 0

| 採用済み

回答済み
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

約3年 前 | 0

| 採用済み

回答済み
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...

約3年 前 | 0

回答済み
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

約3年 前 | 0

回答済み
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...

約3年 前 | 0

| 採用済み

回答済み
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...

約3年 前 | 0

| 採用済み

さらに読み込む