Answered
App designer user input
Here's a couple answers I recalled that might be helpful https://www.mathworks.com/matlabcentral/answers/422172-app-designer-li...

4 years ago | 0

| accepted

Answered
how to filter data based on one value in a column?
use a logical array (Ch 12 in MATLAB Onramp). A = rand(10,3); A(:,4) = randi(4,10,1) idx = A(:,4)==3; B = A(idx,:)

4 years ago | 1

Answered
Command save writes to a nonreadable text file
The save command as written is creating a mat file. To create a text file, use the '-ascii' flag. x = 2; y = x^5 save result...

4 years ago | 0

Answered
Can I use push button to open another GUI in app designer, how?
See the Create Multiwindow Apps in App Designer page.

4 years ago | 1

| accepted

Answered
Locate values in time from signal Peaks
Use the following syntax for findpeaks [pks,locs] = findpeaks(data) I can't comment on how to get the corresponding time from ...

4 years ago | 0

| accepted

Answered
How to set axis in more details?
See this answer. You can find a list of the properties here: https://www.mathworks.com/help/matlab/ref/matlab.graphics.axis.axes...

4 years ago | 0

| accepted

Answered
why do I get the error "Error using atan2 Inputs must be real"
As the error states, you are trying to use atan2 on complex data, which is not allowed. The issue starts with how x is calculat...

4 years ago | 0

Answered
Matlab mobile and Drive storage issue for Academic License
Seeing that today in the 1st of November, the most likely explanation is that your license expired at the end of October. Is the...

4 years ago | 0

| accepted

Answered
this post is regarding circuit simulation onramp course module
A potential workaround that was suggested to me was to try submitting twice. If that does not do it, please consider contacting ...

4 years ago | 3

| accepted

Answered
Time format/Repeating Times in a table
Covert your times to strings (keeping the leading zeros), and then use datetime to convert.. T = 0830; T = sprintf('%04d',T) ...

4 years ago | 0

Answered
How to create a function, that outputs Weekdays on given date?
Convert the date to a datetime, and use the day function to return the day name. D = datetime(2021,06,26); out = day(D,'name')...

4 years ago | 0

Answered
Matlab 2020b "Simulink Onramp Failed to launch. Pattern not found"
Consider reinstalling Simulink. If that does not fix the problem, please contact support.

4 years ago | 0

| accepted

Answered
Pass variable to .m file from app designer
This will never work as written. The clear inside the m-file, whether a script or function, will remove any variables, including...

4 years ago | 0

Answered
what is summarised?
The columns of the array resulting from this concatenation command [subCarbon; prodCarbon; metCarb(cofMetIDs(ismember(cofMetIDs...

4 years ago | 0

| accepted

Answered
Use retime to sum over a timeinterval, but skip time intervals where data doesn't exist
To me, it sounds like you may want to use groupsummary instead of retime. Retime is doing exactly what it was designed to do - c...

4 years ago | 1

| accepted

Answered
PROBLEM with SCATTER using DATA CONTROL OF COLOR
The color in your first plot is controlled by the figure colororder property, and not by A. Basically, each series is plotted us...

5 years ago | 1

| accepted

Answered
csv file split error ","
It looks to me like the issue is that your column offset is 37. The column offset indicates the number of columns to skip befor...

5 years ago | 1

| accepted

Answered
How to combine multiple plots in one graph?
The code looks like it should add all three plots on the same figure, but we don't know what my_lorenz is doing. % Create data ...

5 years ago | 0

| accepted

Answered
How do i get the filename of a dicom file ? I want to open dicom file with study description -"CSP"
That appears to be correct. That is a series of images (22 images). You can find them here: fullfile(matlabroot,'toolbox/images...

5 years ago | 0

Answered
Trained a model and optimization parameters using "fitcauto" but don't know how to use trained model and optimization on new data.
You do not use Mdl or Results to train a new model. To do that, you would need to identify what model was identified as best, an...

5 years ago | 0

Answered
Adding Event Markers to Imported EEG Data - Stacked Plot
I guess it depends on what you want your markers to be, and how you want to select them. You can manually annotate your plot usi...

5 years ago | 0

| accepted

Answered
3d plot from a x y z colum .txt file
Great starting place is MATLAB Onramp. It covers the besics of using MATLAB, including importing data and getting help. It doesn...

5 years ago | 0

Answered
Merge multiple XLSX files with one header mismatch
Consider manually naming your variables. Then, as long as you have the same number of columns in each sheet, you are able to imp...

5 years ago | 1

| accepted

Answered
how to find the first date of each month between years?
dates = datetime(2000,1,1):calmonths(1):datetime(2008,12,1)

5 years ago | 1

| accepted

Answered
Can't get simulink Onramp Certificate
Certificates are avaiable in the course page online: https://matlabacademy.mathworks.com/details/simulink-onramp/simulink

5 years ago | 2

Answered
Help me understand matlab simulation!
Consider checking out the Getting Started with Wireless Communication page.

5 years ago | 0

Answered
How to correct X and Y matrix to plot a curve that start at (0,0) as a original point?
MATLAB can only plot the points you give it. If you want it to start at (0,0), then include those points in your X and Y data. ...

5 years ago | 0

| accepted

Answered
Copy data from rows to columns in another table
Assuming your original data is in a MATLAB table, the 'unstack' function will get you most of the way there. There would just be...

5 years ago | 1

| accepted

Answered
Producing the same-sized box plots for subfigures
Since your y-axis labels are the same for all plots, consider using a tiled layout. I also use the newer boxchart function, whic...

5 years ago | 0

Answered
Grouping 2d data with different bins for each dimension.
An image axis has the origin and the top left while a cartesian axis has the origin at the bottom left. Counsider using histogr...

5 years ago | 1

| accepted

Load more