Answered
What function has created this plot?
The top image appears to be a contour plot, although it could be a surf plot rotated with view to see it from the top. There ...

6 years ago | 0

Answered
3D plot rotate
Use the rotate function. EDIT — (16 Apr 2020 at 13:35) Using your posted code and rotate: x = [0:0.01:1]; z = [0:0.01:1...

6 years ago | 0

| accepted

Answered
Encounter an error while using fimplicit?
The fimplicit function was introduced in R2016b. Use the contour function instead: r=1./2; x0=0; y0=1./2; f = @(x,y) (x-...

6 years ago | 0

| accepted

Answered
Which graph is recommended?
I would do something like this for the plot: D = load('localcombi.mat'); localcombi = D.localcombi; [Ur,~,ix] = unique(loc...

6 years ago | 0

Answered
solving and finding c1 c2 values
Try this: syms c1 c2 c3 Eq4 = (2682754076831727*c1)/8388608 + (2682754076831727*c2)/8388608 + (2682754076831727*c3)/8388608 ...

6 years ago | 0

Answered
very strange error of for loop
You did not include the plot call you are using. If you are plotting: figure plot(a,b) it will show a straight line from ...

6 years ago | 0

| accepted

Answered
Help with Smooth graph interpolation
I have no idea what your data are, and I am not certain what defines ‘smooth’. With that proviso, try this: xq = linspace(m...

6 years ago | 0

| accepted

Answered
Using lsqcurvefit with ODE15s (SIR model)
When I run your code, It throws: Warning: Failure at t=7.164307e+01. Unable to meet integration tolerances without reducing ...

6 years ago | 0

| accepted

Answered
Trying to Solve for multiple values of a variable
Try this version of your code (with the correct ‘W_algae’ vector): W_algae=0.05:0.05:0.2; m_1_algae=(5*10^4)*(1/3600); %[=] k...

6 years ago | 0

Answered
How would I turn this structure array into a matrix
You did it correctly in the files in How can i remove from a cell array, the words in another cell array? EDIT — (15 Apr 20...

6 years ago | 0

Answered
Passing an audio signal through a transfer function
I have no idea what ‘n’ and ‘d’ are, or how they were calculated. If they are calculated as continuous s-space polynomials, the...

6 years ago | 0

Answered
How can i remove from a cell array, the words in another cell array?
Try this: D1 = load('stopWords.mat'); stopWords = D1.stopWords; D2 = load('newWords.mat'); newWords = D2.newWords; editedW...

6 years ago | 0

Answered
Recovering editor window scripts
Those are in the ‘preferences’ file. Explore the various options for recovering the preferences file in this list of search res...

6 years ago | 0

| accepted

Answered
contour plot control in Surfc function
I did not see this before. For the second, see: Customizing contour plots part 2 I asked about this a while ago, and MathWo...

6 years ago | 0

| accepted

Answered
Finding intersection point between two functions
Try this: A=[0 2.5 3.8 4.5 6.7 7.2]; B=[0 0.6 1.1 1.6 2.6 3.7]; P=polyfit(A(1:3),B(1:3),1); L=@(x) P(1).*x + P(2...

6 years ago | 0

Answered
input Variable storage audio file
Starting with: v = load('gong.mat'); audiowrite('gong.wav',v.y,v.Fs); I would do either: [y,Fs]=audioread('gong.wav'); In...

6 years ago | 0

| accepted

Answered
Window Design of Digital Filters
Both the rectwin and bartlett functions have a single length argument. That simplifies this considerably. if deltadB_max <= ...

6 years ago | 0

| accepted

Answered
Unique values in cell array
The cells in ‘locations’ have from 3 to 10 columns, so comparing all of them by rows is not possible. Likely the best you can...

6 years ago | 0

| accepted

Answered
Band pass filter in frequency domain
Please do not even try to do filtering in the frequency domain. However, if you absolutely must, use the fftfilt function.

6 years ago | 2

Answered
Formating a table with unequal rows
Another option is to use the outerjoin function: D = load('matlab.mat'); OE1 = D.OutnbEmployees1; OE2 = D.OutnbEmployees2; ...

6 years ago | 1

Answered
Outputting an equation with variables and text
Try this: ChemEqn = sprintf('%gCH4 + %gH20 + %gCO2 + %gO2 -> %gH2O + %gO2',a,b,c,d,e,f) producing: ChemEqn = '0.9CH4 +...

6 years ago | 0

Answered
Create 3D Surf from table of data
The data are gridded, so you simply need to use the reshape function to create matrices from them: [~,ix] = unique(trainingdat...

6 years ago | 0

Answered
Why image rotates after adding to a figure- how to prevent it?
Using flipud worked when I tried it: im = image('CData',flipud(img),'XData',[50 51],'YData',[35 36]); I do not have the Mappi...

6 years ago | 1

| accepted

Answered
Creating a function that preforms two sample t-tests with unequal variances
‘My main problem is, is that I don't how how to assign vartype.’ I’m not certain what you’re asking. It appears that ‘vartyp...

6 years ago | 0

Answered
loop causes enlargement of array
The ‘x_data’ and ‘residuals’ variables are both (1x1000) vectors. Subscripting them is likely the solution, although you need...

6 years ago | 0

| accepted

Answered
finding unique phrases and their frequency in a cell array
Try this: D = load('matlab.mat'); nbEmployees = D.nbEmployees; [uE,~,ix] = unique(nbEmployees); tally = accumarray(ix, 1); ...

6 years ago | 0

| accepted

Answered
Error: Index exceeds the number of array elements (1).
The only possibility that comes to mind is that when you call ‘gameOver’, ‘stats’ is a scalar. It may have been redefined befor...

6 years ago | 0

| accepted

Answered
Finding upper and lower (min and max) states
The 'movmedian' method works as well as 'sgolay', and appears to produce essentially the same result. It is a core MATLAB funct...

6 years ago | 1

Answered
Plotting in 3D
With your data, this is likely the best you dan do: h = [0.015 0.02 0.025 0.03 0.035 0.04]; Tout = [311.32 317.72 ...

6 years ago | 0

Load more