Answered
Extracting values from string using regexp
I'm not sure how to extract zero values for patterns that don't appear. I did want to point out that MATLAB has introduced new p...

6 years ago | 1

| accepted

Answered
How to do a loop in a text file until an empty line is found
Look at the example on the documentation page for fgetl. Assuming you are doing this in a loop (for or while, doesn't matter), y...

6 years ago | 0

| accepted

Answered
How can I fix this problem ? 'Unrecognized function or variable 'X'' I get this message even when I type N and M which are constants.
Did you run your function? You have to call it. % Define function inputs x0 = 1; t0 = 0; t = 1; T = 10; N = 10; M = 100; ...

6 years ago | 0

| accepted

Answered
how to find the raw mean value in matrix ?
The documentation is your friend. Look at some of the optional inputs for mean and max. In particular, look for options like 'di...

6 years ago | 0

| accepted

Answered
Is it possible to suppress the default error message of the function assessVariableEqual?
There is currently no way to suppress the default feedback when using the built-in assessment function assessVariableEqual. The ...

6 years ago | 2

| accepted

Answered
Unable to find a match for a MATLAB and Simulink Campus-Wide License based on the email address !
You can find some instructions here. Make sure you are using your school issued email account. If you still don't have any luck,...

6 years ago | 0

Answered
Matlab Onramp Videos can't be played
Take a look through this page.

6 years ago | 0

Answered
Plotting grid of square points inside a circle of given radius
I'd create your grid of points, define the points of your circle, then use inpolygon to identify just the points that are inside...

6 years ago | 1

| accepted

Answered
problem at 50Hz!
As was described a couple times in your previous post, changing tspan does not change the time step interval MATLAB uses to solv...

6 years ago | 2

Answered
How to Create loop
See Ch 10 of MATLAB Onramp. In particular, lesson 3. However, if you are new to programming, I suggest going through the entire ...

6 years ago | 1

| accepted

Answered
How to select specific data from one matrix and place it in another
See Ch 5 of MATLAB Onramp.

6 years ago | 0

Answered
How can I spread the plot points out?
Usually spreading points out means reducing the range of values on the X-Axis. Look into the xlim function.

6 years ago | 0

Answered
Plotting 3 cycles of a periodic signal
No need to create the same values 3 times. Your code can be simplified to the following. You also don't need nearly as many poin...

6 years ago | 0

Answered
Matlab Live Script Format Problem
This is likely because your value does not have an exact decimal equivalent. Since the result is symbolic, you are getting the e...

6 years ago | 2

Answered
Can somebody help with curve fitting app custom equation problem please?
My suspicion is that your equation is overly complex for the data, so MATLAB is having a hard time guessing the right starting p...

6 years ago | 0

| accepted

Answered
Temperature distribution contour plot
In order to create a contour plot, you will need to have a temperature measurement for each (x,y) permutation. This means T need...

6 years ago | 0

| accepted

Answered
How can I save date that is overwritten on each loop?
Create your mat file name dynamically. save(['Data' num2str(i) '.mat'],'T'); % me trying to save the data on each h but failing...

6 years ago | 1

Answered
How do i extract points from roi using roipoly?
Assign the output of roipoly to a variable. See the syntax section of the documentation page. You probably want the following sy...

6 years ago | 0

| accepted

Answered
how to solve this error "Matrix dimensions must agree".
i am trying to find the pulse transit time by subtracting the ppg peaks from the ecg peaks My suspicion is that you have a di...

6 years ago | 0

Answered
"Index in position 1 exceeds array bounds (must not exceed 1)." error using spline.
I suspect the issue is your indexing of your variable x is the issue. I don't think it has a 2nd row, so your call to x(2,:) res...

6 years ago | 1

| accepted

Answered
Is it possible to control the appearance of the title bar and the title bar icon of figure windows in MATLAB?
Starting with R2020b, you can now specify custom icons for UI figure windows and toolbar push and toggle tools (in App Designer)...

6 years ago | 5

Answered
How can I change the icon of my AppDesigner-produced GUIs?
Starting with R2020b, you can now specify custom icons for UI figure windows and toolbar push and toggle tools. See the release ...

6 years ago | 0

| accepted

Answered
How do I find a specific point in my plot?
Of course, the point you are probably looking for is the p wave. There are posts about that, too.

6 years ago | 0

Answered
MATLAB Curve fitting with custom equation
If you have the curve fitting toolbox, I suggest using fittype and fit. fittype will allow you to define a custom equation to ...

6 years ago | 4

| accepted

Answered
2D graph based on X and Y coordinates
Sounds like a tiled histogram might be what you are looking for. If position is lat/lon, maybe a geodensityplot?

6 years ago | 0

| accepted

Answered
I want to randomly plot battleships on my board, but no outputs are present?
You are taking two approaches simultaneously in your code. You create a plot where I suspsect you want to visualize the ships, b...

6 years ago | 0

| accepted

Answered
Is there a way in matlab where I can delete the first row of 50 excel files in a folder?
You would take the code for a single file, and put it inside a for loop that iterates through every file in the folder. You can ...

6 years ago | 0

| accepted

Answered
How to put all input into one dialog box?
Take a look at the examples on the inputdlg documentation page.

6 years ago | 0

Load more