/matlabcentral/discussions/channels
Channels Discussions
2024-08-10T20:41:02Z
tag:in.mathworks.com,2005:Topic/872381
2024-07-31T20:34:15Z
2024-08-10T04:19:46Z
Using MATLAB to find a generative equation for a sequence
<p>This stems purely from some play on my part. Suppose I asked you to work with the sequence formed as 2*n*F_n + 1, where F_n is the n'th Fibonacci number? Part of me would not be surprised to find there is nothing simple we could do. But, then it costs nothing to try, to see where MATLAB can take me in an explorative sense.
n = sym(0:100).';
Fn = fibonacci(n);
Sn = 2*n.*Fn + 1;
Sn(1:10) % A few elements
For kicks, I tried asking ChatGPT. Giving it nothing more than the first 20 members of thse sequence as integers, it decided this is a Perrin sequence, and gave me a recurrence relation, but one that is in fact incorrect. Good effort from the Ai, but a fail in the end.
Is there anything I can do? Try null! (Look carefully at the array generated by Toeplitz. It is at least a pretty way to generate the matrix I needed.)
X = toeplitz(Sn,[1,zeros(1,4)]);
rank(X(5:end,:))
Hmm. So there is no linear combination of those columns that yields all zeros, since the resulting matrix was full rank.
X = toeplitz(Sn,[1,zeros(1,5)]);
rank(X(6:end,:))
But if I take it one step further, we see the above matrix is now rank deficient. What does that tell me? It says there is some simple linear combination of the columns of X(6:end,:) that always yields zero. The previous test tells me there is no shorter constant coefficient recurrence releation, using fewer terms.
null(X(6:end,:))
Let me explain what those coefficients tell me. In fact, they yield a very nice recurrence relation for the sequence S_n, not unlike the original Fibonacci sequence it was based upon.
S(n+1) = 3*S(n) - S_(n-1) - 3*S(n-2) + S(n-3) + S(n-4)
where the first 5 members of that sequence are given as [1 3 5 13 25]. So a 6 term linear constant coefficient recurrence relation. If it reminds you of the generating relation for the Fibonacci sequence, that is good, because it should. (Remember I started the sequence at n==0, IF you decide to test it out.) We can test it out, like this:
SfunM = memoize(@(N) Sfun(N));
SfunM(25)
2*25*fibonacci(sym(25)) + 1
And indeed, it works as expected.
function Sn = Sfun(n)
switch n
case 0
Sn = 1;
case 1
Sn = 3;
case 2
Sn = 5;
case 3
Sn = 13;
case 4
Sn = 25;
otherwise
Sn = Sfun(n-5) + Sfun(n-4) - 3*Sfun(n-3) - Sfun(n-2) +3*Sfun(n-1);
end
end
A beauty of this, is I started from nothing but a sequence of integers, derived from an expression where I had no rational expectation of finding a formula, and out drops something pretty. I might call this explorational mathematics.
The next step of course is to go in the other direction. That is, given the derived recurrence relation, if I substitute the formula for S_n in terms of the Fibonacci numbers, can I prove it is valid in general? (Yes.) After all, without some proof, it may fail for n larger than 100. (I'm not sure how much I can cram into a single discussion, so I'll stop at this point for now. If I see interest in the ideas here, I can proceed further. For example, what was I doing with that sequence in the first place? And of course, can I prove the relation is valid? Can I do so using MATLAB?)
(I'll be honest, starting from scratch, I'm not sure it would have been obvious to find that relation, so null was hugely useful here.)</p>
John D'Errico
https://in.mathworks.com/matlabcentral/profile/authors/869215
tag:in.mathworks.com,2005:Topic/844101
2024-02-02T17:41:51Z
2024-08-09T14:45:07Z
Read this before posting
<p>Hello and a warm welcome to all! We're thrilled to have you visit our community. MATLAB Central is a place for learning, sharing, and connecting with others who share your passion for MATLAB and Simulink. To ensure you have the best experience, here are some tips to get you started:
Read the Community Guidelines: Understanding our community standards is crucial. Please take a moment to familiarize yourself with them. Keep in mind that posts not adhering to these guidelines may be flagged by moderators or other community members.
Ask Technical Questions at MATLAB Answers: If you have questions related to MathWorks products, head over to MATLAB Answers (new question form - Ask the community). It's the go-to spot for technical inquiries, with responses often provided within an hour, depending on the complexity of the question and volunteer availability. To increase your chances of a speedy reply, check out our tips on how to craft a good question (link to post on asking good questions).
Choosing the Right Channel: We offer a variety of discussion channels tailored to different contexts. Select the one that best fits your post. If you're unsure, the General channel is always a safe bet. If you feel there's a need for a new channel, we encourage you to suggest it in the Ideas channel.
Reporting Issues: If you encounter posts that violate our guidelines, please use the ðŸš©Flag/Report feature (found in the 3-dot menu) to bring them to our attention.
Quality Control: We strive to maintain a high standard of discussion. Accounts that post spam or too much nonsense may be subject to moderation, which can include temporary suspensions or permanent bans.
Share Your Ideas: Your feedback is invaluable. If you have suggestions on how we can improve the community or MathWorks products, the Ideas channel is the perfect place to voice your thoughts.
Enjoy yourself and have fun! We're committed to fostering a supportive and educational environment. Dive into discussions, share your expertise, and grow your knowledge. We're excited to see what you'll contribute to the community!</p>
David
https://in.mathworks.com/matlabcentral/profile/authors/4480925
tag:in.mathworks.com,2005:Topic/864841
2024-06-03T21:22:40Z
2024-06-03T21:22:40Z
Welcome to the Cody Discussion Channel! Please Read Before Posting
<p>Hello and a warm welcome to everyone! We're excited to have you in the Cody Discussion Channel. To ensure the best possible experience for everyone, it's important to understand the types of content that are most suitable for this channel.</p><p>Content that belongs in the Cody Discussion Channel:
Tips & tricks: Discuss strategies for solving Cody problems that you've found effective.
Ideas or suggestions for improvement: Have thoughts on how to make Cody better? We'd love to hear them.
Issues: Encountering difficulties or bugs with Cody? Let us know so we can address them.
Requests for guidance: Stuck on a Cody problem? Ask for advice or hints, but make sure to show your efforts in attempting to solve the problem first.
General discussions: Anything else related to Cody that doesn't fit into the above categories.</p><p>Content that does not belong in the Cody Discussion Channel:
Comments on specific Cody problems: Examples include unclear problem descriptions or incorrect testing suites.
Comments on specific Cody solutions: For example, you find a solution creative or helpful.
Please direct such comments to the Comments section on the problem or solution page itself.</p><p>We hope the Cody discussion channel becomes a vibrant space for sharing expertise, learning new skills, and connecting with others.</p>
Chen Lin
https://in.mathworks.com/matlabcentral/profile/authors/6682740
tag:in.mathworks.com,2005:Topic/831462
2023-11-07T18:43:52Z
2023-11-09T13:55:07Z
ðŸš€ The MATLAB AI Chat Playground Has Launched
<p>The MATLAB AI Chat Playground is open to everyone!
Check it out here on the community: https://www.mathworks.com/matlabcentral/playground</p><p>I just published a blog post announcing the release.</p>
Hans Scharler
https://in.mathworks.com/matlabcentral/profile/authors/5863695
tag:in.mathworks.com,2005:Topic/873384
2024-08-10T20:39:26Z
2024-08-10T20:41:02Z
Strange attractors
<p>An attractor is called strange if it has a fractal structure, that is if it has non-integer Hausdorff dimension. This is often the case when the dynamics on it are chaotic, but strange nonchaotic attractors also exist. If a strange attractor is chaotic, exhibiting sensitive dependence on initial conditions, then any two arbitrarily close alternative initial points on the attractor, after any of various numbers of iterations, will lead to points that are arbitrarily far apart (subject to the confines of the attractor), and after any of various other numbers of iterations will lead to points that are arbitrarily close together. Thus a dynamic system with a chaotic attractor is locally unstable yet globally stable: once some sequences have entered the attractor, nearby points diverge from one another but never depart from the attractor.
The term strange attractor was coined by David Ruelle and Floris Takens to describe the attractor resulting from a series of bifurcations of a system describing fluid flow. Strange attractors are often differentiable in a few directions, but some are like a Cantor dust, and therefore not differentiable. Strange attractors may also be found in the presence of noise, where they may be shown to support invariant random probability measures of Sinaiâ€“Ruelleâ€“Bowen type.
Examples of strange attractors include the RÃ¶ssler attractor, and Lorenz attractor.
Lorenz</p><p>% Lorenz Attractor Parameters
sigma = 10;
beta = 8/3;
rho = 28;</p><p>% Lorenz system of differential equations
f = @(t, a) [-sigma*a(1) + sigma*a(2);
rho*a(1) - a(2) - a(1)*a(3);
-beta*a(3) + a(1)*a(2)];</p><p>% Time span
tspan = [0 100];</p><p>% Initial conditions
a0 = [1 1 1];</p><p>% Solve the system using ode45
[t, a] = ode45(f, tspan, a0);</p><p>% Plot using scatter3 with time-based color mapping
figure;
scatter3(a(:,1), a(:,2), a(:,3), 5, t, 'filled'); % 5 is the marker size
title('Lorenz Attractor');
xlabel('x(t)');
ylabel('y(t)');
zlabel('z(t)');
grid on;
colorbar; % Add a colorbar to indicate the time mapping
view(3); % Set the view to 3D</p><p>Sprott</p><p>% Define the parameters
a = 2.07;
b = 1.79;</p><p>% Define the system of differential equations
dynamics = @(t, X) [ ...
X(2) + a * X(1) * X(2) + X(1) * X(3); % dx/dt
1 - b * X(1)^2 + X(2) * X(3); % dy/dt
X(1) - X(1)^2 - X(2)^2 % dz/dt
];</p><p>% Initial conditions
X0 = [0.63; 0.47; -0.54];</p><p>% Time span
tspan = [0 100];</p><p>% Solve the system using ode45
[t, X] = ode45(dynamics, tspan, X0);
% Plot the results with color gradient
figure;
colormap(jet); % Set the colormap
c = linspace(1, 10, length(t)); % Color data based on time</p><p>% Create a 3D line plot with color based on time
for i = 1:length(t)-1
plot3(X(i:i+1,1), X(i:i+1,2), X(i:i+1,3), 'Color', [0 0.5 0.9]*c(i)/10, 'LineWidth', 1.5);
hold on;
end</p><p>% Set plot properties
title('Sprott Attractor');
xlabel('x(t)');
ylabel('y(t)');
zlabel('z(t)');
grid on;
colorbar; % Add a colorbar to indicate the time mapping
view(3); % Set the view to 3D
hold off;
RÃ¶ssler</p><p>% Define the parameters
a = 0.2;
b = 0.2;
c = 5.7;</p><p>% Define the system of differential equations
dynamics = @(t, X) [ ...
-(X(2) + X(3)); % dx/dt
X(1) + a * X(2); % dy/dt
b + X(3) * (X(1) - c) % dz/dt
];</p><p>% Initial conditions
X0 = [10.0; 0.00; 10.0];</p><p>% Time span
tspan = [0 100];</p><p>% Solve the system using ode45
[t, X] = ode45(dynamics, tspan, X0);</p><p>% Plot the results
figure;
scatter3(X(:,1), X(:,2), X(:,3), 5, t, 'filled');
title('RÃ¶ssler Attractor');
xlabel('x(t)');
ylabel('y(t)');
zlabel('z(t)');
grid on;
colorbar; % Add a colorbar to indicate the time mapping
view(3); % Set the view to 3D</p><p>Rabinovich-Fabrikant</p><p>%% Parameters for Rabinovich-Fabrikant Attractor
alpha = 0.14;
gamma = 0.10;
dt = 0.01;
num_steps = 5000;</p><p>% Initial conditions
x0 = -1;
y0 = 0;
z0 = 0.5;</p><p>% Preallocate arrays for performance
x = zeros(1, num_steps);
y = zeros(1, num_steps);
z = zeros(1, num_steps);</p><p>% Set initial values
x(1) = x0;
y(1) = y0;
z(1) = z0;</p><p>% Generate the attractor
for i = 1:num_steps-1
x(i+1) = x(i) + dt * (y(i)*(z(i) - 1 + x(i)^2) + gamma*x(i));
y(i+1) = y(i) + dt * (x(i)*(3*z(i) + 1 - x(i)^2) + gamma*y(i));
z(i+1) = z(i) + dt * (-2*z(i)*(alpha + x(i)*y(i)));
end</p><p>% Create a time vector for color mapping
t = linspace(0, 100, num_steps);</p><p>% Plot using scatter3
figure;
scatter3(x, y, z, 5, t, 'filled'); % 5 is the marker size
title('Rabinovich-Fabrikant Attractor');
xlabel('x(t)');
ylabel('y(t)');
zlabel('z(t)');
grid on;
colorbar; % Add a colorbar to indicate the time mapping
view(3); % Set the view to 3D
References
Strange Attractors
Attractor</p>
Athanasios Paraskevopoulos
https://in.mathworks.com/matlabcentral/profile/authors/30623616
tag:in.mathworks.com,2005:Topic/871531
2024-07-27T07:31:12Z
2024-08-10T19:23:24Z
What do you like most about MATLAB?
<p>"What are your favorite features or functionalities in MATLAB, and how have they positively impacted your projects or research? Any tips or tricks to share?</p>
Muhammad
https://in.mathworks.com/matlabcentral/profile/authors/34509187
tag:in.mathworks.com,2005:Topic/873344
2024-08-10T15:26:27Z
2024-08-10T19:20:55Z
Rope around the earth
<p>Imagine that the earth is a perfect sphere with a radius of 6371000 meters and there is a rope tightly wrapped around the equator. With one line of MATLAB code determine how much the rope will be lifted above the surface if you cut it and insert a 1 meter segment of rope into it (and then expand the whole rope back into a circle again, of course).</p>
Image Analyst
https://in.mathworks.com/matlabcentral/profile/authors/1343420
tag:in.mathworks.com,2005:Topic/872396
2024-08-01T01:37:57Z
2024-08-10T15:08:57Z
Setting the Microsoft Azure Information Protection label
<p>Does your company or organization require that all your Word Documents and Excel workbooks be labeled with a Microsoft Azure Information Protection label or else they can't be saved? These are the labels that are right below the tool ribbon that apply a category label such as "Public", "Business Use", or "Highly Restricted". If so, you can either
Create and save a "template file" with the desired label and then call copyfile to make a copy of that file and then write your results to the new copy, or
If using Windows you can create and/or open the file using ActiveX and then apply the desired label from your MATLAB program's code.
For #1 you can do
copyfile(templateFileName, newDataFileName);
writematrix(myData, newDataFileName);
If the template has the AIP label applied to it, then the copy will also inherit the same label.
For #2, here is a demo for how to apply the code using ActiveX.
% Test to set the Microsoft Azure Information Protection label on an Excel workbook.
% Reference support article:
% https://www.mathworks.com/matlabcentral/answers/1901140-why-does-azure-information-protection-popup-pause-the-matlab-script-when-i-use-actxserver?s_tid=ta_ans_results
clc; % Clear the command window.
close all; % Close all figures (except those of imtool.)
clear; % Erase all existing variables. Or clearvars if you want.
workspace; % Make sure the workspace panel is showing.
format compact;</p><p>% Define your workbook file name.
excelFullFileName = fullfile(pwd, '\testAIP.xlsx');</p><p>% Make sure it exists. Open Excel as an ActiveX server if it does.
if isfile(excelFullFileName)
% If the workbook exists, launch Excel as an ActiveX server.
Excel = actxserver('Excel.Application');
Excel.visible = true; % Make the server visible.
fprintf('Excel opened successfully.\n');
fprintf('Your workbook file exists:\n"%s".\nAbout to try to open it.\n', excelFullFileName);
% Open up the existing workbook named in the variable fullFileName.
Excel.Workbooks.Open(excelFullFileName);
fprintf('Excel opened file successfully.\n');
else
% File does not exist. Alert the user.
warningMessage = sprintf('File does not exist:\n\n"%s"\n', excelFullFileName);
fprintf('%s\n', warningMessage);
errordlg(warningMessage);
return;
end</p><p>% If we get here, the workbook file exists and has been opened by Excel.
% Ask Excel for the Microsoft Azure Information Protection (AIP) label of the workbook we just opened.
label = Excel.ActiveWorkbook.SensitivityLabel.GetLabel
% See if there is a label already. If not, these will be null:
existingLabelID = label.LabelId
existingLabelName = label.LabelName
% Create a label.
label = Excel.ActiveWorkbook.SensitivityLabel.CreateLabelInfo
label.LabelId = "a518e53f-798e-43aa-978d-c3fda1f3a682";
label.LabelName = "Business Use";
% Assign the label to the workbook.
fprintf('Setting Microsoft Azure Information Protection to "Business Use", GUID of a518e53f-798e-43aa-978d-c3fda1f3a682\n');
Excel.ActiveWorkbook.SensitivityLabel.SetLabel(label, label);
% Save this workbook with the new AIP setting we just created.
Excel.ActiveWorkbook.Save;
% Shut down Excel.
Excel.ActiveWorkbook.Close;
Excel.Quit;
% Excel is now closed down. Delete the variable from the MATLAB workspace.
clear Excel;
% Now check to see if the AIP label has been set
% by opening up the file in Excel and looking at the AIP banner.
winopen(excelFullFileName)
Note that there is a line in there that gets an AIP label from the existing workbook, if there is one at all. If there is not one, you can set one. But to determine what the proper LabelId (that crazy long hexadecimal number) should be, you will probably need to open an existing document that already has the label that you want set (applied to it) and then read that label with this line:
label = Excel.ActiveWorkbook.SensitivityLabel.GetLabel</p>
Image Analyst
https://in.mathworks.com/matlabcentral/profile/authors/1343420
tag:in.mathworks.com,2005:Topic/871461
2024-07-26T08:24:13Z
2024-08-08T15:01:38Z
Can someone tell me what's wrong with this code? This is a problem from Cody. For example, when n=3, the output should be the matrix [1 2 2 3 3 3]
<p>function ans = your_fcn_name(n)
n;
j=sum(1:n);
a=zeros(1,j);
for i=1:n
a(1,((sum(1:(i-1))+1)):(sum(1:(i-1))+i))=i.*ones(1,i);
end
disp</p>
DH
https://in.mathworks.com/matlabcentral/profile/authors/34255609
tag:in.mathworks.com,2005:Topic/873094
2024-08-07T12:50:03Z
2024-08-08T00:23:35Z
Visual PDE
<p>A library of runnable PDEs. See the equations! Modify the parameters! Visualize the resulting system in your browser! Convenient, fast, and instructive.</p><p>Visit https://visualpde.com/explore.html</p>
David
https://in.mathworks.com/matlabcentral/profile/authors/4480925
tag:in.mathworks.com,2005:Topic/873139
2021-02-09T03:35:20Z
2024-08-07T09:57:43Z
Is anyone else disappointed with uifigures?
<p></p>
Daniel Dolan
https://in.mathworks.com/matlabcentral/profile/authors/1495372
tag:in.mathworks.com,2005:Topic/872856
2024-08-05T00:38:02Z
2024-08-05T14:06:15Z
Dynamics of predator-prey model
<p>This project discusses predator-prey system, particularly the Lotka-Volterra equations,which model the interaction between two sprecies: prey and predators. Let's solve the Lotka-Volterra equations numerically and visualize the results.% Define parameters
% Define parameters
alpha = 1.0; % Prey birth rate
beta = 0.1; % Predator success rate
gamma = 1.5; % Predator death rate
delta = 0.075; % Predator reproduction rate</p><p>% Define the symbolic variables
syms R W</p><p>% Define the equations
eq1 = alpha * R - beta * R * W == 0;
eq2 = delta * R * W - gamma * W == 0;</p><p>% Solve the equations
equilibriumPoints = solve([eq1, eq2], [R, W]);</p><p>% Extract the equilibrium point values
Req = double(equilibriumPoints.R);
Weq = double(equilibriumPoints.W);</p><p>% Display the equilibrium points
equilibriumPointsValues = [Req, Weq]</p><p>% Solve the differential equations using ode45
lotkaVolterra = @(t,Y)[alpha*Y(1)-beta*Y(1)*Y(2);
delta*Y(1)*Y(2)-gamma*Y(2)];</p><p>% Initial conditions
R0 = 40;
W0 = 9;
Y0 = [R0, W0];
tspan = [0, 100];</p><p>% Solve the differential equations
[t, Y] = ode45(lotkaVolterra, tspan, Y0);</p><p>% Extract the populations
R = Y(:, 1);
W = Y(:, 2);</p><p>% Plot the results
figure;
subplot(2,1,1);
plot(t, R, 'r', 'LineWidth', 1.5);
hold on;
plot(t, W, 'b', 'LineWidth', 1.5);
xlabel('Time (months)');
ylabel('Population');
legend('R', 'W');
grid on;</p><p>subplot(2,1,2);
plot(R, W, 'k', 'LineWidth', 1.5);
xlabel('R');
ylabel('W');
grid on;
hold on;
plot(Req, Weq, 'ro', 'MarkerSize', 8, 'MarkerFaceColor', 'r');
legend('Phase Trajectory', 'Equilibrium Point');</p><p>Now, we need to handle a modified version of the Lotka-Volterra equations. These modified equations incorporate logistic growth fot the prey population.
These equations are:</p><p>% Define parameters
alpha = 1.0;
K = 100; % Carrying Capacity of the prey population
beta = 0.1;
gamma = 1.5;
delta = 0.075;</p><p>% Define the symbolic variables
syms R W</p><p>% Define the equations
eq1 = alpha*R*(1 - R/K) - beta*R*W == 0;
eq2 = delta*R*W - gamma*W == 0;</p><p>% Solve the equations
equilibriumPoints = solve([eq1, eq2], [R, W]);</p><p>% Extract the equilibrium point values
Req = double(equilibriumPoints.R);
Weq = double(equilibriumPoints.W);</p><p>% Display the equilibrium points
equilibriumPointsValues = [Req, Weq]</p><p>% Solve the differential equations using ode45
modified_lv = @(t,Y)[alpha*Y(1)*(1-Y(1)/K)-beta*Y(1)*Y(2);
delta*Y(1)*Y(2)-gamma*Y(2)];</p><p>% Initial conditions
R0 = 40;
W0 = 9;
Y0 = [R0, W0];
tspan = [0, 100];</p><p>% Solve the differential equations
[t, Y] = ode45(modified_lv, tspan, Y0);</p><p>% Extract the populations
R = Y(:, 1);
W = Y(:, 2);</p><p>% Plot the results
figure;
subplot(2,1,1);
plot(t, R, 'r', 'LineWidth', 1.5);
hold on;
plot(t, W, 'b', 'LineWidth', 1.5);
xlabel('Time (months)');
ylabel('Population');
legend('R', 'W');
grid on;</p><p>subplot(2,1,2);
plot(R, W, 'k', 'LineWidth', 1.5);
xlabel('R');
ylabel('W');
grid on;
hold on;
plot(Req, Weq, 'ro', 'MarkerSize', 8, 'MarkerFaceColor', 'r');
legend('Phase Trajectory', 'Equilibrium Point');</p>
Athanasios Paraskevopoulos
https://in.mathworks.com/matlabcentral/profile/authors/30623616
tag:in.mathworks.com,2005:Topic/866711
2024-06-18T21:19:39Z
2024-08-04T14:38:52Z
Ask Me Anything about image analysis or the Mathworks community
<p>Hello, everyone! Iâ€™m Mark Hayworth, but you might know me better in the community as Image Analyst. I've been using MATLAB since 2006 (18 years). My background spans a rich career as a former senior scientist and inventor at The Procter & Gamble Company (HQ in Cincinnati). I hold both masterâ€™s & Ph.D. degrees in optical sciences from the College of Optical Sciences at the University of Arizona, specializing in imaging, image processing, and image analysis. I have 40+ years of military, academic, and industrial experience with image analysis programming and algorithm development. I have experience designing custom light booths and other imaging systems. I also work with color and monochrome imaging, video analysis, thermal, ultraviolet, hyperspectral, CT, MRI, radiography, profilometry, microscopy, NIR, and Raman spectroscopy, etc. on a huge variety of subjects.
I'm thrilled to participate in MATLAB Central's Ask Me Anything (AMA) session, a fantastic platform for knowledge sharing and community engagement. Following Adam Danzâ€™s insightful AMA on staff contributors in the Answers forum, Iâ€™d like to discuss topics in the area of image analysis and processing. I invite you to ask me anything related to this field, whether you're seeking recommendations on tools, looking for tips and tricks, my background, or career development advice. Additionally, I'm more than willing to share insights from my experiences in the MATLAB Answers community, File Exchange, and my role as a member of the Community Advisory Board. If you have questions related to your specific images or your custom MATLAB code though, I'll invite you to ask those in the Answers forum. It's a more appropriate forum for those kinds of questions, plus you can get the benefit of other experts offering their solutions in addition to me.
For the coming weeks, I'll be here to engage with your questions and help shed light on any topics you're curious about.</p>
Image Analyst
https://in.mathworks.com/matlabcentral/profile/authors/1343420
tag:in.mathworks.com,2005:Topic/872581
2024-08-02T20:01:59Z
2024-08-02T20:01:59Z
What Olympic sports to you like to watch most?
Image Analyst
https://in.mathworks.com/matlabcentral/profile/authors/1343420
tag:in.mathworks.com,2005:Topic/871716
2024-07-29T00:58:13Z
2024-08-02T18:12:43Z
writing matlab code using llm
<p>hello i found the following tools helpful to write matlab programs. copilot.microsoft.com chatgpt.com/gpts gemini.google.com and ai.meta.com. thanks a lot and best wishes.</p>
supercomputers
https://in.mathworks.com/matlabcentral/profile/authors/34527997
tag:in.mathworks.com,2005:Topic/847971
2020-06-28T10:27:32Z
2024-08-02T02:40:22Z
What frustrates you about MATLAB? #2
<p></p>
Rik
https://in.mathworks.com/matlabcentral/profile/authors/3073010
tag:in.mathworks.com,2005:Topic/871701
2024-07-28T20:59:39Z
2024-07-31T19:30:22Z
Looking for Beginner Courses on Drone Programming
<p>Hi everyone,</p><p>I've recently joined a forest protection team in Greece, where we use drones for various tasks. This has sparked my interest in drone programming, and I'd like to learn more about it. Can anyone recommend any beginner-friendly courses or programs that teach drone programming?</p><p>I'm particularly interested in courses that focus on practical applications and might align with the work we do in forest protection. Any suggestions or guidance would be greatly appreciated!</p><p>Thank you!</p>
Athanasios Paraskevopoulos
https://in.mathworks.com/matlabcentral/profile/authors/30623616
tag:in.mathworks.com,2005:Topic/848111
2015-08-14T19:16:49Z
2024-07-30T20:30:00Z
[DISCONTINUED] MATLAB Answers Wish-list #4 (and bug reports)
<p>This topic is for features you would like to see for the MATLAB Answers facility itself, and also for bug reports about the MATLAB Answers facility.</p><p>This topic is the follow on to the first <a href = "http://www.mathworks.com/matlabcentral/answers/994">Wish-list for MATLAB Answer sections</a> and second <a href = "http://uk.mathworks.com/matlabcentral/answers/42413-matlab-answers-wish-list-2-and-bug-reports">MATLAB Answers Wish-list #2 (and bug reports)</a>. Those grew large enough to become unwieldy; and Mathworks has made enough changes to make a number of the past points no longer of relevance. More recently there was the limited purpose <a href = "http://uk.mathworks.com/matlabcentral/answers/216662-new-design-of-the-forum-grey-on-white-wish-list-3-bug-reports">New design of the forum - grey on white</a> which turned into a bug and wish list; I have renamed that for continuity.</p><p>I suggest one wish (or bug report) per answer, so that people can vote their wishes.</p>
Walter Roberson
https://in.mathworks.com/matlabcentral/profile/authors/434782
tag:in.mathworks.com,2005:Topic/871971
2024-07-30T16:55:22Z
2024-07-30T16:55:22Z
Week of July 30th - Must-See MATLAB Central Posts
<p>Hello, MATLAB enthusiasts! ðŸŒŸ
Over the past few weeks, our community has been buzzing with insightful questions, vibrant discussions, and innovative ideas. Whether you're a seasoned expert or a curious beginner, there's something here for everyone to learn and enjoy. Let's take a moment to highlight some of the standout contributions that have sparked interest and inspired many. Dive in and see how you can join the conversation or find solutions to your own challenges!</p><p>Interesting Questions
How can i edit my code which works on r2014b version at work but not on my personal r2024a version? by Oluwadamilola Oke
Oluwadamilola Oke is seeking assistance with a MATLAB code that works on version r2014b but encounters errors on version r2024a. The issue seems to be related to file location or the use of specific commands like movefile. If you have experience with these versions of MATLAB, your expertise could be invaluable.
Something doesn't work for me in fit by Yohay
Yohay has been working on a simulation to measure particle speed and fit it to the Maxwell-Boltzmann distribution. However, the fit isn't aligning perfectly with the data. Yohay has shared the code and histogram data for community members to review and provide suggestions.
Request about comment char % vs C++ // by Alessandro Livi
Alessandro Livi is toggling between C++ for Arduino Pico and MATLAB App Designer. They suggest an enhancement where typing // for comments in MATLAB automatically converts to %. This small feature could improve the workflow for many users who switch between programming languages.</p><p>Popular Discussions
Gabriel's Horn by Athanasios Paraskevopoulos
Athanasios Paraskevopoulos has started an engaging discussion on Gabriel's Horn, a shape with infinite surface area but finite volume. The conversation delves into the mathematical intricacies and integral calculations required to understand this paradoxical shape.
Matlab Custom Font by Honzik
Honzik has brought up an interesting topic about custom fonts for MATLAB. While popular coding fonts handle characters like 0 and O well, they often fail to distinguish between different types of brackets. Honzik suggests that MathWorks could develop a custom font optimized for MATLAB syntax to reduce coding errors.</p><p>From the Blogs
Derivative of state â€˜1â€™ in block â€˜X/Y/Integratorâ€™ at time 0.55 is not finite By Guy Rouleau
Guy Rouleau addresses a common error in Simulink models: "Derivative of state '1' in block 'X/Y/Integrator' at time 0.55 is not finite." The blog post explores various tools and methods to diagnose and resolve this issue, making it a valuable read for anyone facing similar challenges.
Animating Science: Creating Time-Sensitive Animations with MATLAB by Gianluca Carnielli
Guest writer Gianluca Carnielli, featured by Adam Danz, shares insights on creating time-sensitive animations using MATLAB. The article covers controlling the motion of multiple animated objects, organizing data with timetables, and simplifying animations with the retime function. This is a must-read for anyone interested in scientific animations.</p><p>Feel free to check out these fascinating contributions and join the discussions! Your input and expertise can make a significant difference in our community.</p>
David
https://in.mathworks.com/matlabcentral/profile/authors/4480925
tag:in.mathworks.com,2005:Topic/871646
2024-07-27T11:31:08Z
2024-07-27T23:45:22Z
"Satellite Communication simulation(main title)" Undergraduate projects, Do you have any good Ideas?
<p></p>
lewis
https://in.mathworks.com/matlabcentral/profile/authors/33636926