Answered
data sorting for finding average and standard deviation
I would look into using groupsummary. I'll let you worry about getting the output formatted the way you want, but here's how I w...

3 years ago | 0

Answered
I am unable to label the y axis of a graph.
MATLAB does not contain an ilabel function. It looks like you want to use ylabel instead. A = xlsread("GM_Time_History.xlsx"); ...

3 years ago | 0

| accepted

Answered
Set initial condition to time different to 0
See this answer: https://www.mathworks.com/matlabcentral/answers/431702-ode45-initial-conditions-are-not-at-the-same-point

3 years ago | 0

Answered
plotting data in the table
See Ch 9 of MATLAB Onramp. You may find some of the other chapters helpful for importing your data and creating variables.

3 years ago | 0

Answered
Error with parentheses when doing semilogy
You have a syntax error in your inputs to semilogy. Did you mean to use a colon instead of a semicolon? semilogy(0:nn-2, err); ...

3 years ago | 0

Answered
Hi. I have different data types (text and numeric) within the array range that I read from the input table. How can I avoid the error of using table2array and cell2mat?
Arrays and matrices can only contain data of the same data type. You need to convert all your data to the same data type before ...

3 years ago | 0

Answered
How to take pictures from webcam
After setting up your webcam, use snapshot. See the Acquire Images from Webcams page for a demonstration of the steps to follow...

3 years ago | 0

Answered
How to use dbscan for durations ?
As with your earlier question, convert your durations to numeric values using minutes. You can later convert it back to duration...

3 years ago | 2

| accepted

Answered
Storing for loop using either zeros or ones?
You overwrite your variable vECI in each loop, leaving you with just the final values. If you want to save the value from every ...

3 years ago | 0

Answered
I am trying to create a button in GUIDE that calculates the impedance modulo, but it gives me an error. Any help would be much appreciated!
Um is an array of structures. This is likely the source of your error. To use "/", the arguments must be numeric, char, or logic...

3 years ago | 0

Answered
Get min from group(s) of data within an array
Use groupsummary. If you are really new to MATLAB, consider using the Compute by Group task inside a live script. Since you hav...

3 years ago | 1

Answered
how to add a number to the beginning of a filename
Not knowing what all your variables, are, I think I would simplify to this. for k = 1:length(S) fpo = fullfile(locationfol...

3 years ago | 0

| accepted

Answered
How to cluster data in a histogram ?
You need to define the criteria for what makes a cluster and what makes an outlier. Once you know how you will define that, then...

3 years ago | 1

| accepted

Answered
Extracting text from a video
You'll need to use OCR (optical character recognition). See this page: https://www.mathworks.com/help/vision/ug/recognize-text-u...

3 years ago | 1

Answered
Merge 3 .FIG figures into one graph
Your code works for me (a modified to also add fig3 to fig2), and does what I would expect. If this is not the desired result, p...

3 years ago | 0

| accepted

Answered
Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.
The result of your function ClConc is a 5x5 matrix. The error is because you are trying to assign it to a single row of N. You h...

3 years ago | 0

Answered
Adding UITable row data which consists of numbers and strings
I'd suggest using cell2table to turn your cell array into a table. app.UITable.Data = cell2table({0,0,0,"Consumption (kWh)"; ...

3 years ago | 1

| accepted

Answered
How fix the error as: Unrecognized function or variable 'getAnsysInfo'?
Try adding the path to your MATLAB Path. If you are doing this in your startup.m file, see here. Otherwise, you can edit the pat...

3 years ago | 1

Answered
How to write a function that imports data from an xlsx file
Why write your own function? In MATLAB, you would use readmatrix or readtable. Once your data is loaded, use the save function ...

3 years ago | 0

Answered
How do I change individual bar colors on "grouped" bar graph?
The colors come from the colororder. One option is to specify the color order to be what you want. Another option is to set the...

3 years ago | 0

| accepted

Answered
How to convert rows to logical
I'm not aware of a special function for this, but perhaps a more readable way would be this? A = 1:10; r = [2 7 8]; Afilter...

3 years ago | 1

Answered
Run to here disappeared in 2022b?
"Run to here" is still available, but maybe accessed differently? I was able to see this option two ways. 1. Right click on a l...

3 years ago | 0

Answered
Second plot overwrites first plot in function script
I think this has to do with how live scripts handle figures. The fix is to remove the (1) and (2) after the figure commands in y...

3 years ago | 1

| accepted

Answered
Not Enough input argument for image
I could be more certain if you shared the data you used to call your function, but here is the example I tested. f = imread('pe...

3 years ago | 0

Answered
Can you help me download some matlab toolboxes?
Use the Add-Ons explorer in MATLAB to get and manage toolboxes included on your license.

3 years ago | 0

Answered
Lamps in Matlab App Desinger
Your code looks fine to me. A simple test app also works for me. Note that you want your lamp to turn green when it is turned on...

3 years ago | 0

Answered
Error "Index in position 2 is invalid."
The error is because your second index, the column index for gmat, which is gdata(2,i), is 0. That is not a valid index. Indices...

3 years ago | 0

Answered
Access ui edit field values and sharing them in different functions
I would suggest developing your app in app designer. Once there, see this page on how to share data within your app. https://ww...

3 years ago | 0

Answered
How to analyse hundreads of excel files (milliseconds data) with Matlab with timeseries?
I would use a filedatastore to load all the data into a single variable (doesn't matter if they are csv or xlsx). You can see an...

3 years ago | 1

| accepted

Answered
finding a value from a point in a table
So you want to use your own indexing scheme to extract data from your array. It's possible, but is going to be a bit convoluted....

3 years ago | 1

| accepted

Load more