Answered
why i can't not get my '' License Number or Activation Key ''
If you need a license or activation key, you will need to contact the department at your University that manages software. Typi...

5 days ago | 0

Answered
How to form a structure array variable?
See Steven Lord's reply here. Basically, something like this: Test{1}.a = [1; 2; 3]; Test{1}.b = [7; 3; 22]; Test{1}.c = [4; ...

5 days ago | 0

| accepted

Answered
Am I seeing a bug In LiveScript Output?
When I run your code in my computer, the resulting figure looks the same in a live script and the command window. I can also run...

5 days ago | 1

| accepted

Answered
fplot is not working
You are close. The error in line 3 is because f(x) is not the function name. Check in your workspace and you'll see that f is. ...

6 days ago | 0

Answered
drawing complex equation in 2D
You've already done all the hard work. Just define w first, and then use elementwise multiplication and division. You can use ab...

6 days ago | 0

Answered
Manually adjust labels on axis of plot (histogram)
You could change the X labels using the xticklabels function. I'll include a simple example of one way you could achieve this. ...

6 days ago | 0

Answered
Error While running a while loop (index exceeds number of array elements)
You create variable Vdiode so that it contains a single value, 1. Then in your while condition, you try to compare the second va...

6 days ago | 0

Answered
Remove first characters from a string
Perhaps try using cellfun in combination with extract? u{1,1}="ART1/TEACH"; u{2,1}="H0ME/SHOW" f = @(x) extractAfter(x,5);...

6 days ago | 0

Answered
How can I import multiple text files in my folder to Matlab?
See my reply in this post.

6 days ago | 0

Answered
Plot multiple conditions in same figure using for and if loop.
You might as well keep your data in a table. Coverting it to a cell array doesn't help you. Creating your plot can be done quit...

6 days ago | 0

| accepted

Answered
Split a cell that contains a string
Look into cellfun. This will apply a function to each cell in the cell array. Here's an example of one way of doing this. u{1,...

6 days ago | 0

| accepted

Answered
Index exceeds the number of array elements (6) (I´m doing the program for composite simpson 3/8 rule)
The error generally means you are trying to extract a value of an element of a vector that does not exist. Here, your vector is ...

6 days ago | 0

Answered
How to plot forecasted data with corresponding dates
You simply have your X-Data be datetimes. The code you shared should work. Can you confirm that datetime(A) creates dates? Here...

6 days ago | 0

Answered
What is wrong with my code?
Nothing. It's doing exactly what you've told it to do. You specified a stepsize of 0 (variable h). This causes t to be an empt...

6 days ago | 0

Answered
How to make a standalone app have the ability to open .fig files?
You could add a button that uses uigetfile in the callback code to allow the user to select the fig file. The next line of the c...

8 days ago | 0

| accepted

Answered
Can I create on-ramp like tutorials?
It is not currently possible to create your own on-ramp style coures. While not equivalent, one option might be to create a cour...

8 days ago | 0

| accepted

Answered
Need help in changing function from python to matlab
https://www.mathworks.com/videos/functions-and-subfunctions-97413.html

8 days ago | 0

Answered
How do I plot table with subplot?
I recommend going through MATLAB Onramp. Chapter 9 covers plotting, but it sounds like some of the other chapters would be helpf...

8 days ago | 0

Answered
Time vector to generate a sinusoid signal with 0.5 seconds duration , Fs =200
When using linspace, don't forget to account for 0. For example, how many numbers are there between 0 and 10? 11. You should a...

8 days ago | 0

| accepted

Answered
matlab syntax error "for" cannot run as it appears
The issue here is you have named your script 'for.m' but for is a reserved word indicating the start of a for loop. Give your s...

10 days ago | 0

Answered
Index in position 2 exceeds array bounds (must not exceed 8)
The issue I see is that you are assuming A is square (8x8), but it is not. It has dimensions 9x8. However, you are only using th...

11 days ago | 0

Answered
plotting a symbolic function
Sounds like a homework assignment, so I won't provide an answer, but take a look at the fplot function documentation page. One o...

11 days ago | 0

Answered
Error "too many inout arguments" using "diary"
Because there are spaces in your path, you need to enclose your file path+name in quotes. diary 'C:\Analise de Regressao\EXUnid...

11 days ago | 0

Answered
ECG data heart rate
Here's an example from the documentation of how to get data from physionet. Here's another example of getting the data directly ...

11 days ago | 0

Answered
how to run "ray tracing in conference room"example?
I assume you are referring to the ray tracing example shown on this page. If you scroll to the very bottom of the page, you will...

12 days ago | 0

Answered
convert epoch time to yyyyMMDDHHMMSS
Just as an example, here is one way to read it in. opts = detectImportOptions("HPP2.xlsx"); % Keep variable names as they are ...

13 days ago | 0

Answered
How do select values in one table which match those in another...
If you are unfamiliar with joining tables, I suggest using the Join Tables task in the live editor. This allows you to interacti...

14 days ago | 0

Answered
How can I Identify the P,Q,R,S and T waves in all 12 leads of ECG
If you would like an interactive way to try to detect peaks, I suggest using the Find Local Extrema task in the live editor. It ...

14 days ago | 0

Answered
convert epoch time to yyyyMMDDHHMMSS
Use datetime with the 'epochtime' specified. % Example: Return the number of days since January 1, 2000. T = datetime(X,'Conve...

14 days ago | 0

Load more