Answered
Unable to install Signal Processing Toolbox on Linux
Contact Support Include the URL of this thread in the note to Technical Support so that it is not necessary to repeat everyth...

4 years ago | 0

Answered
Find gradient ascent for 3D surface
This code finds the maximum of the surface and then uses griddedInterpolant with the calculated ‘xv’ and ‘yv’ vectors to draw th...

4 years ago | 1

| accepted

Answered
I want to colour the area between red line and black line below the intersection point. how am i going to do it?
Use ‘logical indexing’ to identify & fill the appropriate area — c=[3,5]; A=[1,2;1,1;0,1]; b=[2000;1500;600]; y1=0:1:ma...

4 years ago | 0

Answered
Simple way to create a block-diagonal matrix from a single vector.
I don’t understand exactly what ‘z’ is or what the desired result is. One possibility is to replicate the original matrix usi...

4 years ago | 0

| accepted

Answered
Output additional vectors from ode45
Adding additional outputs is permitted, providing that they are not used in the ode45 call. Normally, this is not a problem, be...

4 years ago | 1

| accepted

Answered
Why getting NaN's and other garbage from interp1?
I am not certain what the problem is (providing the data without the code and interp1 calls is not informative), however unless ...

4 years ago | 0

| accepted

Answered
Vectors must be the same length
The number of elements in ‘Y1’ in the plot need to be the same as the number in ‘x’ so one way would be to re-define ‘x’ to be t...

4 years ago | 0

| accepted

Answered
Problem with AlphaData property
The FaceAlpha (transparency) value is set to 'interp' and it is doing exactly what it is told to do! It will likely be necess...

4 years ago | 0

Answered
system of differential equations
Use the Symbolic Math Toolbox if available. Those all appear to have analytic solutions, since they all appear to be linear. S...

4 years ago | 1

Answered
Number of line for fcontour
A somewhat different approach — syms x y z(x,y) = exp(-(x-5)^2) + cos(y) figure hfc = fcontour(z, [0 10 -2*pi 2*pi]);...

4 years ago | 0

| accepted

Answered
ho to find index at which the 50% of the sum vector is included?
A least-squared-difference approach works — a=[3 5 7 3 5 8 9 3 1 41 6]; suma = cumsum(a); suma50 = suma(end)/2; [minv,idxv]...

4 years ago | 1

Answered
How can I skip the first to lines from a text file and proceed to read the file with header lines in between the values?
Try this — C1 = readcell('https://www.mathworks.com/matlabcentral/answers/uploaded_files/814274/BSH_HBM_tracer_productgrid_f...

4 years ago | 0

| accepted

Answered
How to activate the low-pass filter on NI-6115?
It will likely be best to Contact Support for this. I did an online search and could find no previous posts regarding the NI-61...

4 years ago | 0

| accepted

Answered
Function value and YDATA sizes are not equal. Can anyone help?
The problem is the randn call. With one argument, it creates an (nxn) matrix, not a vector, so of course the sizes will not mat...

4 years ago | 1

Answered
Error with the division
Use the table2array function to convert the contents of the table to an array. Assign the arrays to new variables rather than o...

4 years ago | 0

| accepted

Answered
error [empty sym] using dsolve "Warning: unable to find symbolic solution"
It is likely not possible to derive a closed-form (analytic or symbolic) solution for those. Create an anonymous function to us...

4 years ago | 0

Answered
How to define values in a vector as NaN ?
Try this (using ismember) — A = [1 2 3; 4 5 6]; B = [2 3; 5 6]; C = ismember(A,B) A(C) = NaN .

4 years ago | 1

| accepted

Answered
Define an additional variable in ODE solver
This is all a bit confusing, since the differential equations are not them selves functions of ‘C1’ and ‘C2’, so a differential ...

4 years ago | 0

| accepted

Answered
Can't Uninstall, What Should I Do?
Option #1: Contact Support The uninstall function deletes registry entries as well, however a fresh install should over-write...

4 years ago | 0

Answered
symbolic variables into double array, observability matrix
The variable values need to be provided in order to use the Control System Toolbox funcitons. To do this symbolically, create...

4 years ago | 0

Answered
Question in continuous time signals
Everything in a computer are discrete, not continuous (except the voltages on the chips themselves and the outputs of a soundcar...

4 years ago | 0

Answered
How to solve the implicit equation
First, a multiplication operator (my best guess, anyway) is missing: ((alfa*Vt*Vmpp*(2*Impp-Isc))/((Vmpp*Isc+Voc*(Impp-Isc))*(...

4 years ago | 0

Answered
How can we combine the two figures?
‘When you execute the code below, two plots are drawn.’ No, not without knowing what the variables are. However the prob...

4 years ago | 0

Answered
ODE45/ODE15 inquiry about nonlinear spring
Since the system appears to describe a differential-algebraic equation, see the documentation section on Solve Differential Alge...

4 years ago | 0

| accepted

Answered
Symbiological output using 'syms' and 'pretty' commands
Experiment with the indexing into the expressions (since this is a straightforward solution to a number of otherwise difficult p...

4 years ago | 0

| accepted

Answered
How do I reflex a plot?
Try this — u = -8:1:1.3; v = -pi:pi/10:pi; for k = 1:numel(v) x{k,1} = 1 + u + exp(u)*cos(v(k)); y{k,1} = v(k) +...

4 years ago | 0

Answered
how to increase function values through its derivetive
Do some simple experiments to see what produces the desired result — syms k x dx1 = 2*x; ...

4 years ago | 0

Answered
Problem to solve integration
Change this — f = @x sin(x); to this — f = @(x) sin(x); That should work. .

4 years ago | 0

| accepted

Answered
Removing a particular legend from plot
The first two lines have the same line style. To see them individually, choose a different line style for each. To label t...

4 years ago | 0

| accepted

Answered
how to solve the following equation?
Try this — a=[1,2,3]; afcn = @(b) ((b-2).*(b+1))./((b+3).*(b-1)); [estb,fval] = fminsearch(@(b) norm(afcn(b) - a), rand) ...

4 years ago | 0

| accepted

Load more