Answered
insert box flag in table in the app designer
See this answer: https://www.mathworks.com/matlabcentral/answers/1786510-how-to-add-checkbox-to-uitable-in-appdesigner-app

3 years ago | 1

Answered
Hello, I want to make function Runge-Kutta orde 4 with equation depend on time, but in MATLAB i get some error
You have not defined j, so in MATLAB, by default that letter is used to create complex numbers. As the error message states, you...

3 years ago | 2

| accepted

Answered
Hi, I try to run the code, when it runs the workspace is empty, even if i try to global, cant seem to show, even if i search for k, it cant detect the variable.iable.
You are running a function, which has its own workspace. You can read more about that here: https://www.mathworks.com/help/matla...

3 years ago | 0

Answered
Can I use roipoly on one image and get it to apply to multiple?
Yes. The output of roiploy is a binary mask. You can do whatever you'd like with that mask, including applying it to other image...

3 years ago | 1

| accepted

Answered
Problem with 2 plots, one in not showing and second one is showing up empty.
You need to include a markerstyle in your plot commands since you are plotting your data one point at a time. When you plot a si...

3 years ago | 0

Answered
How to remove the background from the attached image
You would probably benefit by going through the Image Processing Onramp. If you want a broader introduction, consider the Image...

3 years ago | 0

Answered
Index in position 1 is invalid. Array indices must be positive integers or logical values. Error in indexing (line 936)
Note how the example on the File Exchange page enters the function: Enter the function f(x,y): inline('x^2+y')

3 years ago | 1

| accepted

Answered
How do I use the fillmissing function in a table containing char elements? I am trying to use the 'previous' method.
Your syntax is fine. You might need to standardize your missing values first. For char arrays, missing is ' '. dblVar = [NaN;3;...

3 years ago | 0

Answered
for loop value array must be a row vector(?)
I didn't realize that either. It does appear to be documented. valArray — Create a column vector, index, from subsequent colum...

3 years ago | 0

| accepted

Answered
Smoothening of a curve
You can use the Smooth Data task in a live script to interactively adjust your smoothing settings to arrive at an acceptable res...

3 years ago | 0

Answered
what should i do for this error ?
Your second input to addRule does not appear to use the syntax expected by Numeric Rule descriptions in the addRule function in ...

3 years ago | 0

Answered
How plot line in geographic map with initial coordinates and azimuth?
I think geoplot is the correct function. You just need to calculate the end coordinates. If you have the initial location, arcle...

3 years ago | 1

| accepted

Answered
I don't understand this command : F=find(B>4)
That looks correct. What is it you are expecting? Since the output is returning a single index for each value found, it is usln...

3 years ago | 3

Answered
How to read the variable named sigma0 from multiple datas by using a loop ,where the datas are in h5 format?
MATLAB is case sensitive. Allfiles and allfiles are not the same thing. Also, the first input to h5read must be a single file n...

3 years ago | 0

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

3 years ago | 0

| accepted

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 1

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

| accepted

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

3 years ago | 1

| accepted

Answered
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

3 years ago | 0

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

3 years ago | 0

| accepted

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

3 years ago | 1

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

3 years ago | 0

Load more