MATLAB Central Discussions - Join the conversation!
メインコンテンツ

結果:


The MATLAB Answers community is an invaluable resource for all MATLAB users, providing selfless assistance and support. However, with the emergence of AI-based chatbots, like chatGPT, there may be concerns about the future relevance and utility of the MATLAB Answer community. What are your thoughts?
Prakhar Rathore
Prakhar Rathore
最後のアクティビティ: 2023 年 9 月 13 日

Hello, Recently I have started working on a thermal management project at my Institute. I am taking some hints from en example of EV thermal management provided by MATLAB. I am having an issue in deciding how the battery current and powertrain heat load is calculated as a function of vehicle speed. It would be helpful if someone could provide some links or references regarding this. (Also, attaching a screenshot of the example for better understanding)
Adam Danz
Adam Danz
最後のアクティビティ: 2024 年 10 月 7 日

figure out what my old code does
18%
write code comments for future me
11%
address a code analyzer warning
3%
reflect on the skills I've gained
8%
get food on my mouse and keyboard
38%
All of the above
22%
16434 票
Getting Started with Simulink | Tips and Tricks to Get the Most Out of Simulink
Watch live as Tianyi Zhu and Ashwin Dhawad walk through how you can get started with Simulink by modeling, simulating, and tuning a PID controller for a DC Motor. This session isn’t just for beginners; they will show you the latest and greatest tips and tricks to help you get the most out of Simulink.
Date & Time: May 25, 2023 at 11:00 am EDT (see time in your time zone)
I am processing ocean and climate data (1982-2022). Here, I have table which having heatwaves events details. Now, I want to sort the data month wise and also seasonal wise (summer:October- February, and winter:March-September), and then i wanted to plot mean seasonal and trend.
Sample file is attached. length of original file may vary in size.
Thanks in addvance.
Toshiaki Takeuchi
Toshiaki Takeuchi
最後のアクティビティ: 2023 年 5 月 22 日

MATLAB Central has been great community-based MATLAB resources, but you can now access its content programmatically via the public API, and I created a MATLAB function to take advantage of that. You can learn more here https://api.mathworks.com/community
Example:
data = searchMATLABCentral("plotting",scope="matlab-answers",sort_order="created desc",created_after=datetime("2023-01-01"));
T = struct2table(data.items);
T(:,["created_date","title","is_answered"])
Output
Function
function results = searchMATLABCentral(query,options)
% SEARCGMATLABCENTRAL retrieves content of the MATLAB Central for a given
% query and returns the result as a struct.
% The function uses MathWorks RESTful API to search for content.
% The API is rate limited via IP throttling. No authentication is required.
% See API documentation for more details https://api.mathworks.com/community
%
% Input Arguments:
%
% query (string) - Required. The search query string.
% scope (string) - Optional. Specify the artifact. If not specified,
% the scope defaults to 'matlab-answers'.
% Other options include 'file-exchange','blogs','cody',
% 'community-highlights', and 'community-contests'.
% tags (string) - Optional. Specify a comma-separated list of tags.
% created_before (datetime) - Optional. Specify the last date in the results
% created_after (datetime) - Optional. Specify the first date in the results
% sort_order (string) - Optional. Speficy the order of the results.
% If not specified, it defaults to "relevance desc".
% Other options include 'created asc', 'created desc',
% 'updated asc','updated desc', 'relevance asc',
% and 'relevance desc'.
% page (integer) - Optional. Specify the page to retrieve.
% If the 'has_more' field in the result is positive,
% increment this argument to retrieve the next page.
% count (integer) - Optional. Specify the number of results as a value
% between 1 and 50; The default is 10.
%
% Output Arguments:
%
% results (struct) - Structure array containing the results of the search.
% validate input arguments
arguments
query string {mustBeNonzeroLengthText,mustBeTextScalar}
options.scope string {mustBeMember(options.scope,["matlab-answers", ...
"file-exchange","blogs","cody","community-highlights", ...
"community-contests"])} = "matlab-answers";
options.tags string {mustBeNonzeroLengthText,mustBeVector}
options.created_before (1,1) datetime
options.created_after (1,1) datetime
options.sort_order string {mustBeMember(options.sort_order,["created asc", ...
"created desc","updated asc","updated desc","relevance asc","relevance desc"])}
options.page double {mustBeInteger,mustBeGreaterThan(options.page,0)}
options.count double {mustBeInteger,mustBeInRange(options.count,1,50)}
end
% API URL and endpoint
url = "https://api.mathworks.com/community";
endpoint = "/v1/search";
% convert MATLAB datetime to the internet datetime format string
if isfield(options,"created_before")
options.created_before = string(options.created_before,"yyyy-MM-dd'T'HH:mm:ss'Z'");
end
if isfield(options,"created_after")
options.created_after = string(options.created_after,"yyyy-MM-dd'T'HH:mm:ss'Z'");
end
% convert optional inputs into a cell array of key-value pairs
keys = fieldnames(options);
vals = struct2cell(options);
params = [keys,vals].';
% call the API
try
results = webread(url+endpoint,"query",query,params{:});
catch ME
rethrow(ME)
end
end
Congratulations, @John D'Errico for winning the Editor's Pick badge awarded for MATLAB Answers, in recognition of your awesome solution in What to be chosen c so that all elements of matrix B will be a round number. B=A.c; where A is the matrix of non integers. The OP has not accepted his answer yet, but
As with other nominated answers, you provided detailed explanation with examples to show that what the OP is looking for may not be possible in some cases.
Unfortunately, you can only get this badge once - perhaps this raises a question about how this award should work. In any case, we nonetheles appreciate your ongoing effort to help other users in the community. Thnk you so much!
MATLAB Central Team
Object Detection and Tracking using Computer Vision
In this event, Matt and Megan show you how to perform one or the more difficult task in computer vision: tracking multiple objects.
They will walk through an example from the new Coursera specialization, Computer Vision for Engineering and Science. The code and video used in the example are available to those who sign up for the specialization.
Date & Time: May 11, 2022 at 11:00 am EDT (see time in your time zone)
Chen Lin
Chen Lin
最後のアクティビティ: 2023 年 5 月 9 日

