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...

2 years ago | 0 answers | 0

0

answers

Answered
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...

2 years ago | 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...

2 years ago | 1 answer | 0

1

answer

Answered
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...

2 years ago | 0

Answered
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?...

2 years ago | 0

Answered
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...

2 years ago | 0

Answered
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...

2 years ago | 1

Answered
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...

2 years ago | 0

| accepted

Answered
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, ...

2 years ago | 0

Answered
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);

2 years ago | 0

Answered
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...

2 years ago | 2

| accepted

Answered
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) ...

2 years ago | 0

Answered
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

2 years ago | 0

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

2 years ago | 0

Answered
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...

2 years ago | 0

Answered
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...

2 years ago | 0

Answered
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...

2 years ago | 0

Answered
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 ...

2 years ago | 0

| accepted

Answered
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...

2 years ago | 0

Answered
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...

2 years ago | 0

Answered
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)

2 years ago | 2

Answered
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...

2 years ago | 1

| accepted

Answered
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...

2 years ago | 1

Answered
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...

2 years ago | 0

| accepted

Answered
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...

2 years ago | 0

Answered
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...

2 years ago | 1

| accepted

Answered
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...

2 years ago | 1

Answered
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 ...

2 years ago | 1

Answered
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...

2 years ago | 0

Load more