回答済み
How can i do the rolling sum of the elements of a vector?
Hi, if you use R2016a or later try <https://de.mathworks.com/help/matlab/ref/movsum.html *|movsum|*>. For your example see es...

7年以上 前 | 1

| 採用済み

回答済み
symbolic variable not recognized
Hi, look at the second line of _paper_det_ - your code: lambda^4-kL*k*TL since there is not _k_ and not _TL_ defined ...

7年以上 前 | 0

| 採用済み

回答済み
How can I import data from a text file without rounding it off?
Hi, it doesnt: >> A=csvread('EQ6_1.txt'); >> format long >> A A = 0.000992319000000 0.00685...

7年以上 前 | 1

| 採用済み

回答済み
Solving parametric equations, fplot returning error " Input must be a function handle or symbolic function"
Hi, problably you look for this: syms y eq1 = y == cos(t) sol_t = isolate(eq1,t) eq2 = y == 3 + sin(t) eq2 =...

7年以上 前 | 0

回答済み
how can I find the elements in the matrix that meet my conditions and then form the matrix within these conditions?
Hi, here is an example: % Make a random Matrix with 50x3 random integers between 1...100 A = randi(100,50,3); % ...

7年以上 前 | 0

| 採用済み

回答済み
Generate a 2-dimensional array with random numbers
Hi, does this help: n = 100; % number of random numbers A = zeros(n,2); A(:,1)= randi(996,n,1)+4; A(:,2)= randi...

7年以上 前 | 1

| 採用済み

回答済み
plz help me to understand those cod of lines
Hi, [~, candidates_idx] = sort(candidates); gives indices for the sorted elements of the array _candidats_. For example ...

7年以上 前 | 0

| 採用済み

回答済み
How to expand a Matrix ?
Hi, this would work i think: A = [1 2 3; 4 5 6] n = 3 % Number of repeated values --> 60 for your case for k =...

7年以上 前 | 0

回答済み
Plot the curve described by the following equations
t = linspace(-1000,1000,500); x = (1-t.^2)./(1+t.^2); y = 2.*t./(1+t.^2); subplot(2,1,1) plot(t,x,'-r') subplot...

7年以上 前 | 1

| 採用済み

回答済み
using gamultiobj with 24 variables
Hi, the input syntax for <https://de.mathworks.com/help/gads/gamultiobj.html?s_tid=doc_ta *|gamultiobj|*> has no option for p...

7年以上 前 | 0

回答済み
How do I create a row vector with 100 samples of silence using the zeros function? I have tried the following combinations:
Hi, % Defining a row vector of size 1x100 containing all zeros: y=zeros(1,100); % Defining a column vector of siz...

7年以上 前 | 0

| 採用済み

回答済み
How to find numerical solutions of equation using fzero or solve
Hi, examples how to use <https://de.mathworks.com/help/matlab/ref/fzero.html *|fzero|*> or <https://de.mathworks.com/help/opt...

7年以上 前 | 0

回答済み
How do i minimze my fuzzy logic controller using genetic algorithm?
Hi, ga passes only one x with 6 entries to the objective function. Try the attached version. I could not test, since i do not...

7年以上 前 | 0

回答済み
I downloaded the signal processing toolbox, how do I load it into MATLAB?
Hi, see here: <https://de.mathworks.com/matlabcentral/answers/101885-how-do-i-install-additional-toolboxes-into-an-existin...

7年以上 前 | 0

回答済み
comparing consecutively numbers to find the peaks of a function
Hi, have a look at <https://de.mathworks.com/matlabcentral/fileexchange/25500-peakfinder-x0-sel-thresh-extrema-includeendpoin...

7年以上 前 | 0

回答済み
xlsread unable to open file
Hi, path = 'C:\Users\Stephan\Desktop'; filename = 'test.xlsx'; fullpath = [path, '\', filename]; data = xlsread(fu...

7年以上 前 | 3

| 採用済み

回答済み
ERROR Dimensions of arrays being concatenated are not consistent.
X = [2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]; Y = [23,22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10...

7年以上 前 | 0

| 採用済み

回答済み
Why getting some strange fractions? The code is simple and correct,maybe.
Hi, if you calculate symbolic equation, the calculated values (like factors for example) in symbolic equations are represente...

7年以上 前 | 0

回答済み
Compute Mode of values in array greater than 0
Hi, here is a workaround using the properties of <https://de.mathworks.com/help/matlab/ref/nan.html *|NaN|*> : A = [0 0 ...

7年以上 前 | 1

| 採用済み

回答済み
Need help plotting a directional field, along with some specific solutions(on the same graph)
Hi, if you type: whos y1 you will see the reason for the error message. y1 is a sym object and therefore can not be p...

7年以上 前 | 0

回答済み
I would like to understand this statement in matlab: x=y(z) where y and z are both vectors
Hi, x gets the value of y which is found at index z in y. y=5:9 z=3 x=y(z) results in x = 7, since 7 is found a...

7年以上 前 | 0

| 採用済み

回答済み
Problem in conversion the state-space of the system to transfer function
Hi, this appears to run: s=tf('s'); G=(s^3+11*s^2+36*s+26)/(s^4+14.6*s^3+74.96*s^2+156.7*s+99.65); [sys,g] = balre...

7年以上 前 | 0

| 採用済み

回答済み
How to convert the data from three array: x,y,z into mesh format
Hi, if your x-data and y-data is sorted this way you can simply do a transposed <https://de.mathworks.com/help/matlab/ref/res...

7年以上 前 | 1

回答済み
ODE45, differential equation
Hi, if you search a value for k that complies with the boundary conditions, you could use <https://de.mathworks.com/help/matl...

7年以上 前 | 0

| 採用済み

回答済み
Add space between scatterpoint and text label?
Hi, depending on how you want to move the text with respect to your data you can use the * 'HorizontalAlignment' - Propert...

7年以上 前 | 1

| 採用済み

回答済み
Having trouble graphing a non-linear graph
x = -2:0.01:2; y = cos(x)+exp(-1/2*x.^2).*sin(6*x); plot(x,y)

7年以上 前 | 0

| 採用済み

回答済み
how to draw the power series in matlab
%range of n=25 n = 0:25; y = cumsum(1./factorial(n)); % plot results plot(n,y,'r')

7年以上 前 | 0

| 採用済み

回答済み
addition of two arrays element by element creating matrix
Hi, A = 2:6; B = 3:8; [m,n] = meshgrid(1:length(A),1:length(B)); C = A(m) + B(n); Change A and B like needed....

7年以上 前 | 0

回答済み
Plot z = x^2 + y^2 over the interval -4 <= x <= +4, -4 <= y <= +4.
Hi, use: syms x y f(x,y) = x^2 + y^2; fsurf(f, [-4 4 -4 4]) Note that this will work if you have access to th S...

7年以上 前 | 0

回答済み
where is the planetary gear block in simulink/how can i make one?
Hi, you find the gear (and some other types of gears) in the model library: <</matlabcentral/answers/uploaded_files/132403...

7年以上 前 | 0

| 採用済み

さらに読み込む