Beantwortet
Recovering shape of periodically sampled signal in near resonance conditions
As understood your question correctly, is that you are trying to get the shape function which is the envelope thata can be compu...

23 Tage vor | 0

Beantwortet
Recovering shape of periodically sampled signal in near resonance conditions
There are several fucntions of MATLAB which can be used in such exercises. They are interp1(), interp2, interpn,pchip, spline, g...

23 Tage vor | 0

Beantwortet
Assign a row vector to a row of an array using logical indexing to omit certain values
As you stated that Q and G are zero matrices generated for memoty allocation if so, and you want to to fill out the values of Q ...

24 Tage vor | 0

Beantwortet
Modeling using 6 differential equation and a constraint?
The problem is with this [ ] assigning step in your code: v = [ ]; What is the purpose of diving a number by an empty variable...

24 Tage vor | 0

Beantwortet
how to use elements from array to sort data
Here is the corrected code: numdata=readmatrix("res Data.xlsx"); Q = numdata(1:5, :)'; F = numdata(6:10, :)';

24 Tage vor | 1

Beantwortet
How to calculate 95% confidence interval using regression analysis?
If there is a linear fit model for x vs. y(x), then fitlm() can be used, e.g.: x = (0:.1:13)'; Noise = 35*randn(size(x)); y =...

27 Tage vor | 0

| akzeptiert

Beantwortet
Solving matrix differential equation
It looks likse sizes F1 and F2 are coherent with R1 and R2. The only question in your given exercise is R1' and R2' are transpo...

27 Tage vor | 0

Beantwortet
Magitude from a three phase signal
Here is how to perform FFT and compute the phase angle values in rad: data = readmatrix('D_Sample.xlsx'); % Sample data im...

29 Tage vor | 0

Beantwortet
Magitude from a three phase signal
Simulink -> Simscape toolbox, there is a block to compute magnitude and angle calculation: Calculate the magnitude and phase of...

30 Tage vor | 0

Beantwortet
Grouping Categories in Scatter Plot
If understood your question correctly, here is one example how to address this issue: DATA = randi(100, 25, 1); BIN = discreti...

30 Tage vor | 0

Beantwortet
What is the difference between "any" and "all" function?
There is one significant difference between any() and all(). Here are definitions: (1) any() - any True if any element of a ...

30 Tage vor | 1

Beantwortet
why Code generations of 1D and 2D lookup are same ?
In case, you are using Simulink, use block 1D or 2D lookup table blocks: https://www.mathworks.com/help/simulink/lookup-table...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
Generation of basic signals
In MATLAB and Simulink, there are few built in functions to generate, such signals as unit step, impulse, unit ramp, sine wave o...

etwa ein Monat vor | 0

Beantwortet
Matlab Transfer function multiple single s terms
Here it is: C1 = 0.000000000150; C2 = 0.000000000470; R1 = 10000; R2 = 180000; R3 = 2700; R4 = 56000; G = (R3+R4)/R3; ...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
How to generate model output given a transfer function and input signal
use tfestimate() - here is documentation how to use it: https://www.mathworks.com/help/ident/ref/tfest.html#btkf8hm-2

etwa ein Monat vor | 0

Beantwortet
help with Plot a Parametric Equation
Here is a simple example code to get it done: N = 1e4; p = linspace(0,1); Na = linspace(1, 1e4); Nb = linspace(1, 6e3); Nc ...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
How to find x,y coordinates.
(1) Using the data to be plotted y = @(t)2*t.^2+3*t-5; t = 0:2:8; f = y(t); tnew = 0:.2:8; y = interp1(t, f, tnew); figure...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
change color of bar plot
Here is one example how to get such bar chart: y = [12 22 23; 21 25 26; 24 18 19; 22 17 15]; bar(y,'stacked') legend({'Set # ...

etwa ein Monat vor | 1

Beantwortet
timer doesn't work
Here is how it can be attained: Tspan = 240; % Time span 240 seconds t = timer('TimerFcn', 'stat=false; disp(''Timer!'')', 'S...

etwa ein Monat vor | 0

Beantwortet
How to get .m file definition programmatically?
It is possible differentiate .m and .mlx files by referring to their file extensions or simlarly, Simulink's .mdl and .slx or sl...

etwa ein Monat vor | 0

Beantwortet
timer doesn't work
Here it shows that it is working. An alternative way is to use [tic .. toc] to count time if this is the objective: Tspan = 10;...

etwa ein Monat vor | 0

Beantwortet
Removing numerical data from txt file
Here is the solution to keep the time of data collected in the external file: unzip('https://www.mathworks.com/matlabcentral/an...

etwa ein Monat vor | 0

Beantwortet
MATLAB is not deleting requested values.
Here is one example that shows it works: D = readmatrix('Data2.xlsx', 'Sheet', 1) % All imported D(1:2,:)=[] ...

etwa ein Monat vor | 0

| akzeptiert

Beantwortet
How I can find intersection point of direction vector and one of the given plane of 3d cube
Have reviewed this solution: https://www.mathworks.com/matlabcentral/answers/93623-how-do-i-plot-the-line-of-intersection-betwee...

etwa ein Monat vor | 0

Beantwortet
Not able to run
Here is the corrected code (Note that the Initial Conditions were missing and some arbitrary values are taken. Therefore they ne...

etwa ein Monat vor | 0

Beantwortet
how to simulate air conditioning compressor using simulink ?
Here are a few points how to start on this exercise. (1) MATLAB/Simulink has a nice builtin simulation model example: https:/...

etwa ein Monat vor | 0

Beantwortet
plotting data from multiple sheets by ID and day
Here is the complete solution code: FName = 'RLC_AD.xlsx'; for jj=1:numel(sheetnames(FName)) RLCAD = readmatrix(FName, 'Sheet...

etwa ein Monat vor | 0

Beantwortet
Removing numerical data from txt file
Here is the solution: unzip('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1300600/CONTROLDS2247_SGI_PPCS_Bat...

etwa ein Monat vor | 0

Beantwortet
why is my plot blank?
It looks like that the whole imported data is not taken for x and y to plot them. See - e.g.: D = readtable('DATA_A.csv'); x =...

etwa ein Monat vor | 0

Beantwortet
How introduce column vector in M-file?
Here is the corrected code: D = 15; tmpI = eye(D); ket = sum(tmpI(:,2:D),2); syms n ct = 6; creation = circshift(diag(sqrt...

etwa ein Monat vor | 0

| akzeptiert

Mehr laden