Answered
Improving readability of Matlab graph
Method 1: remove some X|YTickLabels Add these lines to then end of your code after setting the axis limits and axis ticks. The...

6 years ago | 0

| accepted

Answered
I am not sure how to do this coding, can you please help!!
Since this is your assignment, I'll give you hints. I can give more hints if needed but you'll need to leave a comment showing ...

6 years ago | 0

| accepted

Answered
imuSensor - why is the acceleration negated, when calculating the total acceleration?
Acceleration due to gravity is always negative. For example, if a falling object is affected only by gravity, its acceleration ...

6 years ago | 0

Answered
Where are the default font settings for sgtitle?
sgtitle doesn't appear to use the default fontsize properties I tested: DefaultAxesFontSize, DefaultTextFontSize, DefaultUicontr...

6 years ago | 1

Answered
select 20 percent between two values
Use y = randsample(n,k) to select k random elements from a vector 1:n. % recordingList is an array that contains all of your re...

6 years ago | 0

Answered
How to change file extension via matlab?
This shows how to List all files in a given directory with the extension .out Copy the file and rename the extention .txt De...

6 years ago | 7

| accepted

Answered
Changing Variable from logical to double
"How change Fx type from logical to double" FxDlb = double(Fx); alternatively, FxDlb = Fx * 1; % or FxDlb = Fx + 0;

6 years ago | 0

| accepted

Answered
Trying to concentrate a cell containing tables
Summary of comments under the question: 1) Remove the datetime column from each table. T_noDT = cellfun(@(T){T(:,2:end)}, c) ...

6 years ago | 0

| accepted

Answered
Error when using (plotting) one m file data into another m file.
(Comment copied to answers section). There could be several problems and if the same variable name is used in multiple scripts...

6 years ago | 0

Answered
How can I clear stuck help popups?
Note: This answer does not address the problem of stuck function hints and other pop-up messages internal to Matlab. It address...

6 years ago | 1

Answered
How can i plot a 3D waterfall ?
What does your code look like that produces the 2D plot? If the entire matrix is the 1st and only input to waterfall(), it shou...

6 years ago | 1

| accepted

Answered
alternate to using "find" to determine indices?
"Is there a way to determine their indices using logical indexing...?" Yes, and logical indexing is usually a better way to ind...

6 years ago | 0

| accepted

Answered
put the fit messenge on text box
Assuming your textbox handle is handles.textbox, and c is the cfit object, cText = evalc('c'); handles.textbox.Max = 2; % t...

6 years ago | 1

| accepted

Answered
How to make this truck move across the bridge in an animation?
First of all, nice lorry (slow-clap). Here's how to make it drive forward along the x axis. You could add a Y-component of m...

6 years ago | 1

| accepted

Answered
varfun for a cell array?
I didn't quite get the last part of your description but this should get you started. If you have trouble completing your goal,...

6 years ago | 0

| accepted

Answered
Modify a plot in a for loop
The idea is to collect all of the line object handles. I've also restructured your code; see the inline comments for details. ...

6 years ago | 1

| accepted

Answered
How to use bar function?
See the Display Groups of Bars example in the documentation. If you have any problems setting that up, provide your data and co...

6 years ago | 1

| accepted

Answered
How to check for repeated values in a matrix?
If you're working with integers, check for repeated values using unique() repeatsTF = numel(a) == numel(unique(a)); However, ...

6 years ago | 1

| accepted

Answered
Input Argument type double
The update variable in your code is equal to 1 and is entered as the 2nd input to the clusterer but it doesn't fulfill the requi...

6 years ago | 0

| accepted

Answered
Using the drop down box in app designer
Problems: 1. You've got 3 variables named "value" and they all have the same value which is equal to the last of those variable...

6 years ago | 0

Answered
Insufficient number of outputs from right hand side of equal sign to satisfy assignment.
To address your question, an anonymous function only returns a single output. So, x = PID(. . .) % This is fine, it retu...

6 years ago | 0

Answered
Help with 2D plot from a matrix
Continuing from the comments under the question. Using imagesc, you can change the tick labels using set(gca, 'XTick', 1:3, ...

6 years ago | 0

Answered
Representing certain range of X axis using a single tick in MATLAB plot
Two options X = [1,2,3,4,5,6,7]; Y = [10,10,10,10,20,30,40]; xIdx = [1,5,6,7]; bar(X(xIdx), Y(xIdx)) ax = gca(); ax.XT...

6 years ago | 1

| accepted

Answered
Not sure how to fix my matrix dimension problem
t is a 1x41 vector; wd and zeta are both 1x7 vectors. You can't do pairwise multiplication with two arrays of different size. ...

6 years ago | 1

Answered
How can I sort an array to follow a path?
I don't know much about reading in stl files but you might want to look into options that would read in the points in different ...

6 years ago | 1

| accepted

Answered
Counting characters in a file
Here's a demo to count the instances of a character in a text file. This demo searches for a space character ' ' and then repl...

6 years ago | 0

| accepted

Answered
Stop plotting on MATLAB
The switch/case in your question does the same thing no matter what case was selected so why have it at all? The reason you're ...

6 years ago | 0

Answered
Plotting trendline and normally distributed numbers
"I need to change my variable e in a way that it represents normally distributed numbers with a mean 0 and a standard deviation ...

6 years ago | 0

Answered
Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.
The transformation matrix produces a 3x3 matrix and you're attempting to store the 3x3 matrix into a single 1x1 space in A(i). ...

6 years ago | 0

Answered
How to use bootstrap technique among multiple data sets by choosing data sets randomly
"... i want to use all the 10 sections data i.e. EH1 to EH10 in bootsrtp function for 500 iterations to get Zfinal." Why split ...

6 years ago | 0

| accepted

Load more