Domanda


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

oltre 2 anni fa | 0 risposte | 0

0

risposte

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

oltre 2 anni fa | 0

Domanda


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

oltre 2 anni fa | 1 risposta | 0

1

risposta

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

oltre 2 anni fa | 0

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

oltre 2 anni fa | 0

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

oltre 2 anni fa | 0

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

oltre 2 anni fa | 1

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

oltre 2 anni fa | 0

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

oltre 2 anni fa | 0

| accettato

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

oltre 2 anni fa | 0

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

oltre 2 anni fa | 0

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

oltre 2 anni fa | 2

| accettato

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

oltre 2 anni fa | 0

Risposto
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

oltre 2 anni fa | 0

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

oltre 2 anni fa | 0

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

oltre 2 anni fa | 0

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

oltre 2 anni fa | 0

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

oltre 2 anni fa | 0

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

oltre 2 anni fa | 0

| accettato

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

oltre 2 anni fa | 0

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

oltre 2 anni fa | 0

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

oltre 2 anni fa | 2

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

oltre 2 anni fa | 1

| accettato

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

oltre 2 anni fa | 1

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

oltre 2 anni fa | 0

| accettato

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

oltre 2 anni fa | 0

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

oltre 2 anni fa | 1

| accettato

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

oltre 2 anni fa | 1

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

oltre 2 anni fa | 1

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

oltre 2 anni fa | 0

Carica altro