A répondu
how can i plot this attached figure
Use plot3 and tiledlayout.

16 jours il y a | 0

| A accepté

A répondu
plot all dates to x-axis in bar graph
d = datetime(2017,1:20,1); x = rand(1,20); bar(d,x) xticks(d)

16 jours il y a | 0

| A accepté

A répondu
cleaning the outliers from a large data sets xlsx
If you process your data in a live script, consider interactively exploring different ways to detect and remove outliers using t...

16 jours il y a | 0

A répondu
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...

17 jours il y a | 0

A répondu
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...

18 jours il y a | 0

A répondu
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"); ...

19 jours il y a | 0

| A accepté

A répondu
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

22 jours il y a | 0

A répondu
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.

22 jours il y a | 0

A répondu
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); ...

22 jours il y a | 0

A répondu
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 ...

22 jours il y a | 0

A répondu
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...

22 jours il y a | 0

A répondu
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...

23 jours il y a | 2

| A accepté

A répondu
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 ...

23 jours il y a | 0

A répondu
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...

23 jours il y a | 0

A répondu
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...

23 jours il y a | 1

A répondu
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...

23 jours il y a | 0

| A accepté

A répondu
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...

23 jours il y a | 1

| A accepté

A répondu
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...

23 jours il y a | 1

A répondu
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...

23 jours il y a | 0

| A accepté

A répondu
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...

24 jours il y a | 0

A répondu
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)"; ...

25 jours il y a | 1

| A accepté

A répondu
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...

26 jours il y a | 1

A répondu
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 ...

29 jours il y a | 0

A répondu
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...

30 jours il y a | 0

| A accepté

A répondu
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...

environ un mois il y a | 1

A répondu
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...

environ un mois il y a | 0

A répondu
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...

environ un mois il y a | 1

| A accepté

A répondu
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...

environ un mois il y a | 0

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

environ un mois il y a | 0

A répondu
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...

environ un mois il y a | 0

Charger plus