Answered
3d point cloud in a UIAxes element in app designer
You can use plot3() or scatter3() . function ButtonPushed(app, event) x = 1:10; y = 1:10; ...

7 years ago | 0

| accepted

Answered
App Designer not changing Edit Field Value after button is pushed
Try this function ButtonPushed(app, event) app.StatusField.Value = 'STATUS: Processing...'; drawnow() % <---- tell matlab to...

7 years ago | 5

| accepted

Answered
extracting information from a boxplot saved as fig
There's no way to access the raw data that were used to create the boxplots unless those values were intentionally saved somewhe...

7 years ago | 0

Answered
How do I plot even spaced but uneven value increment graphs?
To plot with log axes Re = [10 50 100 200 500]; Rmin =[0.009 0.01 0.014 0.023 0.029]; plot(Re,Rmin); set(gca, 'XScale', '...

7 years ago | 0

| accepted

Answered
Error in using try catch
In general you should avoid using clear all (see link and image below). You're throwing the baby out with the bathwater. If ...

7 years ago | 2

| accepted

Answered
Please help. Error of index out of bounds in my program
All terms in the following two lines are constants so bt and dt will always be single values. bt=beta*v.*(N-v)/N; dbstop if er...

7 years ago | 0

Answered
Colorbar title is beyond the axis
I was able to reproduce the problem after embedding the code you provided (copied below) within an app. It looks like a bug and...

7 years ago | 0

| accepted

Answered
I am supposed to get list of matrices but I am getting this.What do they mean?
That is your list of matrices. It's called a cell array. traj{1} %that's your first matrix traj{2} %that's your 2n...

7 years ago | 1

| accepted

Answered
Multiple Scattergram plots in the same figure
The easy way Create two different figure; then copy the axis of the second figure to the first figure and change the axis posit...

7 years ago | 0

| accepted

Answered
Remove negative numbers and rows from an array
@ Richard Rees, I didn't realize you had attached data. I see what the problem was: some of your matrices do not have at least ...

7 years ago | 0

| accepted

Answered
How to make a column plot like this one?
Interesting plot! Here's a recreation using similar values. "chgData" are the height of each country bar while "worldData" are...

7 years ago | 0

| accepted

Answered
How to change the color of plotting lines
The line of code that apparently does the plotting is cut off in your image. Either specify the color during plotting plot(x,...

7 years ago | 2

| accepted

Answered
Splitting data in Matlab
Since there might not be an equal number of wind speeds above and below your threshold, you shouldn't use a matrix (which requir...

7 years ago | 0

| accepted

Answered
Formatted string plus list of numbers using sprintf
numberList = round(rand(1,10)*10); s = ['Record',regexprep(num2str([1,numberList]),' +',',')];

7 years ago | 0

| accepted

Answered
function structure and explanation
Here's all the information available (link below). Start by reading the "description" section. Also see the "Algorithms" sectoi...

7 years ago | 0

| accepted

Answered
I need to divide two matrix with different rows and column
Your description asks for two different things. "I want to divide D=A(of 1st element) / B(of complete Row)" % Fake data A = ...

7 years ago | 0

| accepted

Answered
Time stamp formatting question
dtstr = '0d 00:00:5.03000020980835'; dtstr = regexprep(dtstr,'\d+d',''); %remove days dt = datetime(dtstr,'InputForma...

7 years ago | 1

| accepted

Answered
how can I do it without using eval
Assuming the handles are stored in a vector, allhand = [h1,h2,h3]; %row vector tags = get(allhand, 'tag'); hand...

7 years ago | 0

| accepted

Answered
how to change nomber of rows in the ui table?
Add empty rows to the "data" property. Here's a demo. data = get(handles.Table, 'Data'); % get the current data in your UI...

7 years ago | 0

Answered
Random Generator with known characters
Use randperm() or randi() One of those resamples without replacement while the other resamples with replacement (I'll let you re...

7 years ago | 1

| accepted

Answered
HOW TO IDENTIFY MEAN AND STANDARD DEVIATION FOR THIS CODE?
It looks like you want to calculate the mean squared error between the I and BW arrays which can be done using immse() from the ...

7 years ago | 0

| accepted

Answered
Save plot with minimal white space without removing part of the figure
Follow this demo to maximize an axis with equal aspect ratio and a colorbar within a figure. % Set up figure size before movi...

7 years ago | 1

| accepted

Answered
How can I remove the bars without values in hist3?
Use histogram2() instead (req. 2015b or later). % Instead of hist3([x,y]); %use histogram2(x,y) By default bars with 0 he...

7 years ago | 0

| accepted

Answered
i have a function that should work but doesn't
Matlab doesn't know what "columns" means (nor "rows"). My guess is that 'columns' and 'rows' are the number of columns and rows...

7 years ago | 1

| accepted

Answered
How can i convert daily rainfall data in monthly data?
I suggest reorganizing your data into a timetable with 41273 rows and 4 columns: Time, Lat, Long, RainFall. Then you can use ...

7 years ago | 2

| accepted

Answered
How can I add a table (independent of fig data) under figure?
In addition to Jan's UI table suggestion, you could convert the table to a character array and use text() to plot the array on a...

7 years ago | 1

| accepted

Answered
Multiple histogram with different colors for each bar
Use the output handles to the bar objects. h = bar(1:nx,matY'); h(1).FaceColor = [0 0 0]; %first bar group h(2).FaceColor ...

7 years ago | 2

| accepted

Answered
Sorting data in large data set
The data in the image you shared appear to be in a spreadsheet and surrounded by single quotes. I'll assume you've imported tho...

7 years ago | 1

| accepted

Answered
Extract and save data between two regions
Here's a rough idea that you can tweek so that it performs better. It involves calculating the slope of each line segment. The...

7 years ago | 1

| accepted

Answered
Removing repeating data points but keeping the first and last ones
A is your input matrix, Ap is the trimmed matrix. isUnq = find(~any(diff(A([1,2],:),[],2)==0, 1))+1; keepColIdx = unique([1,i...

7 years ago | 0

Load more