Answered
how to write an Algebraic Equation in Matlab
I am not certain exactly what you want. See if this works — C = 31 Vinitial = 310 Vfinal = 320 Energy_stored_in_a_Capaci...

5 years ago | 0

| accepted

Answered
How to Calculate the 1% value of using gevfit
The gevinv funciton will likely do what you want, given the parameters. Copying from the image — X = gevinv([0.01 0.99], -0...

5 years ago | 0

Answered
I didn't know how to find r
A different approach — ac = 6*18*18 as = @(r) (4*pi*r.^2) r = fzero(@(r) ac - as(r), -1) Check_Equal_Areas = ac - as(r)...

5 years ago | 0

Answered
Plot how the input changes
Try something like this — b = @(m,x,y) y-m.*x; x = 1; m = linspace(0,10,11); y=2; figure plot(m, b(m,x,y)) grid xla...

5 years ago | 1

Answered
Function output is returning equation not value
If ‘rad’ is purely numeric (no symbolic variables), use the double function to onvert it to a double value. Also consider usi...

5 years ago | 1

Answered
how to solve error using integral
Not certain what the desired result is, however everything here are arrays or vectors, so use trapz instead, since there are no ...

5 years ago | 0

Answered
Array of the number of days in the month of February this year
Numer of days: eomday Array of days: calendar .

5 years ago | 1

Answered
The longest consecutive values in a vector and the position at which it starts and ends
One approach — A = [35, 25, 40, 20, 20, 30, 30, 30, 30, 30, 9, 20, 30, 10, 30]; [Au,~,ix] = unique(A, 'stable'); Tally = a...

5 years ago | 0

| accepted

Answered
How do I generate a pdf from some known percentile values
A slightly different approach — prctiles = [5 10 30 33 50 67 70 90 95]; SLR = [3.2760 3.5265 ...

5 years ago | 1

| accepted

Answered
Data Recovery for the Original Image
See for example: How do I extract data from MATLAB figures? Use the saveas function to save the resulting figure as a .png imag...

5 years ago | 0

Answered
how to change the front size and the inclination in a bar graph
‘2- how can I get the name to be written normally( those low characters should be on the same level as others)’ ‘Escape’ th...

5 years ago | 0

Answered
Convolution of two Gaussian functions without conv
Just choose any arbitrary vector for ‘z’ that is long enough to completely support the signals to be convolved. For a Gaussian,...

5 years ago | 1

| accepted

Answered
Finding top and bottom 10% of data
If the Statistics and Machine Learning Toolbox is available, use the prctile function — x = randn(1,20) ...

5 years ago | 0

Answered
Hello Everyone, I need to pass a low pass filter in this plot and I can't find the best way to do that. Someone can help me? Thanks.
Use the freqz function (or freqs linked to in that documentation page, if it is a continuous-time filter) — [b,a] = butter(8...

5 years ago | 0

| accepted

Answered
Why do I get "Array indices must be positive integers or logical values"?
MATLAB does not recognise implicit multiplication, so the missing multiplication operator vt=vf(1-exp(-t/tao)); ↑ ← HERE ...

5 years ago | 0

Answered
Why do I get "Array indices must be positive integers or logical values"?
MATLAB does not recognise implicit multiplication, so the missing multiplication operator vt=vf(1-exp(-t/tao)); ↑ ← HERE ...

5 years ago | 0

Answered
My graph won't display when I run my code. How do I get it to show?
Without seeing the ‘myFunc’ code, there is no way to provide a meaningful reply. The most likely result is that with: ICs=...

5 years ago | 0

Answered
How do I change the values ​​of the axes?
Try something like this — x = linspace(0, 21, 25); y = rand(size(x)); figure plot(x, y) xt = get(gca, 'XTick'); xtv = l...

5 years ago | 0

| accepted

Answered
Ignore NaN values in a Table
Since the Question appears to apply to the prod funciion, see the section on Product Excluding NaN. (I am not certain when that...

5 years ago | 0

Answered
How to change the values of both axes
There are ways to change the exponent display of the axis rulers using the NumericRuler Properties, however that is not necessar...

5 years ago | 0

| accepted

Answered
How do i define a variable as a function?
I suspect this works the similiarly in Maple (that I do not currently have) — syms t theta(t) f=cos(theta(t)); dfdt(t) =...

5 years ago | 0

| accepted

Answered
what do you obtain when you do the f
‘what do you obtain ?’ Run it and plot it (using the Signal Processing Toolbox rectpuls function) to see the result — t = lin...

5 years ago | 0

| accepted

Answered
how can use ode45 for differential equation system with time dependent data
ODE with Time-Dependent Terms

5 years ago | 0

Answered
plot the probability distribution from Schrodinger Equation
It gives a blank plot because the linspace calls are only producing one element. The third argument to linspace is the number o...

5 years ago | 1

| accepted

Answered
how do i find the interception of these two fuctions i1 and i2
This was a challenge! I tried this a couple times before I had an appropriate insight to calculating the intersection. (I ma...

5 years ago | 1

| accepted

Answered
inclined number in x-axis using scatter3 view(0,90)
That is the normal behaviour for the last few releases. One way to straighten the tick labels without having them overlap is ...

5 years ago | 0

| accepted

Answered
Plot area is empty
Use element-wise (array) division (./) instead of matrix division (/) and it works. (Matrix division will produce one value, ho...

5 years ago | 1

| accepted

Answered
Formatting Subscript, and Superscript in Text
Note that the sprintf call is not required for this, unless it is necessary to also print variables — text(0.4, 0.4, sprintf('...

5 years ago | 1

Answered
how to mark and print the intersecting coordinates of two lines
Much depends on what ‘x1’, ‘y1’ and the rest are. One approach (sssuming multiple intersections, although thiis will also wo...

5 years ago | 0

| accepted

Answered
why does the surf command give me this result?
I have no idea what the data are, or how the data are being plotted. If the colormap is gray the ‘brighter’ values are higher...

5 years ago | 0

Load more