Answered
How to animate a plot of raw EEG data?
I would modify the plotting code a little. Use fs to set the time Adjust xlim to give the perception of a 30 second scrolling...

5 years ago | 2

Answered
Dividing a Matrix with a column vector (Inside a Loop)
First, the syntax of your for loops is incorrect. Declare N and T before writing the for loops. See the examples on this page. ...

5 years ago | 0

Answered
How can i use fill3 to make a box
The issue appears to be that you have overwritten the fill3 function by naming your script/function fill3 as well. By doing so, ...

5 years ago | 0

Answered
How can I make the x and y labels start at the origin?
The issue is that you are specifying your first tick to be at 0. Image X and Y values come from the column and row indices of th...

5 years ago | 0

| accepted

Answered
Source code for robot simulation
See the information at the bottom of the webinar description (copied below). I suspect the first bullet contains the link you wa...

5 years ago | 0

| accepted

Answered
How to sort a table by one column
Try sortrows using this syntax tblB = sortrows(tblA,vars)

5 years ago | 5

| accepted

Answered
How to find unique values in a matrix without looping over rows
out = unique(A(:))

5 years ago | 0

Answered
syms x - Not enough input arguments.
Is it possible you have overwritten the digits function? >> which digits C:\Program Files\MATLAB\R2020a\toolbox\symbolic\symbo...

5 years ago | 2

| accepted

Answered
Channing color, marker size and type in a gscatter
Most of this can be done by taking advantage of the optional inputs to gscatter: gscatter(x,y,g,clr,sym,siz,doleg,xnam,ynam) H...

5 years ago | 0

| accepted

Answered
Convert multiple Table Variables from Cell to Double
I was able to get the following dummy example to work. % Create table of cells var = num2cell(rand(4,3)); var = cellfun(@num2...

5 years ago | 0

Answered
retrieve estimates after lme
The output of fitlme is a LinearMixedModel object. You can see the various properties here. You can access the coefficients usi...

5 years ago | 0

| accepted

Answered
plot frequency on vertical axis and wavelength on horizontal axis
See Ch 9 in MATLAB Onramp.

5 years ago | 0

Answered
Let A be a NxN matrix full of integers between 1 and N2.
See if randi will do what you need.

5 years ago | 0

Answered
Basic: calling a function
The error is telling you that greyimg does not exist. When you create the variable, you call it grayimg (with an a instead of e)...

5 years ago | 1

| accepted

Answered
How to extract the data using inpolygon function ?
Consult the inpolygon documentation page. You can probably do this without the for loop, as inpolygon can query a vector of poin...

5 years ago | 0

| accepted

Answered
How to use toogle button to switch on and off a push button?
If I understand correctly, you have a toggle button and a pushbutton. When you set the toggle button to 'on', you want the pushb...

5 years ago | 0

| accepted

Answered
Make a histogram from a table
Perhaps you want a bivariate histogram? If so, use histogram2. load Vals.mat histogram2(Vals(:,1),Vals(:,2)) xlabel('X'); yl...

5 years ago | 0

Answered
rror using matlab.ui.control.internal.model.AbstractNumericComponent/set.Value (line 111) 'Value' must be a double scalar.
One of two possible causes. SUMPERSON2 is not a double (see this question for an example) SUMPERSON2 is not a scalar. This err...

5 years ago | 0

Answered
how to define a global variable in a function file, such that all helper functions in this function file can use this variable?
I'd be careful of using global variables. See this page about nested functions, particularly the section about sharing variables...

5 years ago | 0

Answered
App designer Problem : error matlab.ui.control.internal.model.AbstractNumericComponent/set.Value (Line 111 ) 'Value' have to be double scalar
The result of subs is still symbolic. You need to convert it to a double. You can use the double function for that. app.resEdit...

5 years ago | 0

Answered
Adding two strings same row size
What are you trying to create? The issue is you are mixing data types in an array. I think the way would do this is to use a ta...

5 years ago | 0

Answered
Matrix dimensions must agree.
You haven't told us what y is. Also be aware that diff returns a vector with one less element than it started with. You perform...

5 years ago | 2

Answered
Invalid expression in function loading file
Same problem as in this recent post. See the answers provided there.

5 years ago | 0

Answered
The first function is performing the calculations but the second, when ran, won't graph the results
"Could it also be the way t is assigned?" Yes, that is the issue. Your variable t is a loop counter, meaning it only ever has a...

5 years ago | 0

Answered
How can I write ln in Matlab?
MATLAB uses log for natural log and log10 for log base 10. See documentation for log and log10.

5 years ago | 0

Answered
How to solve this issue :Error: File: FormatDataNew.m Line: 1 Column: 59 Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parenthese
This appears to be your function declaration line. If so, appear to have declared it using the calling syntax. You should replac...

5 years ago | 0

| accepted

Answered
Code Won't Animate in 2-D Path Tracing With Inverse Kinematics
Did you try opening the example file itself? openExample('robotics/TwoDInverseKinematicsExampleExample')

5 years ago | 0

| accepted

Answered
How can I draw a six graph together in one figure using plot and hold on?
Did you try to use hold? Also, your for loop syntax appears to be wrong. You also have several undefined variables. hold on fo...

5 years ago | 0

| accepted

Answered
Generated script from Signal Analyser app - How to plot spectrogram?
Look at the comment just above the call to pspectrum. With output arguments assigned, it does not create a spectrogram. However,...

5 years ago | 0

| accepted

Answered
Files have been removed
I can't say for sure, but they still seem to be there. https://www.mathworks.com/matlabcentral/fileexchange/86103-casforest ht...

5 years ago | 0

| accepted

Load more