AI
22%
Wireless Connectivity and Radar
4%
Autonomous Systems and Robotics
15%
Cloud, Enterprise, and DevOps
2%
Algorithms and Data Analytics
17%
Modeling and Simulation
36%
179 票
goc3
goc3
最後のアクティビティ: 2023 年 8 月 18 日

<= 6 GB
10%
7–12 GB
26%
13–22 GB
34%
23–46 GB
19%
47–90 GB
6%
>= 91 GB
6%
15925 票
goc3
goc3
最後のアクティビティ: 2023 年 7 月 18 日

Yes, the available tools are great
12%
Yes, the available tools need help
6%
No, but I would like to
14%
No, it is not important to me
7%
What is test-driven development?
61%
1955 票
goc3
goc3
最後のアクティビティ: 2023 年 7 月 18 日

Always
12%
Sometimes
11%
In the past, but not now
3%
Never
20%
What is Simulink Project?
53%
2443 票
goc3
goc3
最後のアクティビティ: 2023 年 6 月 9 日

Always
8%
Sometimes
9%
In the past, but not now
2%
Never
23%
What is MATLAB Project?
58%
4533 票
Guy Rouleau
Guy Rouleau
最後のアクティビティ: 2023 年 4 月 24 日

Absolute path
14%
Relative inside the top project
48%
Relative outside the top project
19%
All the above
19%
21 票
Image Analyst
Image Analyst
最後のアクティビティ: 2023 年 4 月 28 日

Beginner, Novice, still learning
50%
Adequate, I can get by easily
34%
Proficient / fluent can do anything
12%
Grand Master, one of the very best
3%
2510 票
Hans Scharler
Hans Scharler
最後のアクティビティ: 2023 年 5 月 9 日

AI, Robotics, Autonomous Systems: MATLAB EXPO is coming up soon and it is time to register. It's free and open to everyone. You will have the opportunity to connect with engineers, scientists, educators, and researchers, and new ideas.
disp('It is time to register for MATLAB EXPO 2023!');
Featured Sessions:
  • Project-Based Learning and Design with Simulation - Professor Claire Lucas, King’s College London
  • How Siemens Energy Enables the Global Energy Transition - Jens Dietrich, Siemens Energy AG
Features Topics:
  • AI
  • Autonomous Systems
  • Electrification
  • Robotics
Congratulations, @John D'Errico for winning the Editor's Pick badge awarded for MATLAB Answers, in recognition of your awesome solution in How to fit a biexponential decay function
You explained the general process of solving this problem and explored several options until he got to the a good model. This is very instructional and would be useful for anyone who run into similar problems.
Unfortunately, you can only get this badge once - so there will be no new badge for you this time, but we nonetheles appreciate your ongoing effort to help other users in the community. Thnk you so much!
MATLAB Central Team
Tadas Bekisas
Tadas Bekisas
最後のアクティビティ: 2023 年 4 月 19 日

Hello,
can someone help me with HEV model? I have no experience with simulink modeling, maybe someone have any simple HEV models or any tutorials how to start everything? :)
Thank you.
Chang
Chang
最後のアクティビティ: 2023 年 4 月 11 日

I am using simulink to generate a simple ADC sampling code. I configured ADC module in software mode, which updates the sampled value according to the sample time configured in the module. I set the sample time to 1e-4, 1e-5, 1e-6 respectively. But it seems that the sampling speed did not reach the value I set. I suspect it has something to do with the read and write operations, but I am not sure if that's the reason.
I also tried to do it using PWM event to trigger the start of conversion of ADC. Same problem happened. Because I connect a potentiometer and turn its knob slowly, the Graph on CCS is correct while when I turn it very quickly, the graph is not able to keep up with my movements. So the sampling rate is surely not enough. I wonder what I should do to successfully configure this model, thanks in advance!
Jonathan Jerrett
Jonathan Jerrett
最後のアクティビティ: 2023 年 4 月 19 日

Hello,
I have an Open Loop Transfer Function:
Gc(s)Gp(s) = aKp(1+Tis) / Tis(s+1+p)
It was decided for this system a=5, Ti=0.1 and p=0.5
What would the poles and zeroes be for this?
Ive done the other examples but this one looks very different to the other questions and it has me stuck.
Any help is appreciated and sorry if this is the wrong place to post such questions.
Go to top of page