Answered

Number of button groups in GUI depending on user input?

I would question the premise... How about having a listbox that lists each measurement, and only a single button group, whose c...

Number of button groups in GUI depending on user input?

I would question the premise... How about having a listbox that lists each measurement, and only a single button group, whose c...

3 days ago | 0

Answered

Fit height uitable App Designer

it wouldn't work with the "fit" gridlayout, but if it is really important to you, what i have done in the past is to measure the...

Fit height uitable App Designer

it wouldn't work with the "fit" gridlayout, but if it is really important to you, what i have done in the past is to measure the...

4 days ago | 0

| accepted

Answered

Fit height uitable App Designer

Look into uigridlayout with the "fit" keyword for row heights

Fit height uitable App Designer

Look into uigridlayout with the "fit" keyword for row heights

7 days ago | 0

Answered

How can I plot this type of figures?

Using surf, did you take these steps? L = membrane(3); surf(L,"LineStyle","none") % don't display mesh view(2) % view from to...

How can I plot this type of figures?

Using surf, did you take these steps? L = membrane(3); surf(L,"LineStyle","none") % don't display mesh view(2) % view from to...

7 days ago | 0

| accepted

Answered

Dataflow in App Designer

Yes, much clearer explanation of your question. All due respect to Sourabh, I do not think you are looking for multi-window app...

Dataflow in App Designer

Yes, much clearer explanation of your question. All due respect to Sourabh, I do not think you are looking for multi-window app...

14 days ago | 0

Answered

Newton's method for minimisation returns a critical point

Yes this looks normal, you are only asking to zero the gradient of the function, so naturally that includes non-optimal points w...

Newton's method for minimisation returns a critical point

Yes this looks normal, you are only asking to zero the gradient of the function, so naturally that includes non-optimal points w...

24 days ago | 0

Answered

Search function in drop down menu in AppDesigner?

Just confirmed, if you set the "Editable" property of a uidropdown to "on", you get some simple filtering of the Items based on ...

Search function in drop down menu in AppDesigner?

Just confirmed, if you set the "Editable" property of a uidropdown to "on", you get some simple filtering of the Items based on ...

1 month ago | 0

Answered

MATLAB App Designer hold on/off throwing warnings

I would set the "NextPlot" property of the polar axes to "add". pax.NextPlot = 'add';

MATLAB App Designer hold on/off throwing warnings

I would set the "NextPlot" property of the polar axes to "add". pax.NextPlot = 'add';

1 month ago | 0

| accepted

Answered

Finding strings in a cell array that start with a specific substring

Try this A = {'test' 'hello' 'world' 'st1' 'st2' 'st99'} matches = regexp(A,'^st\d+$','match') B = [matches{:}]

Finding strings in a cell array that start with a specific substring

Try this A = {'test' 'hello' 'world' 'st1' 'st2' 'st99'} matches = regexp(A,'^st\d+$','match') B = [matches{:}]

1 month ago | 0

| accepted

Answered

How to plot sphere in sphere coordinates?

