Answered
How can I extract unique pairs of matrix in reverse order?
If you use a table, you can use join. A = [ 1 1 2 2 1 4 3 2 1 4 2 3 5 ...

5 years ago | 0

Answered
Connecting Simscape Electrical Blocks to Simulink
You likely need to use either a PS-Simulink block or a Simulink-PS block. If you haven't done so yet, consider going through Si...

5 years ago | 0

Answered
If Else simple calculation not working
Your code works for me, with one modification - using Vals.Value instead of Vals.Values. One thing to be aware of, Your code wo...

5 years ago | 0

Answered
Table display issue in live scripts ( R2021a version )
See this answer

5 years ago | 0

Answered
how to run 2 while loops in one script
It seems like this could be written in a single while loop with an if statement that only executes the code corresponding to the...

5 years ago | 0

| accepted

Answered
why my constant scope value is circle?
Look at your sampling time of your constant. By default, it is inf. This means it is sampled once at 0, and never again. Chan...

5 years ago | 0

Answered
How to solve equivalent impedance
MATLAB Onramp, in particular Chs 1-6 and Ch 9.

5 years ago | 0

Answered
Date & Time import
data = readtable('vivekData.txt') data.Var1.Format = 'yyyy-MM-dd HH:mm:ss'

5 years ago | 0

| accepted

Answered
Value for a certain array is not computed correctly
Either your code is wrong, or you have incorrectly interpreted your algorithm. From lines 7-8, 1st Depth is column B, 2nd Depth...

5 years ago | 0

Answered
Replace numbers in a matrix
Create your vector of numbers using square brackets, and assign it to column 4 the same way you did for the 3rd column. Hint: 1...

5 years ago | 1

| accepted

Answered
How to Colour regions in a gscatter?
This is actually from the Machine Learning Onramp, not MATLAB Onramp. See Chapter 2.5. The one you show is specifically in the b...

5 years ago | 0

Answered
Legend does not match with the bar chart in MATLAB
I think the issue is that you are plotting your bars twice. Your legend applies to the data in the order it was plotted, so the ...

5 years ago | 0

| accepted

Answered
Timetables inside table are not updating correctly
I think the issue is that you are treating tables like cells. In a cell, each can be a variable. However, in a table, an entire ...

5 years ago | 0

| accepted

Answered
MATLAB app designer version error 2019b vs 2017.
Grid Layout was not available in 2017. You could try using the 'Save Copy As' option. Select 'Save as type' and choose the vers...

5 years ago | 0

| accepted

Answered
Trapz not referred to x-axis
If you want to use trapz, use it to calculate the area below both lines, and then subtract them to find the area between the lin...

5 years ago | 0

| accepted

Answered
I have a time series which my sensors recorded them in this format: 10.02.42.415 instead of this: 10:02:42.415 ! How can I fix my entire array (which is 465637 samples!)??
The simplest way I can think of is to use datetime. Since you have no date associated with the time, sutract off today's date to...

5 years ago | 1

| accepted

Answered
plot y limit troubles
plot(w, min(50,t))

5 years ago | 0

Answered
Unauthorized Linked problems in MATLAB Grader activity on LMS Moodle
Your LMS knows what problem to load based on the LTI key and the resource_link_id the platform assigns to the LTI problem. When ...

5 years ago | 1

| accepted

Answered
How can I divide the colorbar into just two ranges?
The number of colors is controled by your colormap. However, MATLAB spreads the colormap evenly over the range of data plotted. ...

5 years ago | 0

Answered
Migration from GUDE to App Designer
@G A provided this answer in a comment above: https://uk.mathworks.com/matlabcentral/answers/479426-migrated-guide-to-app-desig...

5 years ago | 0

Answered
Accessing a full PDF of tasks and answers of ONRAMP
While MATLAB Onramp does have course files you can download, it does not contain exactly what you are asking for. It consists of...

5 years ago | 2

| accepted

Answered
How to fix the waterfall plot curtain along the y-axis bug?
There appears to be an issue when plotting using very small step sizes in X. If you create the waterfall plot without specifying...

5 years ago | 0

Answered
Could someone please explain what is wrong in my function?
You have not defined r and c. You have three options that I see. Pass in the single value to your function: Sign = signum (B...

5 years ago | 1

| accepted

Answered
Check if string contains a set of numbers
It would be helpful to have more data to test with, but my approach would probably be to convert the cell of names to a string a...

5 years ago | 1

| accepted

Answered
exit from a nested while loop after having set its index to a given value
We don't have enough data to run your example. However, the error message has to do with how you are indexing height. It would a...

5 years ago | 1

| accepted

Answered
Error when combine tables vertically under some circumstances
I've edited your post to run your data and display the underlying issue. You use char arrays to create posture. To combine char...

5 years ago | 1

| accepted

Answered
How to plot coupling functions?
If I don't use fplot, I do get a more descriptive error message. Based on the code you have shared, you are using your function ...

5 years ago | 0

Answered
How do I change my code to stop a for loop simply replacing rows of outputs in a uitable?
Uitables do not have an append mode. When you specify data, you either need to specify the specific row, or reload all the data....

5 years ago | 0

| accepted

Answered
dynamic title in app.UIAxes won't work
Your function is working, but it is returning a 1x3 cell array. Title does not accept a cell array of cells. When building your...

5 years ago | 1

| accepted

Answered
Import .csv with missing delimiters and values
I am able to use readtable to load the data you have shared without any trouble. It does not put the data into a cell, and it fi...

5 years ago | 1

| accepted

Load more