Réponse apportée
Is there a way to measure interletter spacing for Fixed Width font in MATLAB?
I have no idea what you mean by "visual angle per font size", but I know of one way: lbl = uicontrol("Style","text","String","...

environ 3 ans il y a | 0

Réponse apportée
Functional programming construct to expand cell array into arguments for other functions without using an intermediate variable in the (user) code?
I am still not sure why you can't just have your generalized comparator function saved as a function somewhere on your path so y...

plus de 3 ans il y a | 1

Réponse apportée
How to integrate uidatepicker command with GUI interface?
Details are thin here...but it sounds like you need to first specify the parent graphics object that you want your uidatepicker ...

plus de 3 ans il y a | 0

Réponse apportée
How to solve exponential equation to find unknown constants
data = readtable("Book1.xlsx"); Alternatively, based on my reparameterization above you can as a first pass say everything afte...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to solve exponential equation to find unknown constants
Do you have an intuition of what the graph of looks like? Hint: it looks like your plot, scaled and shifted roughly only in the...

plus de 3 ans il y a | 0

Réponse apportée
Print vectorized graphic of patches without edges
I now believe it is because you are technically plotting 3D patches (telling Matlab there's a z-coordinate, even if they are all...

plus de 3 ans il y a | 1

Réponse apportée
Calculations of Angle between two points
If you have the list of 3D coordinates rng(1) % control random generator NPoints = 5 vertices = rand(NPoints,3) You can defi...

plus de 3 ans il y a | 0

Réponse apportée
How to symbolically integrate f(T) = exp (E/(8.314*T) through integration by parts or with trapezoidal method?
The application still is unclear to me... If you just want numerical integration, look at the function "integral", as implement...

plus de 3 ans il y a | 0

Réponse apportée
Remove zoom from axes
This should be a good entrypoint: https://www.mathworks.com/help/matlab/ref/disabledefaultinteractivity.html https://www.mathw...

plus de 3 ans il y a | 0

Réponse apportée
Can I pass arguments to a @callbackFcn?
configureCallback(s,"terminator",@(src,evnt)readSerialData(src,evnt,operation mode)) So the first parentheses specify the inter...

plus de 3 ans il y a | 2

| A accepté

Réponse apportée
I am trying to find the exact distance of a curvy line.
Assuming that the boundary points are ordered well (adjacently), then you can calculate the cummulative square distance between ...

plus de 3 ans il y a | 0

Réponse apportée
Take only some values from one array
you can't compare arrays of different lengths. a straightforward but cumbersome way is to cycle through each of your t1 and find...

plus de 3 ans il y a | 0

Réponse apportée
MATLAB GUIDE to App migration question
Apparently it should work: https://www.mathworks.com/help/matlab/creating_guis/compatibility-between-different-releases-of-app-...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to Save new data to existing structure data in a for loop without having to save the complete Matlab file from Zero?
I would consider using a database, a lightweight solution could be sqlite. I use the third party mksqlite for this purpose and i...

plus de 3 ans il y a | 0

Réponse apportée
using varfun on a timetable with subscripts?
first of all, your operation looks like a "diff", no subscripts (for rows, i.e., timestamps) necessary second, you will be defi...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How can I quickly obtain the inverse of a square sparse matrix?
potentially, if you have more information about the properties of A, you can specify them in a call to linsolve https://www.mat...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
3D/2D matrix multiplication without using a loop
I found this: pagemtimes() s = rand(5,5); x = rand(5,8,100000); tic y = pagemtimes(s,x); toc tic z = nan(size(x)); for...

plus de 3 ans il y a | 0

Réponse apportée
How to operate properly with multidimensional matrices and cells.
You might be looking for squeeze()? l=0; % preallocate C = cell(3,3,3); M = nan(3,3,3); % construct 3D cell and matrix ...

plus de 3 ans il y a | 1

Réponse apportée
How to solve a system of second order nonlinear differential equations with boundary conditions
This is a boundary value problem, so probably the most straightforward way is to use bvp4c or bvp5c if you want to solve numeric...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Backward and Central Difference
I guess the answer depends what you want to do with those finite difference approximations. If you want to use it in an algorith...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Save class object as struct
Look at this too: https://www.mathworks.com/help/matlab/matlab_oop/flexible-saveobj-and-loadobj-pattern.html I think it means w...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Can't get string to datetime conversion to work
str = '2019-05-17T19:36:00'; fmt = 'yyyy-MM-dd HH:mm:ss'; b = strrep(str,'T',' '); disp(b); timestamp = datetime(b,'Inpu...

plus de 3 ans il y a | 0

Réponse apportée
Auto Refresh in app designer.
in general for "auto refresh" you can use the timer object to schedule recurrent execution - disclaimer i have only played with ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Using Hessian for least squares problem
Now that the actual question is clarified as a coding question and not a math question, it seems these should help: https://www...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Select rows in a given table according to 3 criteria
This is small enough you could generate the full list of combinations % generate all combinations alltriplets = nchoosek(1:7,3...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Iterating array of chars and saving to table or cell
Try this, if your function actually returns strings as your output suggests (rather than a char array) result = strings(length(...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Interpolate X-Y coordinates with variable velocity to specified sampling frequency
I don't think you need loops...so assume your data is called XYV, and according to how you describe, I guess the last velocity p...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to interpolate between two adjacent points of time series data, if the difference between any two consecutive points is greater than 25 by using for loop?
If you just want the points to be "appear" roughly evenly distributed, you could consider spacing in the arc length (although yo...

plus de 3 ans il y a | 2

Réponse apportée
How to interpolate between two adjacent points of time series data, if the difference between any two consecutive points is greater than 25 by using for loop?
Here's [another approximate] way to do it that will only call spline once (could as well do it with gridded interpolant) The me...

plus de 3 ans il y a | 2

Réponse apportée
Randomly selecting images from a directory
Use "dir" and "randperm"

plus de 3 ans il y a | 0

| A accepté

Charger plus