Your problem is not with conversion or plotting, but defining the coordinates that you want... [phi,theta] = meshgrid(linspace(...

How to plot sphere in sphere coordinates?

Your problem is not with conversion or plotting, but defining the coordinates that you want... [phi,theta] = meshgrid(linspace(...

2 months ago | 0

| accepted

Answered

fit curve with parameter

If i understand Rik correctly, I think you'd first have to estimate the t data by computing the cumulative arc length between yo...

fit curve with parameter

If i understand Rik correctly, I think you'd first have to estimate the t data by computing the cumulative arc length between yo...

2 months ago | 0

| accepted

Answered

how to "convert" user inputted letter and number combination to a row,col position on a plot?

In case you want to make battlship on an insanely large grid, here's a more general solution to convert "Excel column" style lab...

how to "convert" user inputted letter and number combination to a row,col position on a plot?

In case you want to make battlship on an insanely large grid, here's a more general solution to convert "Excel column" style lab...

2 months ago | 0

Answered

Plotting into Multiple Axes in GUI

Any plot command can accept as a first argument a target axes object to plot into.

Plotting into Multiple Axes in GUI

Any plot command can accept as a first argument a target axes object to plot into.

2 months ago | 0

Answered

How do I pass a variable number of outputs through two functions?

Currently your GetData function literally has no purpose other than to alias the function you want with other names...the mechan...

How do I pass a variable number of outputs through two functions?

Currently your GetData function literally has no purpose other than to alias the function you want with other names...the mechan...

2 months ago | 0

| accepted

Answered

minify Matlab code (minimize number of characters)

Partial answer to implement Rik's original stripping of blank lines and full comment lines, and also attempt to squeeze the line...

minify Matlab code (minimize number of characters)

Partial answer to implement Rik's original stripping of blank lines and full comment lines, and also attempt to squeeze the line...

2 months ago | 1

Answered

Animating a pointmass sliding down a plane

There's some inconsistency in whether you are treating the angle from vertical or horizontal (effectively). It may also be conce...

Animating a pointmass sliding down a plane

There's some inconsistency in whether you are treating the angle from vertical or horizontal (effectively). It may also be conce...

2 months ago | 0

| accepted

Answered

How to solve system of nonlinear ODEs with "unusual" boundary conditions?

If you are talking about boundary value problems versus initial value problems, look at bvp4c and bvp5c. There is nothing "unusu...

How to solve system of nonlinear ODEs with "unusual" boundary conditions?

If you are talking about boundary value problems versus initial value problems, look at bvp4c and bvp5c. There is nothing "unusu...

2 months ago | 0

Answered

Euler's Method/Improved Euler's Method

The error is telling you that at the first step of your loop (n=1), you are trying to access the n=2nd element of t and y, but a...

Euler's Method/Improved Euler's Method

The error is telling you that at the first step of your loop (n=1), you are trying to access the n=2nd element of t and y, but a...

2 months ago | 0

Answered

set uiaxes in matlab function as current figure to plot on

I would argue that it makes more sense (more elegant) to require specifying the parent axes to plot. The way that you want may c...

set uiaxes in matlab function as current figure to plot on

I would argue that it makes more sense (more elegant) to require specifying the parent axes to plot. The way that you want may c...

2 months ago | 0

| accepted

Answered

How to solve unknown coefficients for an exponential fit equation iteratively?

MattJ's answer takes y0 to be known, which Yi Jiao clarified is not the case. Treating y0 unknown and extending MattJ's answer l...

How to solve unknown coefficients for an exponential fit equation iteratively?

MattJ's answer takes y0 to be known, which Yi Jiao clarified is not the case. Treating y0 unknown and extending MattJ's answer l...

2 months ago | 0

Answered

Is there a simpler or more efficient way to do the following?

You could for example do this function B = label1(A) [rows,cols] = size(A); B = ["",string(1:cols);[string((1:rows)')+char(9)...

Is there a simpler or more efficient way to do the following?

You could for example do this function B = label1(A) [rows,cols] = size(A); B = ["",string(1:cols);[string((1:rows)')+char(9)...

2 months ago | 0

| accepted

Answered

How to filter a structure based on part of nested field names

It's not 100% clear where you are stuck, but it sounds like knowing about "fieldnames()" will help. For data structure design, ...

How to filter a structure based on part of nested field names

It's not 100% clear where you are stuck, but it sounds like knowing about "fieldnames()" will help. For data structure design, ...

2 months ago | 1

| accepted

Answered

Simulate image data representative of a real experiment

Bjorn's answer contains the conv2() route to blurring fK = exp(-X.^2/dx^2-Y.^2/dy^2); fK = fK/sum(fK(:)); Im = conv(full(dIm)...

Simulate image data representative of a real experiment

Bjorn's answer contains the conv2() route to blurring fK = exp(-X.^2/dx^2-Y.^2/dy^2); fK = fK/sum(fK(:)); Im = conv(full(dIm)...

2 months ago | 0

Answered

deconvolution of impedance spectra

the deconvolution operation is denoted "deconv" in base matlab. whether this is what you are looking for is unclear from your qu...

deconvolution of impedance spectra

the deconvolution operation is denoted "deconv" in base matlab. whether this is what you are looking for is unclear from your qu...

2 months ago | 0

Answered

Caclulate Horizonzal Area Between Two Curves And Minimize This Area (Optimization Problem)

Take a look at this: clc; close all; clear; % it looks like these are ultimately the curves you want to compare f1 = @(x)...

Caclulate Horizonzal Area Between Two Curves And Minimize This Area (Optimization Problem)

Take a look at this: clc; close all; clear; % it looks like these are ultimately the curves you want to compare f1 = @(x)...

2 months ago | 1

| accepted

Answered

Appropriate Weights in Exponential Fit

The choice of weighting is unrelated to the computing platform... If you want to use an inverse variance weighting strategy, to...

Appropriate Weights in Exponential Fit

The choice of weighting is unrelated to the computing platform... If you want to use an inverse variance weighting strategy, to...

2 months ago | 0

Answered

How to speed up the simulation time of a big system of ODEs?

don't use syms

How to speed up the simulation time of a big system of ODEs?

don't use syms

3 months ago | 0

Answered

Indexing arrays of binned data

From what I can gather, it hsould be possible to reorganize your experimental data into a Nx6 matrix called Data, where N is the...

Indexing arrays of binned data

From what I can gather, it hsould be possible to reorganize your experimental data into a Nx6 matrix called Data, where N is the...

3 months ago | 0

Answered

regression line in quadratic form

[edited] Alternatively, just create a new variable to hold an already sorted "model" experience N = 200; % choose an arbitrary ...

regression line in quadratic form

[edited] Alternatively, just create a new variable to hold an already sorted "model" experience N = 200; % choose an arbitrary ...

3 months ago | 1

Answered

Reading large excel file using "read" command takes ~5 minutes, is this expected performance?

Try manually creating the import options with spreadsheetimportoptions().

Reading large excel file using "read" command takes ~5 minutes, is this expected performance?

Try manually creating the import options with spreadsheetimportoptions().

3 months ago | 0

| accepted