回答済み
How to integrate filter function into matlab code
You can create the Butterworth filter directly and use it in your code without needing to store anything: Fs = 2000; % Sampling...

2年弱 前 | 0

| 採用済み

回答済み
Find which side of a line is my point
You can use the sign of the z-term of the cross product of the vectors defining the line and the points of interest: vAB = [3 2...

2年弱 前 | 0

| 採用済み

回答済み
Creating a Decay line graph that repeats with last answer
Perhaps something like this, where the current value of "y" is dependent on its previous value: power = 2.0; decay = 0.16; ...

2年弱 前 | 0

回答済み
How do you vertically concatenate two tables with different variables of different data types
C1 = {"ford" 50 0.002439379}; T1 = cell2table(C1, "VariableNames", ["string1" "double1" "double2"]); C2 = {... "mazda" "Sub...

2年弱 前 | 0

回答済み
A "plot" progression of points following a round course
You can use a (cubic) spline for interpolation. beta=[0 0.2 0.4 0.6 0.8 1 1.2]; randr=[0 84.25 89.97 91.38 91.60 91.32 90.81];...

2年弱 前 | 0

| 採用済み

回答済み
How to find two values in a 3D table?
N-dimensional interpolation should probably work. For more details, see interpn. X = [1 2 3 4 5 6]'; Y = [10 20 30 40 50 60]';...

2年弱 前 | 1

回答済み
Maintain values inside loop
Store the results in a vector of results instead of just keeping a scalar result for the last one. See the "{i}" index below: f...

2年弱 前 | 0

| 採用済み

回答済み
How to call funcitons inside a loop ? To automate my testing
The variable called "obj" in your function is not defined anywhere in your code. You either need to pass it into the function as...

2年弱 前 | 0

| 採用済み

回答済み
Correlation with two matrices
You can compute the pairwise correlation between columns of matrices as follows: % Data matrics with 64 channels (columns) A =...

2年弱 前 | 0

解決済み


Determine the number of odd integers in a vector
Determine the number of unique odd integers in a vector. Examples: Input x = [2 5 8 3 7 1]; Output y = 4; Inp...

2年弱 前

解決済み


Rotate a Matrix by 90 degrees
Rotate a Matrix by 90 degrees Example: If the input is: X = 1 2 3 4 5 6 7 8 9 ...

2年弱 前

解決済み


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

2年弱 前

回答済み
Linear Least Squares Regression
% Original data x = [2, -2, 3, -3]; y = [7, 8, 19, 17]; % Take tranposes. x = x'; y = y'; % Find coefficients of a qu...

2年弱 前 | 1

回答済み
Finding a variable in a large table
% Create a table T = table; T.Name = ["London"; "Paris"]; T.Data1 = {15; 20}; T.Data2 = {-1; 2}; T % Find index of Name ...

2年弱 前 | 0

回答済み
I want to rotate the rotated image in the forward direction. How do I do this?
Select upper point and then lower point using the code below: line([0.1 0.2], [0.1 0.2]) % Should give a 45 degree line [x y] ...

2年弱 前 | 1

回答済み
number of figure windows that are currently open?
f1 = figure; f2 = figure; F = findobj('Type', 'figure') n = numel(F)

2年弱 前 | 3

| 採用済み

回答済み
Why do I receive error "Index in position 2 exceeds array bounds"
Print out what app.hr is. It is likely a string and not a numerical value since you are reading it from the drop down widget. If...

2年弱 前 | 0

| 採用済み

回答済み
error in pca code
You have to use the imread function to read the content of the image into a matrix. See imread. So instead of X = actin2.tif ...

2年弱 前 | 0

| 採用済み

回答済み
Matlab doesn run the program , says at the editor 'input argument might be unused ' for t
You have to save your odefun function into a MATLAB file with the name odefun.m. The message "input argument might be unused ' ...

2年弱 前 | 0

| 採用済み

回答済み
Transformig digital transferfct in analog transferfct
Take a look at the d2c function: D2C. % Discrete transfer function H = tf([1 -1],[1 1 0.3],0.1) % Convert to continuous tra...

2年弱 前 | 0

回答済み
matrix per minute in plot per hour
Something like this? for k = 0:20 x = minutes(15*k + linspace(0,15,96)); y = cumsum(rand(96,1)); p = plot(x,y); ...

2年弱 前 | 0

回答済み
Help with non linear equations.
fsolve actually finds a correct solution: x = fsolve(@(x) fcn(x),[1;1;1]) You can see that the solution satisfies the equation...

2年弱 前 | 1

回答済み
Unable to perform assignment because the left and right sides have a different number of elements.
On this line JxL(j) = C.*A.*real(SxL); you are trying to assign a vector (C.*A.*...) into a scalar element of the variable JxL...

2年弱 前 | 0

| 採用済み

回答済み
How to creat noisy copies of vector?
x = -4:0.1:10; v1 = 0.1; r1 = sqrt(v1).*randn(size(x)); Y1 = x + r1; var(r1) % Should be approximately 0.1 v2 = 1; r2 ...

2年弱 前 | 1

| 採用済み

回答済み
I deleted part of the trapz function code, how do I fix it?
Did Undo not work (Ctrl + Z)? This might help you restore it. What version of MATLAB are you using? function z = trapz(x,y,dim...

2年弱 前 | 1

回答済み
Discrete transfer function implementation on hardware explodes to infinity
Your discrete transfer function has poles (almost) right on the unit circle: sys = tf([0 0.0611], [1 2.05 0]); sysd = c2d(sys,...

2年弱 前 | 0

回答済み
'Matlab says that the problem is at (t), i want to use ode45
As long as you call your function the right way, it should work: ode45(@odefun, [0 10], [1 1 1]) function dxdt = odefun (t...

2年弱 前 | 1

回答済み
High pass filter lower amplitude of the filtered signal
Try instead a filter that is more smooth at the transition region and has less ripple at the left of the high-pass region: fs =...

2年弱 前 | 1

| 採用済み

回答済み
Alternate Text for image in Live Script
You can now add Alt-text to images in the Live Editor using the "Edit Image.." right-click menu on the inserted image. You will ...

2年弱 前 | 0

さらに読み込む