Answered
Searching for part of variable name
I don't see a question in your query. If you've got a list of variable names and you're looking for partial matches, check out ...

23 days ago | 1

| accepted

Answered
Replicate programmatically Tab inside a TabGroup
Use copyobj to copy a tab within the tabgroup. % t is the handle to an existing tab % g is the handle to the tab group % t2 ...

23 days ago | 0

| accepted

Answered
Accounting for Covariates: which is the best test and how to do this in matlab
You could perform an analysis of covariance using anovan() and explicitly identiying the covariates. Here's an example from dat...

23 days ago | 0

Answered
Plotting multiple y axes on one side only using addaxis
I briefly looked at the addaxis function on the file exchange and I'm not sure it's using the best approach. Follow this demo...

25 days ago | 0

| accepted

Answered
writecell to excel when cell elements are matrixes
"I just wish I could use append rather than think about what row to start on using the 'Range' command." The Matlab Genie has m...

25 days ago | 0

Answered
How can I plot a constant value versus a range of values?
plot(g,omega,'o') % or plot(repmat(g,size(omega)),omega,'-') Since g is a scalar (single value), you'll just have a vertical...

25 days ago | 0

Answered
How the property 'textstep' modify my contour graph?
TextStep controls which contours are labeled. Consider this example. % produce contour plot example. x = -2:0.2:2; y = -...

25 days ago | 0

Answered
xlim and ylim auto not working
I think what you're looking for is, h = subplot(3,2,i); axis(h,'tight') or just axis tight applied to the current axes.

26 days ago | 0

| accepted

Answered
Matlab GUI wait until button is pressed
Here's a conceptual plan you can implement to re-start the simulation at the point where it was stopped. If you are unsure how ...

26 days ago | 0

Answered
How to write a structure field to Excel?
vals = {s(1:end).name};

26 days ago | 1

| accepted

Answered
Creating a rectangle with 4 points
plot3([2 4 4 2 2],[1 1 5 5 1], [3 3 3 3 3], '-k') % for (x,y,z) % plot([2 4 4 2 2],[1 1 5 5 1], '-k') % for...

26 days ago | 0

| accepted

Answered
Wrapper Function to call function with different number of input and ouput arguments
For the inputs.... Convert the structure to a cell array using C = struct2cell(S) Then, funcHandle(InputData.funcarg1, c{:})...

26 days ago | 0

| accepted

Answered
How to remove junk functions remained in appdesigner code?
Right-click the function in the code browser in code-view and select 'delete'. The function may be under Callbacks or Functio...

26 days ago | 1

| accepted

Answered
App Designer UITable row names change once writing the output to the UITable
Option 1: Create a table with row names and load the table into a uitable. T = array2table(rand(3,2),'VariableNames',{'A','B'},...

26 days ago | 2

| accepted

Answered
I want to get 135 as output from 11122333345555566.where 2 4 6 are noise.
% Convert from long integer to vector of integers K = 11122333345555566; % for demo purposes i = 1; % fo...

28 days ago | 0

| accepted

Answered
cfit object in function handle
My blind guess is that x or c is a vector in which case, func2= @ (x,c) x-(c.*x+x.^2)./func(x) % ^ ^ ^

28 days ago | 0

| accepted

Answered
How to assign a constant to a submatrix without a loop
A = magic(9) % demo matrix A(2:end-1,2) = 67.5; result A(2:end-1,2) = 67.5 A = 47 58 69 ...

28 days ago | 0

Answered
Animated PLOT in GUI
Here's an example the warning message that appears when calling axes() within a loop. You're using the axes() command to make...

28 days ago | 0

Answered
app designer UIAxes plot
You have the right idea to specify an axis handle but it looks like you're not using the handle. uiax = uiaxes(); % Create th...

28 days ago | 0

Answered
Problem with plotting two x-Axes and y-Axes
Use yyaxis to plot the plot() and area() on the left axis and the bar() on the right axis. Then flip the direction of the right...

28 days ago | 1

| accepted

Answered
How to get the rgb code from Matlab figure
Retreiving the colors from a surface plot can be trickly due to the interaction between the color properties of a surface object...

28 days ago | 1

| accepted

Answered
Find position of the first place a value is reapeted.
This problem is not trivial, especially when working with floating decimals that potentially run into round-off error. Here's...

28 days ago | 0

Answered
Function Argument Validation, Compare to Irrational Number or Expression
One solution would be to replace the pi function with a literal; arguments x (1,1) double {mustBeGreaterThan(x,3.1415926...

29 days ago | 0

| accepted

Answered
Removing Leap day from my timetable
TT is the timetable and TT.Time is the time column. isLeapDay is a logical vector identiying the rows of TT that belong to a ...

29 days ago | 0

| accepted

Answered
Pie chart label overlapping
Use the pie() output handle to obtain the text objects. h = pie(. . .); th = findobj(h,'Type','Text'); % text handles Determ...

29 days ago | 0

| accepted

Answered
How to make barh figure have minimum value of vertical axis zero?
Assuming, ranges is a matrix or vector identifying the bar hight of each bar, ranged = max(0, ranges);

29 days ago | 0

| accepted

Answered
How to dynamicly change the tick order for xticklabels
tickLabels = {'Heel Up','Heel Dw', ... 'Flat Up','Flat Dw','Swing Heel', ... 'Swing Flat', ... ....... }; ytick...

29 days ago | 0

| accepted

Answered
Putting arrows on a graph line matlab
Arrows can be added with annotation but it's an incredibly clumsy process since you have to specify the arrow coordinates in nor...

29 days ago | 0

Answered
Matlab cannot read string data
Straight out of the documentation num = xlsread(filename) reads the first worksheet in the Microsoft® Excel® spreadsheet workbo...

29 days ago | 0

Answered
how to Make a button upload a .txt file and another button to read the file and plot it in matlab app design?
When you select the file with uigetfile, the outputs need to be stored as a property of the App so all callback functions have a...

29 days ago | 1

| accepted

Load more