Answered
How can I plot three variables in one 3D graph from two 2D graphs ?
See if the <https://www.mathworks.com/help/matlab/ref/plot3.html *|plot3|*> (link) function or similar (such as *|scatter3|* or ...

8 years ago | 0

| accepted

Answered
MATLAB Fouriertransform with nunequidistant values
I would use the Signal Processing Toolbox <https://www.mathworks.com/help/signal/ref/resample.html *|resample|*> (link) function...

8 years ago | 0

Answered
How to find the point where a function oscillates around?
If you have *|R2015b|* or later, and the Signal Processing Toolbox, the <https://www.mathworks.com/help/signal/ref/envelope.html...

8 years ago | 1

| accepted

Answered
How to plot a periodic signal without knowing mathematical equations?
Try this: N = 1; % Define 1 Cycle t = linspace(0, 0.01*N, ...

8 years ago | 2

| accepted

Answered
How to transform the constants in the equation solutions into an symbolic variable?
You have to define them numerically. Then, if you want to continue using the equation symbolically, use the *|subs|* function t...

8 years ago | 1

| accepted

Answered
Triangle_wave question
You have coded the essential loop correctly. The problem is that you overloaded your code with a lot of irrelevant items. I wo...

8 years ago | 0

Answered
2D Matrix calculation
I would use *|bsxfun|*. These produce the same result: C1 = bsxfun(@mrdivide, A, x) + bsxfun(@mrdivide, B, x); C2 ...

8 years ago | 0

Answered
How to find coefficient and power of polynomial y=a*x^n
Two options: x = 1:20; y = 3*x.^pi + randn(size(x)); blin = [ones(size(x(:))) log(x(:))] \ log(y(:)) ...

8 years ago | 0

| accepted

Answered
How to save all results at some point in the script and run next time based on those results?
I would use the <https://www.mathworks.com/help/matlab/ref/save.html *|save|*> (link) function to store the selected data, then ...

8 years ago | 0

Answered
excel averageif function in matlab
I am not certain what structure your original data are. Try this: C = {1 225.42968 1 453.4097824 1 25...

8 years ago | 0

| accepted

Answered
Creating variable from string
Experiment with the <https://www.mathworks.com/help/matlab/ref/assignin.html *|assignin|*> (link) function. This is general...

8 years ago | 0

| accepted

Answered
How to write the expression in matlab
First, add the _required_ multiplicaiton operators, then: s = tf('s'); H = (2-s^500-3*s^700)/(1-11*s^400-20*s^700) ...

8 years ago | 0

| accepted

Answered
Split information into two columns
Try this: strs = {"House_red"; "House_x_red"; "House"; "Apartment"}; % Data chrs = cellfun(@char, strs, 'U...

8 years ago | 0

| accepted

Answered
Interpreting Repeating arrays in matlab what do these matrices look like when formed
The easiest way to find out is to run them and observe the results. Q1 = reshape(repmat([1:1:336]',1,4),[],1); Q2 = re...

8 years ago | 0

| accepted

Answered
How to extract specific row data from a big matrix?
Try this: data = [1 5; 1 1; 1 2; 1 3; 1 1; 2 2; 2 2; 2 1; 2 3; 2 1]; ptrn = [1 1; 1 2; 2 1; 2 2]; ...

8 years ago | 0

| accepted

Answered
How do you write this Rician formula using the besseli function
As I understand the documentation for <https://www.mathworks.com/help/matlab/ref/besseli.html *|besseli|*> (link), the *|‘nu’|* ...

8 years ago | 0

| accepted

Answered
How do I set the current axes to a saved axes?
The <https://www.mathworks.com/help/matlab/ref/savefig.html *|savefig|*> (link) function could be more appropriate, depending on...

8 years ago | 1

| accepted

Answered
Fit a repeated pattern
Getting the ensembles (data between the vertical lines) takes a bit of experimentation. It is then possible to put those data i...

8 years ago | 1

| accepted

Answered
How to plot a function with complex variables?
I am not certain from your description what you want to plot. Try this: ang = 0:0.1:2*pi; z = exp(1i*ang); f = ...

8 years ago | 0

| accepted

Answered
How to round the decimal?
Try this: x = [0.00135678 0.00076243;0.0000045789 0.01234567]; L10 = log10(x); ...

8 years ago | 0

| accepted

Answered
How do you write this equation correctly in MATLAB?
That is difficult to read. It _appears_ to be this: p = @(delta,sigma) (exp(-sigma./delta)./delta) .* (sigma >= 0); It...

8 years ago | 0

| accepted

Answered
Help me print this cell array...
The problem is the first column, a cell containing a cell containing a string. The loop is necessary because that is the only w...

8 years ago | 0

| accepted

Answered
Time domain impulse response to transfer-function/ Nyquist plot
*_‘1. How can I retrieve both the magnitude and phase of that response? The 'fft' function provide a single vector which I guess...

8 years ago | 0

| accepted

Answered
butterworth passband filter transfer function in matlab
The *|butter|* function returns the numerator polynomial *|‘b’|* and denominator polynomial *|‘a’|* of the transfer function as ...

8 years ago | 0

| accepted

Answered
How to put error bars on top of grouped bars
A few tweaks of your code Assuming *|R2014b|* or later): y1 = [2.194 2.145 2.126 2.115 2.01 2.098 2.136 2.136 2.1 2....

8 years ago | 3

| accepted

Answered
Quantization of a signal
That will be significantly easier with the correct signal: Fs = 20000; fc1 = 0.5; fc2 = 1; fc3 = 1.5; Fc = [fc...

8 years ago | 1

Answered
why is A undefined? How can I fix it?
It is necessary to evaluate your functions in order to operate on the results they return. Call them as functions, not function...

8 years ago | 1

| accepted

Answered
removing rows in big data
In your example, your result saves every *|5|*-th row of the input matrix to the output matrix. Try this: M = [(380:4...

8 years ago | 1

| accepted

Answered
How to take derivative of a function
If you have the Symbolic Math Toolbox, use that version of <https://www.mathworks.com/help/symbolic/diff.html *|diff|*> (link). ...

8 years ago | 0

Answered
Can i make 3d plot other than surf plot from these three values??? and how???
This combines a line plot (with *|plot3|*) and a stem plot (using *|stem3|*): figure plot3(x, y, z) hold on stem3...

8 years ago | 0

Load more