Respondida
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...

casi 8 años hace | 1

| aceptada

Respondida
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 ...

casi 8 años hace | 0

| aceptada

Respondida
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...

casi 8 años hace | 1

| aceptada

Respondida
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 =...

casi 8 años hace | 0

Respondida
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); % ...

casi 8 años hace | 0

| aceptada

Respondida
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...

casi 8 años hace | 1

| aceptada

Respondida
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 ...

casi 8 años hace | 0

| aceptada

Respondida
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 =...

casi 8 años hace | 0

Respondida
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...

casi 8 años hace | 1

| aceptada

Respondida
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...

casi 8 años hace | 0

Respondida
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...

casi 8 años hace | 0

| aceptada

Respondida
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...

casi 8 años hace | 0

Respondida
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...

casi 8 años hace | 0

Respondida
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...

casi 8 años hace | 0

Respondida
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...

casi 8 años hace | 0

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

casi 8 años hace | 3

| aceptada

Respondida
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...

casi 8 años hace | 0

| aceptada

Respondida
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...

casi 8 años hace | 0

Respondida
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 ...

casi 8 años hace | 1

| aceptada

Respondida
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...

casi 8 años hace | 0

Respondida
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...

casi 8 años hace | 0

| aceptada

Respondida
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...

casi 8 años hace | 0

| aceptada

Respondida
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...

casi 8 años hace | 1

Respondida
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...

casi 8 años hace | 0

| aceptada

Respondida
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...

casi 8 años hace | 1

| aceptada

Respondida
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)

casi 8 años hace | 0

| aceptada

Respondida
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')

casi 8 años hace | 0

| aceptada

Respondida
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....

casi 8 años hace | 0

Respondida
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...

casi 8 años hace | 0

Respondida
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...

casi 8 años hace | 0

| aceptada

Cargar más