Community Profile

photo

Luna


233 total contributions since 2018

Contact

Luna's Badges

  • First Review
  • Thankful Level 2
  • 6 Month Streak
  • Promoter
  • Introduction to MATLAB Master
  • Commenter
  • Solver
  • Revival Level 1
  • Knowledgeable Level 3
  • First Answer

View details...

Contributions in
View by

Answered
Delete entire rows based on one condition
Hi, Try this: data = num2cell(randi(5000,240,7)); % sample random data in a cell array my_Table = cell2table(data); % conver...

7 days ago | 0

Answered
How to require a custom class type with addRequired?
Variable out is not defined in the function bar. Also bar is already a built-in function. Use another function name instead.

8 days ago | 0

Question


How to change tooltip position in AppDesigner?
Hello dear community, I have created a GUI in appdesigner. I created a checkbox with a label text and a button right side of t...

8 days ago | 0 answers | 0

0

answers

Answered
unable to perform assignment because the left and right sides have a different number of elements.
Hi, It is because you defined dx = 3 as 1x1 double. Your function y_dot gives 2x1 double as result. So it is not possible to c...

9 days ago | 0

Answered
Draw vertical lines on a plot
There is a built-in function for that. For vertical lines use xline and for horizonal lines use yline. Here is sample code: ...

10 days ago | 0

| accepted

Answered
Control Design without using s ”acker , place.
Basically you can check below link and videos how a state-space model created in Simulink. state space

10 days ago | 0

Answered
Mathematical symbols in matlab
Hi, Check this: how-to-insert-latex-equation-into-static-text-plot-in-gui You should be writing in latex format.

11 days ago | 0

| accepted

Answered
How can I classify data based on two columns??
Your error caused from the line for loop. You have 19 elements but m+1 will be 20. for m = 1:length(lines)-1 ... end Th...

11 days ago | 0

Answered
Strange histogram from point cloud
Basically, you can decrease Histogram's 'BinCounts' property or increase 'BinWidth' property. You can define them with 'Name',...

11 days ago | 0

Answered
how to plot wind rose plot?
Hi, Have you tried this function from FEX? wind-rose

11 days ago | 0

Answered
Matlab coding for equation below and output as matrix
Hi, Look at this piecewise function definition: piecewise

11 days ago | 0

Answered
How to find an exact sequence of values?
Try Loren's findpattern2. Here is link: findpattern create vector x numbers of ones and run findpattern2. e = ones(1,x); fo...

11 days ago | 0

| accepted

Answered
merge parts of arrays of cell array into matrix using loop
Try this: solution = repmat({rand(6,300)},1,6); cC0_ges = reshape(cell2mat(cellfun(@(x) x(1,1:20), solution,'uni',false))...

11 days ago | 0

| accepted

Answered
Trouble reading data from .mat file
Hi, Try this: fid = fopen('1.mat'); values = fread(fid); fclose(fid); It seems only file created 'MATLAB 5.0 MAT-file,...

15 days ago | 0

Answered
plotting 2 different sized data into histogram
Try this for your both histograms. Do not use nbins. widthvalue = 0.1; histogram(X,'BinWidth',widthvalue)

15 days ago | 1

| accepted

Answered
Convert color map and a corresponding color scale to a matrix of numerical values.
What do you mean by opposite of inbuilt function colorbar? colorbar is a function to create any colorbar near your axis. The ...

15 days ago | 0

Answered
How do I extract data from a specific subplot in a MATLAB figure?
Hi, If you don't have the handles of the plot in the figure here is a demonstration for you. Please read the comments careful...

16 days ago | 0

| accepted

Answered
Property of gscatter information needed
Have you read that? gscatter you don't have to mention a 'Name','Value' pair argument inputs for gscatter. It works like th...

16 days ago | 0

Answered
Delete end points from columns in a structure array
I did something like this: newS2 = arrayfun(@(y) structfun(@(x) x(3:end-2),y,'uni',false),S) Or: for i = 1:numel(S) n...

16 days ago | 1

Answered
how to write Conditional for loop in matlab without giving range? and it should run till condition satisfied
You should use while loop instead. Here is the link: while Here is a sample code for your case: K=0; Flag = 1; while Flag ...

16 days ago | 0

| accepted

Answered
How to show bin counts' percentage values in Histogram2 tile plot?
I have solved it writing a function manually add text to each rectangle. Here is the function: function hHist = normalized_h...

22 days ago | 0

| accepted

Answered
Mean of a Matrix
your for loop is length(rand_image_stim). So your mean value calculated 10000 times. You should store it and later get the mean ...

1 month ago | 0

Question


How to show bin counts' percentage values in Histogram2 tile plot?
Hi Dear Community I have x and y values*, I want to plot it like a 3D Histogram but on the top view. (It should look like a he...

1 month ago | 2 answers | 0

2

answers

Answered
matlab.graphics.illustration.Legend/set
Hello, Try this, legend_h = legend('TOFA (5uM)... ...'); set(legend_h,'Color','none','...','...'); It seems you have forgot...

2 months ago | 0

Answered
How to call xlim and ylim after the most recent zoom?
Hello, Try this: hFig = figure; hAxis = axes(hFig); hPlt = plot(hAxis,rand(100,1)); zoomObj = zoom(hFig); set(zoomO...

3 months ago | 0

| accepted

Question


How to change inputdlg's editbox into a popup menu?
Hellooo dear community! I want to create a small dialog box which contains 2 different popup-menu. Do we have any built-in fun...

3 months ago | 1 answer | 0

1

answer

Answered
uitable updates behave strangely
I had that problem before, I simply solved it by changing the focus of the tabs while creating the uitables. Please try followin...

3 months ago | 0

Answered
Create a column vector from 15 to -25 with a step size of 5
Hi David, Try this: prob04 = sort(-25:5:15,'descend')

3 months ago | 0

Solved


Interpolator
You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...

4 months ago

Solved


Read a column of numbers and interpolate missing data
Given an input cell array of strings s, pick out the second column and turn it into a row vector of data. Missing data will be i...

4 months ago

Load more