Resuelto


All capital?
Are all the letters in the input string capital letters? Examples: 'MNOP' -> 1 'MN0P' -> 0

alrededor de 5 años hace

Resuelto


Who is the smartest MATLAB programmer?
Who is the smartest MATLAB programmer? Examples: Input x = 'Is it Obama?' Output = 'Me!' Input x = 'Who ?' Ou...

alrededor de 5 años hace

Respondida
Matlab Error Uint 8
You can't run your fcn file: steganografie without providing the input arguments, viz. imag1, imag2, n Make sure while calling...

alrededor de 5 años hace | 0

| aceptada

Respondida
How to fill end of rows of a matrix with NaN values?
Hi, here is a simple solution, e.g.: M = magic(5); M(:,end)=nan

alrededor de 5 años hace | 0

Respondida
symsum gauß, how to calculate sum of series ?
There are a few curcial errs in your developed code. (1) Don't name a function with MATLAB's builtin function names. You have ...

alrededor de 5 años hace | 0

Respondida
How to plot principal component (PCA)?
Here are two nice documentation that address your raised questions: https://www.mathworks.com/help/stats/pca.html https://www....

alrededor de 5 años hace | 0

Respondida
Principal Component Analysis PCA
Here are two nice documentation that address your raised questions: https://www.mathworks.com/help/stats/pca.html https://www....

alrededor de 5 años hace | 0

Respondida
Fourier Transform of signal
Here is the completed code for fft calcs: t = 0 : 0.001 : 2; x = (2*(exp(-4*t))).*(cos(10*t).*heaviside(t)); L= numel(x); Y ...

alrededor de 5 años hace | 0

| aceptada

Respondida
How to run a Simulink Model (.slx) and while loop in (.m file) simultaneously?
This is the general syntax to simulate Simulink model with a loop, e.g: for ii=1:N OUT(ii)=sim('ABC.slx'); end

alrededor de 5 años hace | 0

Respondida
Can you help me with the output of my optimizer?
You'd need define a math formulation of fun_objetivo = @(par,pfrac)FunObjetivo(par); Once it is done, you can run via loop iter...

alrededor de 5 años hace | 1

Respondida
Fourier Transform of a random Signal
Hi, Here is the complete code: t = 0 : 0.001 : 2; x = (2*(exp(-4*t))).*(cos(10*t).*heaviside(t)); L= numel(x); Y = fft(x)...

alrededor de 5 años hace | 1

| aceptada

Respondida
trisurf to surf
Here is a nice code developed by a matlab community user: https://www.mathworks.com/matlabcentral/fileexchange/4512-surf2stl ...

alrededor de 5 años hace | 0

Respondida
Adding z-values for surf/contour plots - PART II
You can use polar coordinate system and then you can compute the values of r in terms of x and y. To convert cartesian to polar...

alrededor de 5 años hace | 0

Respondida
How to recognize a multiple faces from a single image
Mathworks has many great documentations on this issue. You can see: http://www.mathworks.in/help/vision/ref/vision.cascadeobjec...

alrededor de 5 años hace | 0

Respondida
select data from plot and update other plot
Hi, Maybe you can try to employ ginput() to select the region and plot the selected region afterwards. Along the way you wo...

alrededor de 5 años hace | 0

Respondida
getting data from workspace to Simulink
Hi, In this case, you'd need to generate two column data from your imported data ([To Woskspace] block) into matlab workspace...

alrededor de 5 años hace | 0

| aceptada

Respondida
Hello everyone. I would like to ask you two questions. The first problem: know A = [0.4,0.9], B = [2,9], and find the linear equation through A and B. The second problem: how to remove all zeros in a matrix. D=[1 2 3; 1 7 2; 6 2 7,0 0 0,0 0 0].
Question (1) is a simple LA exercise, but [A] needs to be 2-by-2. And then you can compute the roots of the system using linsolv...

alrededor de 5 años hace | 0

Respondida
Is it possible to access the value of the variable step size (of the independent variable) used by ODE45 within the ode function?
Hi, As if I undertood your question correctly, you'd like to save and display simulation iteration process, correct? If this...

alrededor de 5 años hace | 0

Respondida
compare columns of matrix using groupcounts
Hi, Here are good help hints and docs given how to compare matrices: https://www.mathworks.com/matlabcentral/answers/446605-...

alrededor de 5 años hace | 0

Respondida
Recovering precise points on a graph
You may try using graphical input with ginput(), e.g: [x, y] = ginput(5); % Five freq. values, viz mag and f values will be ...

alrededor de 5 años hace | 0

Respondida
How can i export figure with all bold axes saved?
Hi, Here is a simple answer: ... exportgraphics(gcf,'p.png','Resolution',600)

alrededor de 5 años hace | 0

Respondida
find the local maximum and minimum values and saddle points of the function
Hi, Here is an approrpriate discussion with solution codes for your exercise: https://www.mathworks.com/matlabcentral/answer...

alrededor de 5 años hace | 0

| aceptada

Respondida
Solving composite equations with symbolic toolbox
Hi, Here is the corrected code with the symbolic solutions (A, B) of the two equations: clearvars syms A B w g alphaL p AR ...

alrededor de 5 años hace | 1

| aceptada

Respondida
Plotting Graph - 1D Advection
Hi, Here is the corrected part of your code and the rest of your code remains the same: ... figure(1) plot (x,z,'b') ...

alrededor de 5 años hace | 0

Respondida
How do I put it in?
It is quite simple. x1 = [-4.2 -2.6 -1 0.6 2.2 3.8 5.4 7 8.6]; x2 = [0.8 2.4 4 5.6 7.2 8.8 10.4 12 13.6]; x1 = [x1, x2]; ...

alrededor de 5 años hace | 0

Resuelto


Return unique values without sorting
If the input vector A is [42 1 1], the output value B must be the unique values [42 1] The *values of B are in the s...

alrededor de 5 años hace

Resuelto


Fibonacci-Sum of Squares
Given the Fibonacci sequence defined by the following recursive relation, * F(n) = F(n-1) + F(n-2) * where F(1) = 1 and F(1)...

alrededor de 5 años hace

Resuelto


multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...

alrededor de 5 años hace

Resuelto


Arrange vector in ascending order
Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];

alrededor de 5 años hace

Resuelto


Program an exclusive OR operation with logical operators
Program an exclusive or operation *without* using the MATLAB function xor. Use logical operators like |, &, ~, ... instead. ...

alrededor de 5 años hace

Cargar más