Respondida
How to separate data sets/clusters that got saved in a single data file?
kmeans clustering algorithm? data = [9 77 19464 410575406 13 15 73 18446 410575406 11 17 74 18704 410575406 12 12 77 19467 4...

11 días hace | 0

| aceptada

Respondida
Often audioread() returns a vector of 2 dimension and a vector of sampling rate, whats the point of returning that 2D vector?which are my samples actually?
audioread returns the audio data as an m-by-n matrix, where m is the number of audio samples read and n is the number of audio c...

11 días hace | 0

Respondida
Next/prev push button
Perhaps this page is helpful? https://www.mathworks.com/help/matlab/creating_guis/creating-multiwindow-apps-in-app-designer.htm...

11 días hace | 0

Respondida
Why does my histogram go out of its frame?
I would recommend not using imhist to create your histogram. Instead, use histogram(I) or bar(counts) to visualize. B1 = imread...

11 días hace | 0

Respondida
How to plot separately fft plot and spectrogram?
Add the command figure before you create your second plot to force a new figure window.

11 días hace | 0

Respondida
Can anyone help me run this code to detect the R peaks in my ecg signal and then modify it to obtain the bpm?
I'd suggest doing this interactively in a live script using the Find Local Extrema live task. There, you can interactively adjus...

11 días hace | 0

Respondida
Different histogram output from same image
Without your images to test with, it's hard to say for certain. However, the only difference in your code is the following two l...

11 días hace | 1

Respondida
In order to automate the fitlm command I need to select numerical data from a matrix, and matching variable names from another character array. I get an error on fitlm command
You haven't share what the values of OriColumns and i are, but either way, you have a character array. It is no longer an execut...

11 días hace | 0

Respondida
How to progress from one user input to the next?
An error dialog does not terminate code execution. You might consider using error instead. If you prefer the error appearing i...

12 días hace | 0

Respondida
Error: Index in position 2 exceeds array bounds.
The problem is that your variable this_cell does not appear to have the number of columns that your code expects it to have. So ...

12 días hace | 0

Respondida
Change Time and Time Format in Timetable
You can just create a datetime with your start time, and then add your record time to it. Time = seconds(0:10:100)'; Data = ra...

12 días hace | 0

| aceptada

Respondida
Simulink Onramp - Thermostat - Task 5
I think the issue is that you have connected more things than you should at this point. Try disconnecting the House block from y...

13 días hace | 1

| aceptada

Respondida
Why does my histogram go out of its frame?
I'm able to reproduce as well. I suggest reporting this here: https://www.mathworks.com/support/contact_us.html

14 días hace | 0

Respondida
Index exceeds the number of array elements (0).
If your file contains the same spaces as what you show in your description of the data, then the issue is that not every line co...

15 días hace | 0

| aceptada

Respondida
if else if statement problem
The following conditional is seen as 'false' by the elseif statement. elseif PAs==0:10 This will check PAs against every numbe...

15 días hace | 1

Respondida
All_cels = sum(xxCels); Error Message Trouble Shooting
We can't see enough of your code to explain why, but the error message means that your variable xxCells does not exist. It appea...

16 días hace | 0

Respondida
Can't switch between the contents of two different ListBoxes
I think the issue is that you have loaded your filtered data to the structure app.ws_filt, yet in your plotting code, you are tr...

16 días hace | 0

| aceptada

Respondida
Why do I get the error"Training using trainNetwork failed. Duplicate table variable name: 'input'"
I think this is because you are incorrectly using the same datastore (imdsTraingray?) for your splitEachLabel commands. I think ...

16 días hace | 0

Respondida
Hello, kindly help. I am getting the following error: Error using odearguments @(T,X)STATEEQ(T,X,U,TU) must return a column vector. Error in Descent (line 17)
Your function stateEq returns a variable dx. The error is telling you it must be a colum vector. The most likely solution is to ...

16 días hace | 0

Respondida
How to plot 5D in MATLAB
Your first 3 dimensions can be visualized on a cartesian axes (X,Y,Z). You'll need to get creative to view higher dimensions. Fo...

17 días hace | 1

| aceptada

Respondida
Update bar chart UIAxes from EditField value without deleting older plot
The way I would approach this in App Designer is to indeed recreate the entire plot each time. I would create an app property to...

17 días hace | 0

| aceptada

Respondida
Why does my sin graph look like a triangle?
Your sin wave is plotted just fine. However, it looks like a straight line because the magnitude of your second plot (in red) is...

18 días hace | 0

Respondida
Add all values from loop to an array
I would use a filedatastore to load all the data into a single variable. You can see an example of how to use one to do this in ...

18 días hace | 0

Respondida
Variable output as "1x0 empty double row vector" halfway through the program after previous iterations in the for loop has normal output values for the same variables.
We can't run your code to explore why specifically, but my guess is that they are empty because findpeaks did not identify any p...

18 días hace | 0

Respondida
Can someone please check my code?
I've edited your code to make the error more visible. Can you now see why w.*t.*z is giving your an error that the arrays cont...

19 días hace | 0

Respondida
Produce plots depending on the conditions that are listed within the code
Inspect your variable values to see if they are what you are expecting. The reason your last 2 plots are not appearing is becaus...

19 días hace | 0

Respondida
How do I check how long my license is valid for?
You should be able to find this information in your MathWorks account profile. You may need to navigate into a license if you do...

19 días hace | 0

| aceptada

Respondida
MATLAB grader timed quiz in using Canvas
It is not currently possible to use MATLAB Grader in a quiz in Canvas. It is also not currently possible to impose a time limit...

19 días hace | 0

Respondida
MATLAB - enroll users in course
See this Answer: https://www.mathworks.com/matlabcentral/answers/1668509-why-can-t-students-receive-email-notifications-for-cour...

19 días hace | 0

Respondida
How to convert a timestamp to be able to plot with the times listed?
Convert your timestamps to datetimes and then just plot with your datetimes as your x values. T = ["2/7/2023 1:12:00 PM","2/7/...

20 días hace | 0

Cargar más