Answered
How do I figure out the (x, y) values of where two lines intersect on a graph?
First, ‘x’ and ‘V’ have to have the same numbers of elements (unless you’re defining them as functions, in which case you can us...

7 years ago | 0

Answered
Why won't my graph plot?
You need to save the elements of ‘FS’ in order to plot them against vector ‘d’. I slightly edited your code: %use a for loo...

7 years ago | 1

| accepted

Answered
How do you graph two equations on the same graph?
Considering your present code, use the hold function. Using your code: x = 0:.1:10; I = (-1/5000)*x+(.0018); plot(x,I) h...

7 years ago | 0

Answered
How do I fill the area between two plots in a loglog plot?
You have one fundamental error. Your matrices are (Nx2), so using fliplr on each column is pointless. You need to use flipud a...

7 years ago | 0

| accepted

Answered
How do I display the actual values of a table instead of vector size?
The problem is that the values are row vectors. If you convert them to column vectors before you create the table, the table ...

7 years ago | 1

| accepted

Answered
Importing a CSV with Date/Time and Scientific Notation
Unfortunately, readtable has problems with your file. (I tried that first.) That aside, working with your file as a table is...

7 years ago | 1

| accepted

Answered
How to write polynomial matrix and use tf to ss
See the tf documentation section: Concatenate SISO Transfer Functions into MIMO Transfer Function Model

7 years ago | 0

Answered
Hello!! Does anyone know how to type " | " on a keyboard on windows pc?
I use: Shift+\ to get |. (QWERTY keyboard, U.S.) It is also char(124)

7 years ago | 1

Answered
i want to fill matrix with some numbers
Try this: SomeNumbers = [50,90,60,73,55,96,47,63,555,46,756,968,453,452,500]; idx = randi(15, 8000, 5); RandMatrix = SomeNum...

7 years ago | 0

Answered
is it possible to convert iddata to cellstr
Another approach: data = iddata(rand(1,10)', (0:9)', 0.1); % Create ‘iddata’ Object y = data.OutputData; ...

7 years ago | 0

| accepted

Answered
Error Bar lines are connected in bar plot
Plot Error Bars with No Line

7 years ago | 0

| accepted

Answered
trouble with loops need help
I am not certain what result you want. One approach: array = [1 2 3 4]; target = [20 30 40 50]; Mapfcn = @(idx) target(...

7 years ago | 0

Answered
For and if loops
The immediate solution is to use square brackets: RT([3,6],v) There needs to be some delimiter between the ‘3’ and the ‘6’, a...

7 years ago | 0

| accepted

Answered
How to plot arrays of different sizes using interp1?
Your posted files have only one column each. I would expect two columns — one for the independent variable and a matching one...

7 years ago | 0

Answered
How to find certain point (ex. maximum y value, or certain y value with respect to certain x value) from a function/plot I made?
Use the max function and the interp1 function: M=300; K=21000; C=2000; A=0.2; wn=sqrt(K/M); zeta=C/(2*sqrt(M*K)); ...

7 years ago | 0

| accepted

Answered
Second order ODE15s going to infinity
Your ‘sub2’ function is not correct. sub2 = @(t,w,mu) [w(2); w(1)-mu*(w(1)^2-1)*w(2)]; mu = 1200; tfinal = 7000; delta_t =...

7 years ago | 0

| accepted

Answered
index exceeds the number of array elements(1)
‘I cant figure out why’ That is because although ‘i’ increments, the values of ‘range’ and ‘rangeAngle’ remain (1x1) scalars in...

7 years ago | 0

| accepted

Answered
How to convert serial date numbers in a table to dd-mm-yyyy?
It appears to not like the LHS assignment. This works: dn = now + (0:9)'; T1 = table(dn); T1.dn = datetime(T1{:,1},'Con...

7 years ago | 0

| accepted

Answered
Symbolic Integral Giving answer as infinity
Note that the RHS of ‘Vin5’ is not a function of ‘x’. You have also not defined ‘E’. The correct symbolic expression is: s...

7 years ago | 0

Answered
I have problem with matrix form.
The third row of ‘A’ only has 6 elements: -G(4), -G(2), G(2)+G(4)+G(5),0,0,0; The other rows have 7.

7 years ago | 0

Answered
Symbolically Calculating Fourier Transforms with int()
The heaviside step function is simply 1 on the interval you are interested in. Try this: syms omega t FX_1 = int(1*exp(-1...

7 years ago | 0

| accepted

Answered
matlab R2919a
If you have an appropriate license and maintenance subscription, you can download and install R2019b. Try it.

7 years ago | 0

| accepted

Answered
Check if values in array fall within certain integer of values in another array
The ismembertol funciton is also an option: A = [11 22 35 41]; B = [ 3 11 45]; [LA,LB] = i...

7 years ago | 1

| accepted

Answered
How to understand solutions provided by fsolve
Nonlinear optimisation functions are sensitive — and can be very sensitive — to the initial estimates. If your equations re cod...

7 years ago | 0

| accepted

Answered
MATLAB 2019b Update 1 Function semilog doesn't work on macOS Catalina
It could be that your data values are not much different, so semilogx or semilogy may not seem different. To test that hypoth...

7 years ago | 0

| accepted

Answered
How to create an array from one row of the dataset file?
Knowing only what you described, import the entire file to a matrix, then choose the 4th column of the matrix.

7 years ago | 0

Answered
How to add a secondary axis to a polarplot on matlab?
Try this: t = 0 : 2*pi/177 : 2*pi; a=linspace(0.3,0.5,178); m=linspace(0.4,0.6,178); figure(3) ax = polaraxes; hold on p...

7 years ago | 0

Answered
How to add a secondary axis to a polarplot on matlab?
See if this does something similar to what you want: t = 0 : 2*pi/177 : 2*pi; a=linspace(0.3,0.5,178); m=linspace(0.4,0.6,17...

7 years ago | 0

Answered
Using Input Function and Logic to Complete a Task
First, the weekday function could make this much easier, depending on what you want to do. Second, if you choose the string o...

7 years ago | 0

Answered
How to plot data from a single day?
If ‘T1’ is your table, and y0ou defined it with a datetime array as the first column try this: G = findgroups(day(T1{:,1})); ...

7 years ago | 1

| accepted

Load more