Answered
what is the meaning of this result ?
They are returning the ASCII decimal representations of the respective letters. I cannot find anything in the documentation for...

8 years ago | 0

| accepted

Answered
I am trying to generate uniformly distributed points inside a hexagon of specific centre (other than the origin). Any help is most welcome, thank you.
Define the centre points, then add them as appropriate to *|‘v_x’|* and *|‘v_y’|* and *|‘c_x’|* and *|‘c_y’|*: xcntr = 7; ...

8 years ago | 0

| accepted

Answered
Read .CSV file and remove lines
This may be the least aesthetically appealing code I ever wrote. Its only redeeming factor is that *|‘Result’|* is the matrix y...

8 years ago | 1

| accepted

Answered
Patch or Fill between upper and lower bounds
I am not certain what you want, or what you are referring to. One option for the grey line: x = 0:63; y = sin(x/10...

8 years ago | 1

Answered
How to plot a function of two variables against one variable
I am not certain what you want. The documentation on the <https://www.mathworks.com/help/matlab/ref/plot.html *|plot|*> (li...

8 years ago | 0

Answered
how to plot impulse function's laplace transform?
The Laplace transform of the impulse function is *|1|*. A plot of it would be a straight, horizontal line at *|1|*. ...

8 years ago | 0

Answered
How can I separate these four sensor data from one audio file?
One approach: D = load('signal.mat'); s = D.new_signal; x = 1:numel(s); [seu, sel] = envelope(s, 250, 'rms')...

8 years ago | 1

| accepted

Answered
Sign of Vector Components in Quiver
*_‘... plots little lines at 40 degrees wrt to the x-axis ...’_* If you defined them with: u = cosd(angleArray); t...

8 years ago | 0

Answered
Adding more x axis tick marks on graph
Try this: c=0.022E-6; frequency = 5000:5000:50000; omega = 2.*pi.*frequency; transfer = ((omega.*300.*c)./sqrt(1+...

8 years ago | 0

| accepted

Answered
Plot did not work
Your *|‘f’|* matrix _appears_ to be a cell array. If so, and if I am correct in characterising it here, this will run witho...

8 years ago | 0

Answered
Help Plotting a Function
I have no idea what you want. I _assume_ you want a plot of *|‘P’|* as a function of *|‘d’|*. If so, try this: dv = ...

8 years ago | 0

Answered
How to plot vectors of different length
The problem is that you are using the numerical *|diff|* function that produces outputs that are smaller than the inputs. A...

8 years ago | 0

Answered
how to plot y=5*cos(x)/(x+exp(-0.8*x))-2*x/5
You likely need to use _element-wise_ operations rather than matrix operations. This requires the ‘dot operator’ ahead of any m...

8 years ago | 0

Answered
How to plot trajectory
Your *|‘trajectory’|* function wants *|‘ty’|* as well, so you need to include that in the argument list. Other than that, you n...

8 years ago | 0

Answered
Subplot not combining graphs
The extra *|figure|* calls are causing the problem. It creates a new figure, not something you want in the middle of your *|sub...

8 years ago | 2

| accepted

Answered
Problem with interpolating missing data
Try this: d_T_Req3 = cat(2, d, T_Req3); % Concatenate idx = ~any(isnan(d_T_Req3), 2); ...

8 years ago | 1

| accepted

Answered
Unknown variable within an equation
Try this: syms P T A=2; B=0.5; eqn = P*dawson(sqrt(log(P)-log(A))) - sqrt(B).*T ; % Rearran...

8 years ago | 0

| accepted

Answered
Find the max value of a column and find the day that corresponds to that value.
Try this: [D,S,R] = xlsread('stockdata.xlsx'); [maxval,idx] = max(D(:,2)); Day = D(idx,1) Day = 12...

8 years ago | 1

Answered
Plot matrix as scatter points with colorbar
One approach is to use *|meshgrid|* to create matrices out of *|‘x’|* and *|‘y’|*, then plot all of them as vectors, using the *...

8 years ago | 0

| accepted

Answered
Plot unit step function
You can use a ‘logical indexing’ approach: ustp = @(t) +(t>0); % Simple Unit Step Function...

8 years ago | 3

| accepted

Answered
Change amount of significant figures or precision in array elements
If you absolutely _must_ do that, see the section in the <https://www.mathworks.com/help/matlab/ref/round.html *|round|*> (link)...

8 years ago | 2

| accepted

Answered
Lsqnonlin wrong f(x) value
It would seem that you are asking *|lsqnonlin|* to hit a moving target, since *|rand|* returns a different value each time *|‘lo...

8 years ago | 1

| accepted

Answered
Replacing variables with dummy variables
The only one that I can think of is the Symbolic Math Toolbox <https://www.mathworks.com/help/symbolic/coeffs.html *|coeffs|*> (...

8 years ago | 0

| accepted

Answered
X value in Genetic Algorithm
Although not mentioned in the documentation, there have been discussions here about the method the *|ga|* function uses to deter...

8 years ago | 0

Answered
Can I send two individual signals one after the other in matlab/simulink
One approach: t = linspace(0, 1, 500); s = [10*sin(2*pi*50*t(1:fix(numel(t)/2))/max(t)), 5*sin(2*pi*50*t(fix(numel(...

8 years ago | 0

| accepted

Answered
Vector Manipulation - How to achieve this specific form?
Try this: v1 = 1:17520; % Create Vector v2 = reshape(v1, [], 2)'; ...

8 years ago | 1

| accepted

Answered
explicit answer error with dsolve
You are not doing anything wrong. Not all differential equations have analytic solutions. Instead, create your differentia...

8 years ago | 0

Answered
Finding an array of numbers in an array
I would use the <https://www.mathworks.com/help/matlab/ref/ismember.html *|ismember|*> (link) function. Try this: tar...

8 years ago | 1

| accepted

Answered
how can I run the distributionFitter multiple times at once?
I would use the <https://www.mathworks.com/help/stats/fitdist.html *|fitdist|*> (link) function instead to fit your data.

8 years ago | 0

| accepted

Answered
How do I sum a series in Matlab without using a for loop?
You seem to have made some typographical errors. In your last division, you forgot to use element-wise operations in the di...

8 years ago | 1

| accepted

Load more