Beantwortet
How Create a vector given size(N) and the value of the max element(M)?
Are those the only conditions? linspace(1, M, N) has N values which range from 1 to M.

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Using sample code but returning a blank plot
You create a label and a title for a plot, but at no point do you feed it actual data to plot. Why would it do anything but prod...

mehr als 3 Jahre vor | 0

Beantwortet
Create a Slanted Linspace Matrix
If you have the signal processing toolbox, the buffer command will do exactly what you want. If not, something like x = linsp...

mehr als 3 Jahre vor | 0

Beantwortet
log ticks on Y-axis
set(gca, 'YScale', 'log') Is this what you mean?

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
error message how to solve !?
The error message is exactly what it says. You defined a function, which is not defined if one of your inputs is a function hand...

mehr als 3 Jahre vor | 0

Beantwortet
MATLAB isn't working to generate figures
Use hold on and hold off when generating figures. I've not used imshow before, but I'll guess that each time you generate a figu...

mehr als 3 Jahre vor | 0

Beantwortet
How to add a NaN row at the beginning columns of a table?
for jj = 1:5 A(:,jj) = [NaN([jj 1]); B(1:end-jj)] A(T.id(1:end) ~= [NaN([jj 1]); T.id(1:end-jj)], jj) = NaN; end I h...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
signal to noise ratio (SNR)
According to the documentation, "r = snr(x,y) returns the signal-to-noise ratio (SNR) in decibels of a signal, x, by computing ...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How can I get archived documentation for a R2012b release?
As per the other answer, 2012b doesn't have easily accessed documentation. I have found, however, the 2012b release notes in thi...

mehr als 3 Jahre vor | 0

Beantwortet
How to Integrate ?
Wolfram alpha is useful here to show you what can be done. If you click that link you'll see that I asked it to do which is ...

mehr als 3 Jahre vor | 0

Beantwortet
Min and max value of many results
Good news! Matlab has built in min and max commands. So it's pretty straightforward to define them and store them in a vector: ...

mehr als 3 Jahre vor | 1

Frage


Is it possible to include LaTeX expressions as text in my code?
I have a piece of code, where some of the variables can have their values chosen by me as and when I want. The values have very ...

mehr als 3 Jahre vor | 2 Antworten | 0

2

Antworten

Beantwortet
What is the difference between matlab download R2020a and R2020b?
Here are the release notes for 2020b. There likely isn't much to change for most people, when I updated from 2020a to 2020b I di...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Index in position 1 is invalid. Array indices must be positive integers or logical values. (Slution of equation of motion with runge kutta 4)
t(1), q(1) and dqdt(1) are all zero. Matlab indexing starts at 1, so when you assign k_11 = y1_2nd(t(i),q(i),dqdt(i)) it trie...

mehr als 3 Jahre vor | 0

Beantwortet
I want the graph of the function only show the part where x>0
You want xlim. Give it one limit and it can calculate the other, or use xlim(0, length(y)).

mehr als 3 Jahre vor | 1

Beantwortet
max and min row from an array
The built in min and max commands have the ability to return the index of the largest and smallest values in an array. The docum...

mehr als 3 Jahre vor | 0

Beantwortet
How to change dot's place in fractional number
Multiply by 100? x1 = 0.25; x2 = x1 * 100; disp(x2) 25

mehr als 3 Jahre vor | 1

| akzeptiert

Frage


How do I find out what specifically is causing the error "Matrix is close to singular or badly scaled" in the sgolay function?
I'm using the sgolay function from the Signal Processing toolbox to calculate some derivatives. The function is inside a loop as...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
Plot a graph with linspace
You can't get that exact plot with linspace. I've managed to get it by using t = [0 1 1 2 3]; u = [1 1 0 0 0]; plot(t, u, 'k...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Finding points inbetween the values of my arrays.
If I understand your question, you want the interp1 command. You can choose how many target points to create, so make the lines ...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Curve Fitting for a function with 3 fitting parameters.
Bjorn's method will work. I'm just offering a second option, from the file exchange: https://uk.mathworks.com/matlabcentral/fil...

mehr als 3 Jahre vor | 0

Gelöst


Find the Pattern 4

mehr als 3 Jahre vor

Gelöst


Find the Pattern 3

mehr als 3 Jahre vor

Gelöst


Find the Pattern 2

mehr als 3 Jahre vor

Gelöst


Find the Pattern 1

mehr als 3 Jahre vor

Gelöst


Convert radians to degrees
Given input in radians, output to degrees

mehr als 3 Jahre vor

Gelöst


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

mehr als 3 Jahre vor

Gelöst


Calculate the volume of the football

mehr als 3 Jahre vor

Beantwortet
How to make a graph of an equation if part of it is an array?
You're right, the right side of line 10 has the same size as r (which itself has the same size as t), and you're trying to assig...

mehr als 3 Jahre vor | 1

Gelöst


Find Logic 3

mehr als 3 Jahre vor

Mehr laden