Solved


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

5 years ago

Solved


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

5 years ago

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

5 years ago | 0

| accepted

Answered
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

5 years ago | 0

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

5 years ago | 0

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

5 years ago | 0

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

5 years ago | 0

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

5 years ago | 0

| accepted

Answered
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

5 years ago | 0

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

5 years ago | 1

Answered
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)...

5 years ago | 1

| accepted

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

5 years ago | 0

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

5 years ago | 0

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

5 years ago | 0

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

5 years ago | 0

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

5 years ago | 0

| accepted

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

5 years ago | 0

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

5 years ago | 0

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

5 years ago | 0

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

5 years ago | 0

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

5 years ago | 0

| accepted

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

5 years ago | 1

| accepted

Answered
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') ...

5 years ago | 0

Answered
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]; ...

5 years ago | 0

Solved


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

5 years ago

Solved


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

5 years ago

Solved


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

5 years ago

Solved


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

5 years ago

Solved


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

5 years ago

Load more