Question


extra uimenu in GUI figure (R2023b)
Similar to this question about toolbar MATLAB R2023b inserts menu on my GUI figure any request. For example the green one is mi...

plus de 2 ans il y a | 1 réponse | 0

0

réponse

Réponse apportée
Is there a parallel version of splitapply()?
To me there are 2 reasons: Not everyone have parallel toolbox The user function can be multi-threaded and already use efficien...

plus de 2 ans il y a | 0

Question


extra uitoolbar in GUI figure (R2023b)
Just download the R2023b. In the figure I have developped (using GUIDE), there is a full toolbar that I did not create appears a...

plus de 2 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
Random number generate in an interval
The file TruncatedGaussian.m is from this page https://www.mathworks.com/matlabcentral/fileexchange/23832-truncated-gaussian?s_t...

plus de 2 ans il y a | 0

Réponse apportée
KeyPressFcn and WindowKeyPresFcn unable to initiate a callback function, opens command window instead (2019b).
You might take a look at this FEX and inspire from that https://www.mathworks.com/matlabcentral/fileexchange/57496-i3v-figkeys?...

plus de 2 ans il y a | 0

Réponse apportée
Why is it that special characters are not being recognized correctly in my standalone app?
It looks like it related to mfile encoding. Through the compiler; the mfiles are encrypted and decrypted and run. May be one the...

plus de 2 ans il y a | 0

Réponse apportée
hi , can help me in this problem "Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters." i don't know the solution
% Pasting the last line bellow in your code editor H_true = rand(5); X_zf = rand(5); Y = rand(5); H_zf = X_zf * inv(H_true...

plus de 2 ans il y a | 1

Réponse apportée
Why is MATLAB taking a long time to run code and freezes when I manually stop the run?
That sounds like RAM is full.

plus de 2 ans il y a | 0

Réponse apportée
How can I find all intersection points across many equations?
It is easy enough to compute directly the solutions a = [1.4368 2.8461 5.4471 10.925 16.240 24.535 32.728 40.699 49.810...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Using rdivide for multidimensional matrices
Put the first extraction of two subindices as a multi-row matrix, do the algebra calculation then put it back. F = rand(5, 10, ...

plus de 2 ans il y a | 0

Réponse apportée
Convhull function returns indices that correspond to NaN values
You must index the column where the convhull is inquired XCHull =x(indicesCHull,i); YCHull =y(indicesCHull,i);

plus de 2 ans il y a | 0

Réponse apportée
Concatenating vectors of different length
result = []; for k=1:5 veck = randi(10, 1, 2+randi(5))% compute your vector here .. n = size(veck,2); result(:,e...

plus de 2 ans il y a | 2

| A accepté

Réponse apportée
What does "function ?? declared implicitly" means?
you need add double as return type for your function prototype and declaration double function1(void); double function1(void) ...

plus de 2 ans il y a | 0

Réponse apportée
is it possible to use multiple functions in cellfun
[f1, f2] = cellfun(@(x) func(x), {A, B, C, D}) function [f1, f2] = func(x) f1 = func1(x); f2 = func2(x); end

plus de 2 ans il y a | 0

Réponse apportée
is it possible to use multiple functions in cellfun
[f1, f2] = cellfun(@(x) deal(func1(x),func2(x)), {A, B, C, D})

plus de 2 ans il y a | 0

Réponse apportée
Multivariate fitting of linear equation
Your system is underdetermined system, there is only 4 equations for 6 unknowns. There exists not only one solution but infinit...

plus de 2 ans il y a | 0

Réponse apportée
Find the parameter that satisfies the condition
There is not solution where w goes to i/2 (the rhs goes to inf) or -i/3 (the lhs goes to 0), for any lambda the inequality won...

plus de 2 ans il y a | 0

Réponse apportée
How to code NESTED CYCLES
Reverse the 2 loops, then it loops on f f=[3 6 3 9] b=[] for i=1:numel(f) f(i) for l=1:numel(b) a(f(i),b(l...

plus de 2 ans il y a | 0

Réponse apportée
plotting a function using a function
The coefficients Cn = 1i/(2*pi*n). I'm not very good in symbolic calculation, I never own the tollbox license. syms t syms n ...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
convert cell of cells to individual variables
assuming c is your (32612 x 1) cell % Dummy data to test c=cell(32612,1); for i=1:size(c,1) c{i} = rand(200,5); end [c...

plus de 2 ans il y a | 0

Réponse apportée
generate orthogonal matrix function
I claim this returns the solution C that is orthogonal to A but not to B (meaning not to all of columns of B) A = rand(5,4)*ran...

plus de 2 ans il y a | 0

Réponse apportée
Sorting columns by header names
A=rand(10,1); B=rand(10,1); Z=rand(10,1); T=table(Z,B,A) [~,is]=sort(T.Properties.VariableNames); T = T(:,is)

plus de 2 ans il y a | 2

Réponse apportée
Why fimplicit3 draw the same function differently
This is NOT a bug. fimplicit3 plot the surface f(x,y,z) = 0, do you must help it by having a function that explicitly cross the...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
error using fmincon requiers following inputs to be of data type double: 'LB', 'UB'
The low bound and up bounds must be 7th and 8th arguments of fmincon. You do not respect the argument list. Check thedoc fmincon...

plus de 2 ans il y a | 1

Réponse apportée
Can I create cells inside cells in for loop?
"there should be around 296 solutions" Really? We find 1680 comb = combr({1 2 3}, {4 5 6}, {7 8 9}) % recursive engine funct...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
how to repeat a function after fixed interval?
f_on_1period = @(t) 2*sqrt((6*(t))); period = pi; f_periodic = @(t) f_on_1period(mod(t,period)); t=0:0.01:20; y = f_peri...

plus de 2 ans il y a | 0

Réponse apportée
Make double loop run on GPU
GPU is the slowest on my PC. I knew for-loop is now away fast, but I'm still amazed by how fast it is. There is really a remarka...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
Surf plot and the slices do not match
You mix grids, with meshgrid and surf: grid(;,1) => 3rd dimension of u, W, you label it x grid(;,2) => 2nd dimension of u, THE...

plus de 2 ans il y a | 1

Réponse apportée
What is the difference between 'Property Get and Set Methods' and the 'set' function?
"In summary, do set/get functions serve a redundant purpose" No since functional form is prefered and even required if you use ...

plus de 2 ans il y a | 1

Réponse apportée
How to build a structure that is easier to work with (i.e. for looping through and adding to)
If you want to organize as a single giant table. IMO if you don't need to mix part of the tables, you should not do this way. K...

plus de 2 ans il y a | 0

Charger plus