メインコンテンツ

結果:


Chanaka Prabhath Karunarathna
Chanaka Prabhath Karunarathna
最後のアクティビティ: 2020 年 2 月 10 日

I have 1942x1 cell msgs. Single msg format is 1x1 Float64MultiArray. Inside that there is Data 16x1 double. I need to extract data and store them as vector [1942x16]. I was able to read every data and transpose them into 1x16. Now I need to store that 1x16 by row and build final 1942x16 vector. Does anyone have an idea for that?

ravi sankar
ravi sankar
最後のアクティビティ: 2020 年 2 月 20 日

how to Design ALMS algorithm using simulink please help me, for learning adaptive lms algorithms using simulink..without using LMS block

Droncan Aers
Droncan Aers
最後のアクティビティ: 2020 年 2 月 18 日

Good morning everyone,

I recently approached Simscape environment to similute (simple) electrical circuits based on resistors (R), capacitances (C) and direct current generators (I). The experience has been quite satisfactory.

Now I have to couple the Simscape models to novel modifications of sampling-based sensitivity analysis techniques and/or non gradient-based optimization methods (genetic algorithms, particle swarm, particle filters, etc) for model calibration. In this regard, I am not keen on potentilities offered by other toolboxes implemented in Simulink environment, rather than I would like to: i) to update the values of resistors, capacitances and current generators from script ii) to run the simulation from script iii) to collect the output in matlab workspace.

I looked for a while in possible solutions but I understood that it is not an easy task, and that the most common approach is to open the resume mask and manually update the parameters.

I wonder if there is any approach to do what I previously described. I know that it is possible with Simulink model, but have no idea if I can do the same with Simscape model.

The attached image is an example of Simscape model that I want to embed in a sensitivity analysis/optimization loop.

Thank you in advance for your kind advices

Hi,

I am trying to design a Simulink model for transmission cable to characterize some features of an existing electrical system. I am using the Lumped Parameter L-section with few segments. I want to set initial conditions to each segment capacitors. Is there a way I can set those?

Thanks in Advance.

Hi, I'm trying to solve this problem but I'm getting an error so far.
Problem:
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have
a = [1 2 2 2 1 3 2 1 4 5 1]
The answer would be 2, because it shows up three consecutive times
What I've written so far (not done):
a = [1 2 2 2 1 3 2 1 4 5 1];
[x,y] = size(a);
counter = zeros(1,10);
if x == 1
for i=1:1:y
if a(i) == a(i+1)
counter(a(i)) = counter(a(i))+1
end
end
else
for i=1:1:x
if a(i) == a(i+1)
counter(a(i)) = counter(a(i))+1
end
end
end
But it says "error" in the line of "if a(i) == a(i+1)". I noticed that it creates a variable called "i" which value is 11, but it should create a vector from 1 to 11. What's wrong here?
I know my solution might not be in the right direction or something, but please don't tell me anything!
Thanks in advance
vishnu thilack
vishnu thilack
最後のアクティビティ: 2020 年 1 月 10 日

Actually i have chosen the DC link capacitance in my inverter circuit. i wanted to know how to perform a simulation of it in MATLAB and to check the affecting parameters when the capacitance is varied and obtain a 3D graph.

I have simulated the photovoltaic (PV) module on Simulink as in my simulation. I want to transfer the signals of I-V scope into the plot in Matlab. But the scope do not show the voltage value on the X-axis. Instead, the X-axis shows the time. As a result, when I use the data saved in Matlab workspace, I just get the current-time plot instead of current-voltage plot. How can I fix this problem ? ( The current-time plot is the same as the I-V characteristic in datasheet of the PV panel, but the X-axis expresses the time value. I want to change it into voltage value)

mehmet salih fidaner
mehmet salih fidaner
最後のアクティビティ: 2019 年 12 月 23 日

hi MPPT on the designed bosst circuit does not work correctly. can you help?

SHIVA NAND YADAV
SHIVA NAND YADAV
最後のアクティビティ: 2020 年 2 月 19 日

From where i can start to learn . Please suggest a particular topic or lectures.

SHIVA NAND YADAV
SHIVA NAND YADAV
最後のアクティビティ: 2019 年 12 月 11 日

Hi,Everyone,I am new member here. I want to learn simulation on projects. Please suggest, from where i can start Simulink easily and learn from Basics to Advance level.

younes youyou
younes youyou
最後のアクティビティ: 2019 年 12 月 10 日

have anyone use multiobjective function optimization via PSO namely MOPSO ?? I need some help

Tobias Kumie
Tobias Kumie
最後のアクティビティ: 2019 年 12 月 6 日

Hello Everyone,

I would like to perform the cross correlation function (crosscorr (y1,y2)) for my data but donot have the Econometrics Toolbox to compute this. Can someone in here help me to get this toolbox or else show me where I could get one?

many thanks, Tobias

Jan
Jan
最後のアクティビティ: 2024 年 10 月 4 日

After reading Rik's comment I looked for a list of Matlab releases and their corresponding features. Wiki: Matlab contains an exhaustive list, but what about having a lean version directly in the forum?
If this is useful, feel free to expand the list and to insert additions. Thank you.
Rik
Rik
最後のアクティビティ: 2022 年 11 月 4 日

