Pregunta


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

más de 2 años hace | 0 respuestas | 0

0

respuestas

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

más de 2 años hace | 0

Pregunta


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

más de 2 años hace | 1 respuesta | 0

1

respuesta

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 1

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

más de 2 años hace | 0

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

más de 2 años hace | 0

| aceptada

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 2

| aceptada

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

más de 2 años hace | 0

Respondida
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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

| aceptada

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 2

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

más de 2 años hace | 1

| aceptada

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

más de 2 años hace | 1

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

más de 2 años hace | 0

| aceptada

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

más de 2 años hace | 0

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

más de 2 años hace | 1

| aceptada

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

más de 2 años hace | 1

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

más de 2 años hace | 1

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

más de 2 años hace | 0

Cargar más