Respondida
how to fix camera error on matlab
Does this happen the first time you try to connect to your camera, or when you try to rerun your code? The issue is something i...

casi 4 años hace | 0

Respondida
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...

casi 4 años hace | 0

Respondida
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"); ...

casi 4 años hace | 0

| aceptada

Respondida
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

casi 4 años hace | 0

Respondida
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.

casi 4 años hace | 0

Respondida
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); ...

casi 4 años hace | 0

Respondida
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 ...

casi 4 años hace | 0

Respondida
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...

casi 4 años hace | 0

Respondida
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...

casi 4 años hace | 2

| aceptada

Respondida
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 ...

casi 4 años hace | 0

Respondida
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...

casi 4 años hace | 0

Respondida
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...

casi 4 años hace | 1

Respondida
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...

casi 4 años hace | 0

| aceptada

Respondida
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...

casi 4 años hace | 1

| aceptada

Respondida
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...

casi 4 años hace | 1

Respondida
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...

casi 4 años hace | 0

| aceptada

Respondida
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...

casi 4 años hace | 0

Respondida
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)"; ...

casi 4 años hace | 1

| aceptada

Respondida
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...

casi 4 años hace | 1

Respondida
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 ...

casi 4 años hace | 0

Respondida
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...

casi 4 años hace | 0

| aceptada

Respondida
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...

casi 4 años hace | 1

Respondida
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...

casi 4 años hace | 0

Respondida
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...

casi 4 años hace | 1

| aceptada

Respondida
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...

casi 4 años hace | 0

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

casi 4 años hace | 0

Respondida
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...

casi 4 años hace | 0

Respondida
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...

casi 4 años hace | 0

Respondida
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...

casi 4 años hace | 0

Respondida
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...

casi 4 años hace | 1

| aceptada

Cargar más