There are multiple ways to create a graphical user interface (GUI) in Matlab. Which method is the best depends on multiple factors: the complexity of the project, to what extent it should be a long-term solution, on what releases your GUI should work, your available time, your skill level, and probably other factors I'm forgetting.
To keep the thread clear I'll attempt to provide a short outline a few ways in this question, and leave the details for the answers. (@anyone with editing privileges: feel free to update the section below if I missed something important and am slow in editing this question)
---------------------------------------------------------------------------------------------------
GUIDE
GUIDE is probably the first tool new users will encounter. It is very useful for quickly putting something together, but it is otherwise fairly limited. It requires maintaining (and distributing) both a .m and a .fig file. Note that the GUIDE environment will be removed in a future release. After GUIDE is removed, existing GUIDE apps will continue to run in Matlab but they will not be editable in GUIDE. If you're starting a new GUI, don't use GUIDE. If you're updating an existing GUIDE GUI, migrate it to AppDesigner. In R2021a the first step for this removal was taken: all templates except the blank template have been removed.
GUILT
Although I haven't had a detailed look myself, it seems a list like this is not complete without at least mentioning the GUI Layout Toolbox, which is available on the file exchange and offers a lot of customization options.
Programmatic GUIs
You can bypass GUIDE and use the normal figures and functions like uicontrol to build GUIs from code. This makes the design less visual, but more flexible for future additions.
App Designer
The official successor to GUIDE, AppDesigner is not based on functions, but works similar to a class. It uses uifigure and mostly uses graphical elements that are incompatible with 'normal' GUIs that are created with a figure (or .fig).
Rik
Rik
最後のアクティビティ: 2024 年 1 月 17 日

This is the 5th installment of the wish-list and bug report thread.
This topic is the follow on to the first Wish-list for MATLAB Answer sections and second MATLAB Answers Wish-list #2 (and bug reports). The third started out as New design of the forum - grey on white and the fourth MATLAB Answers Wish-list #4 (and bug reports) is also growing so large it is slow to load and navigate.
Same idea as the previous ones: one wish (or bug report) per answer, so that people can vote their wishes.
What should you post where?
Wishlist threads (#1 #2 #3 #4 #5 #6): bugs and feature requests for Matlab Answers
Frustation threads (#1 #2): frustations about usage and capabilities of Matlab itself
Missing feature threads (#1 #2): features that you whish Matlab would have had
Next Gen threads (#1): features that would break compatibility with previous versions, but would be nice to have
@anyone posting a new thread when the last one gets too large (about 50 answers seems a reasonable limit per thread), please update this list in all last threads. (if you don't have editing privileges, just post a comment asking someone to do the edit)
Jann B
Jann B
最後のアクティビティ: 2022 年 9 月 18 日

Dear Sir or Madam
I tried to solve the cody-problem namend in the title.
Could you pleas tell me how I should name the vektor/variable in which it should be presentet?
Thank you for helping me.
Yours faithfully
Jann Borlinghaus
Dear MATLAB community,
How can I help my close friend who's bad at math and programming learn MATLAB?
He's a final year chemical engineering student who struggles even to plot two functions on the same graph in his computational fluid dynamics class (there was no prereq for matlab skills).
In his first year, I saw him get dragged through the introductory engineering classes which was his first encounter with MATLAB. Students were taught a few rudimentary programming skills and then were expected to make a code for a 'simple' tic-tac-toe game. It took him hours of blank looks and tutoring to even understand the simplest of boolean operators. He was never able to write a working function without the supervision of a friend or tutor. Needless to say, he was permanently scarred by the experience and swore to avoid using it forever.
After 3 years of avoiding MATLAB, he realised how not knowing it hurt him during his final year project. He had to solve a system of pdes to model the performance of a reactor and practically speaking, MATLAB was the most suitable software at hand. He ended up having to get a friend to help him code the equations in while also having to oversimplify his model.
The weird thing is that: most students from his chemical engineering faculty were not expected or encouraged to use MATLAB, almost all of their prior assignments required no use of MATLAB except that infamous first year course, and most of his peers also avoided using MATLAB and resorted to Excel. It is my understanding that Excel cannot match MATLAB's efficiency and clarity when solving calculus problems so it was not uncommon to see extremely long Excel spreadsheets.
Anyway, my friend is, with the help of a friend's past year MATLAB codes, trying to finish up his computational fluid dynamics assignment that's due soon. He finishes university in 2 weeks time.
Even though he knows that not every engineer has to use MATLAB in the workplace, he somehow wishes he was able to learn MATLAB at his glacial pace. I find it such a pity that he was never able to keep up with the pace of learning that was expected which begs the question: are students who are too slow at learning programming better of in a different field of study?
If you've managed to read to the end of this, thank you so much. I just don't know how to help my friend and I'm hoping some of you might be able to suggest how I can help him be better at it. I believe he has potential but needs special help when it comes to MATLAB.
All helpful and constructive suggestions considered,
Thank You All
Michael Eldredge
Michael Eldredge
最後のアクティビティ: 2017 年 12 月 3 日

I wrote a Cody problem, but I want to prevent people from using tricks to get a false "best" solution.
For example, many people do something like the following:
regexp '' '(?@"CODE HERE)';
in order to get the size of their program down to something quite small. I want to prevent this. I have seen people using some weird tests to try to block this, but I don't know how they work and when I try to copy them they fail.
Axel Nordin Fürdös
Axel Nordin Fürdös
最後のアクティビティ: 2020 年 12 月 26 日

Hi there! This is kind of an unusual question, but here it goes. I am a big time Matlab enthusiast and I met some of your representatives at Formula Student Germany back in August. There was a booth were your product was showcased but most importantly there was Matlab merchandise such as stickers, rub-on-tattoos and pens with the mathworks logo being handed out. This merchandise is increadibly popular with me and my nerdy friends. But sadly I didnt bring much with me from the event. Is it possible to get ahold some of it? Is it for sale? Are you willing to sponsor some geeky engineering students?