Answered
Hi.How I can plot W_m to n connection
See <https://www.fieggen.com/shoelace/lacingmethods.htm> for some of the possible ways to plot that.

3 years ago | 0

Answered
Receiving mouse clicks in App Designer UIAxes - stops working after imshow
https://www.mathworks.com/help/matlab/creating_plots/capturing-mouse-clicks.html MATLAB considers graphics objects to be layer...

3 years ago | 0

| accepted

Answered
molecular code in matlab
There are a lot of undefined variables there. There are two possibilities: There might be another script that you have to exec...

3 years ago | 0

Answered
Need help coding this
Example. fun = @(x, y) (x + y).^3 - 5*(x.*y) - 1; [X, Y] = meshgrid( linspace(0,2)); z = fun(X, Y); contour(X, Y, z);

3 years ago | 0

Answered
I have a data 5x148992 , i have to extract data column wise and check if there is any changes wrt previous column and display when there are chnages?
for i = (data( : , : )) data appears to be a 2D array. When you have something of the form for VARIABLE = EXPRESSION; BODY;...

3 years ago | 0

| accepted

Answered
How to add Line/Markers to an Axis Label?
L = "G\prime ( \bullet ) and G\prime\prime ( \color{red}{\bullet}\color{black} ) (Pa)"; ylabel(L, 'interpreter', 'tex') See al...

3 years ago | 0

| accepted

Answered
How to calculate the symbolic integration of rational functions?
Wolfram Alpha says https://www.wolframalpha.com/input?i=int%281%2F%28x%5E4+%2B+x%5E3+%2B+x%5E2+%2B+x+%2B+1%29%2C+x%2C+0%2C+1%29&...

3 years ago | 0

Answered
Solving large linear systems of equations in parallel / distributed systems
Gb = 60000^2*8/1024^3 The matrix is close to 27 gigabytes. The inverse is the same size, so you will need at least 54 gigabytes...

3 years ago | 0

| accepted

Answered
How to make a new column in my table
elseif requires a expression after it, but you coded an assignment. You just want else not elseif Remember that if Results(...

3 years ago | 0

Answered
Need a to plot a graph
hvals = linspace(0,17); numh = length(hvals); Vtotal = zeros(numh, 1); H1 = 11; %in H2 = 5; %in m r1 = 3.5; %in m r2 = ...

3 years ago | 0

Answered
Trial download 2021b
only Mathworks Sales can generate trials against older versions.

3 years ago | 1

Answered
How to shift elements in matrix?
circshift()

3 years ago | 0

| accepted

Answered
how can i imagie zoom with Convolution method
It is deliberate that the following does not do exactly what you want to do. It is also deliberate that it has some extra steps ...

3 years ago | 0

Answered
How can I simplify my code using loops?
Put the channels into a cell array: lena_ch = num2cell(lena, [1 2]); Now you can loop over the rows of indices = perms(1:3) ...

3 years ago | 0

Answered
I need help writing equation in matlab
format long g syms x n m result = symsum(x^n/factorial(n), n, 0, m) limit(result, m, inf) result20 = subs(result, m, 20) ex...

3 years ago | 0

Answered
How can I make the execution speed consistent while I am testing the speed of the programs?
I am not convinced that virtual machines will be allocated dedicated resources that will not be affected by other activities. ...

3 years ago | 0

Answered
Hello, I've got the problem. Can any one help me with that error?
cond = [x(0)==0, diff(x, t)==0]; The first part of that sets a boundary condition. The second part of it says that the deri...

3 years ago | 1

Answered
how can I calculate A^n when n is a symbolic positive integer?
syms N positive integer [V, D] = eig(sym(A)) result = V*diag(diag(D).^N)/V Note those are the matrix operations *...

3 years ago | 0

| accepted

Answered
how to run a function on GPU cores
You would have to use <https://www.mathworks.com/help/gpucoder/index.html> Nvidia GPUs are constructed in a hierarchy. GPU co...

3 years ago | 1

Answered
Hi, I am trying to produce randomly circles with same radius in defined range or square. I wrote the code, but it show error " Out of memory. The likely cause is an infinite"
function h = circle(x,y,r, N) ... for i=1:1:size(circle) circle is not a local variable in the function circle, and is not th...

3 years ago | 0

Answered
Axis Ticks using Calendar Year ticks with BC years
YearTicks = datetime({'1950 CE'; '1725 CE'; '1501 CE'; '1277 CE'; '1053 CE'; '0828 CE'; '0604 CE'; '0380 CE'; '0156 CE'; '0069 C...

3 years ago | 0

| accepted

Answered
Simlify a function in matlab
syms B C x eqn = cos(x) + B*sin(x) == C expr = -sin(x) + B*cos(x) xsol = solve(eqn,x) newexpr = simplify(subs(expr, x, xso...

3 years ago | 1

| accepted

Answered
Call parfeval using global variables?
When you pass a global as a parameter, what is received in the called routine is treated as a local. For example, assigning to t...

3 years ago | 2

Answered
How do I plot a circle on a Matlab figure?
plot(0,0,'ro','MarkerSize',10,'MarkerFaceColor','r','MarkerEdgeColor','r'); That could have several different effects. If you...

3 years ago | 0

Answered
How do I properly convert a 64-bit binary string / Convert directly from bin or hex to uint64
F3str = 'F3007900001EFFFF' F3 = swapbytes(typecast(uint8(sscanf(F3str, '%02x')), 'uint64')) %crosscheck dec2hex(F3) isequa...

3 years ago | 1

Answered
How can I make a structure array
If you pass struct() a cell array of data for a field, then it creates a struct array with the same size() as the size() of the ...

3 years ago | 1

Answered
fzero coupled with ode45
fp = @(Op)(1 - (X11.*R) - sqrt(Op.^2 + (X11.*R).^2) - Op./tan(Op)); Opp = fzero(@(Op)fp(Op), [-10 10]); I was sure that I alre...

3 years ago | 0

| accepted

Answered
Update app axes in background using parfeval
parallel workers never have access to the display graphics You would need to use a parallel data queue to send values back to...

3 years ago | 0

Answered
Determine available disk space
Use .NET https://learn.microsoft.com/en-us/dotnet/api/system.io.driveinfo.availablefreespace?view=net-7.0

3 years ago | 0

Answered
why is my code having an error
the most *common* problem in image importing callbacks, is failing to use fully qualified file names. uigetfile returns two outp...

3 years ago | 1

Load more