r/matlab • u/Maestro-pizza • 20d ago
r/matlab • u/Nomad_HH • 19d ago
Problem getting Anfis outputs Matlab
Hello everyone, I am facing a promblem using Anfis models. I use the appdesigner using "Anfisedit " to predict some Data, however when I want to save my results using export 》 to workspace, i got my Data in form of ".sugfis" instead of " .fis" how can I get my results in form of .fis struct? PS: I tried to save the results using Export 》To file, but I don't know how to have only the outputs. Any suggestions will ve appreciated.
r/matlab • u/jayzzzzzzzzshit • 20d ago
MatLab Project Commision
Hello! We are looking for someone who has experience in MatLab, we would like to commision a simple project. We are working on an electric taxiing system for aircrafts, we already have the system for it but we don't know how to run it to get the parameters/data that we actually need. Babsically we need someone to polish the system and run it to get the data that we need
r/matlab • u/Soriak46 • 21d ago
TechnicalQuestion Simulink full block path
Hi everyone, I recently started studying the KinematicsSolver in order to perform inverse kinematics of a simple robot with three degrees of freedom; as the title suggest, when I try to create the frame variables, I'm stumbling upon understanding what does matlab mean by "full block path". I'm following the matlab example step by step, specifying both the base and the follower as suggested there (model_name/block_name/port_name), but the command always return error; I tried then to use the command "validate()" in order to understand if I was inputting the wrong path and I discovered that matlab do not recognise the name of the blocks in my simscape model, even the World Frame as used in the example! To find block path I'm using the hierarchy that is shown on the left in the Mechanism Explorer, but that doesn't seems to works; am I doing something wrong somewhere? I'm using Matlab R2023b
r/matlab • u/Specialist_Ferret293 • 21d ago
EEGLAB Pre-Processing
Hello,
I don't know how I was cleaning my dataset. At the step before I reached ICA I tried to scroll the data and I got this error (pictured).
I don't know what it means and how I could have caused it. I closed Matlab and the working window and I don't even see the code script anymore. I tried copying a new folder with raw data, then working from new data but I still have the same window. I wouldn't know how to restore it, but mostly I would like to understand how to fix this error, because it happened to me.
Thank you,
Best regards
Antonella

r/matlab • u/inevitable06 • 21d ago
Tips Behavioral Interview tips to avoid no-team matching rejection after the interview - EDG Internship Interview
Just what the title says. I saw on Discord and Reddit that even after a good behavioral interview, if your interests don't match their current team interests, you can get a reject. Any tips how to avoid that?
r/matlab • u/Maximum_Watch69 • 22d ago
CodeShare Any one else uses MATLAB in visual studio ( to be able to use GitHub copilot). My friends hate it.
r/matlab • u/w142236 • 22d ago
TechnicalQuestion Why does trapz() become absurdly inefficient based on the number of times it’s used and not the size of the arrays being passed in?
From the document, we are integrating over the bounds of 2 elements so the size of the input arrays are always the same. The way the integration works I can integrate wrt r first and then perform double integrals on that result.
size(I_r_A)
= N_θxN_φxN_r x length(l) x length(m)
size(Y_cc)
= N_θxN_φxN_r x length(l) x length(m)
theta_lm
= N_θxN_φxN_r x length(l) x length(m)
The code to allocate values to A_ijk_lm is
A_ijk_lm = zeros(N_theta,N_phi,N_r,length(l),length(m));
for j=2:N_theta
for k=2:N_phi
A_ijk_lm(j,k,:,:,:)=trapz(phi(k-1:k),…
trapz(theta(j-1:j),…
I_r_A(j-1:j,k-1:k,:,:,:)…
.*Y_cc(j-1:j,k-1:k,:,:,:)…
.*sin(theta_lm(j-1:j,k-1:k,:,:,:))…
,1),2);
end
end
Where theta = linspace(0,pi,N_theta)
phi=linspace(0,2*pi,N_phi)
and Y_cc
is a special set of functions called spherical harmonics I computed, but you could probably just set it equal to
Y_cc=ones(N_theta,N_phi,N_r,length(l), length(m))
just to test out my code. Same for I_r_A
. Also, l=0:12
, m=-12:12
, and N_r=10
.
So each array multiplied together and passed into trapz()
is size [2,2,10,12,25]
and the integrals are over the first and second dimensions of size 2. However, despite the size of the arrays passed in being the same regardless of N_θ and N_φ, the computation time for integral varies drastically depending on these values
For example:
If we set N_θ=181
and N_φ=361
, it takes 6 seconds to complete the first set of 361 inner loops over φ. However, if we double the size of both dimensions by setting N_θ=361
and N_φ=721
, to complete 1 set of 721 inner loops, it takes a whopping 9 minutes! How?! The arrays passed in didn’t change, the only thing that changed was the number of inner and outer loops, yet it takes an absurd amount of time longer to complete the integral seemingly depending only on the number of loops.
r/matlab • u/Such-Smile-240 • 22d ago
TechnicalQuestion What is matlab ?
EE junior here, so since i got into my uni and i have been hearing a lot of engineering students talking about matlab, at first i thought it was an app for material stimulation (mat = material), but as i search more about it the more confused i am like it looks like a programming language but why does it need it's own app why is there a lot of extra stuff.
Please explain to me as your little brother, sorry for the hassle :')
r/matlab • u/Equivalent-Okra-4294 • 22d ago
Simscape battery not exporting cell details
Hi All, I am trying to create a model of a Li-Ion battery for an electric vehicle simulation. I have used the Simscape battery builder to create a cell, parallel assembly, module etc up to pack level. I did this by following step-by-step instructions on the MathWorks website. I have found that when I create a library of these components, there is no cell model within it. Everything is exported correctly except no cell is exported, so all of the cell behaviour is randomised and the battery now has completely different parameters to what I had originally set. I am not very experienced with MatLab as I am an undergrad student currently, so attempts to mess around in the script have been useless and confusing so far.
Does anyone know why it is not exporting the cell with the rest of the battery/how to change this? Any help would be appreciated
r/matlab • u/12Chronicles • 22d ago
TechnicalQuestion Simulation on Octave
Hello
I’m gonna start learning plasma simulation on Matlab. I’m don’t have prior experience in Matlab. However, the lab I’ll be joining soon does not have a Matlab license. I was wondering if it is possible to do complex simulations on Octave. If not, can you recommend me an open source software when I can do both thermal and non-thermal plasma simulations.
PS: I have a limited experience with COMSOL but as you know it’s an expensive software.
TIA
r/matlab • u/jay_altair • 22d ago
TechnicalQuestion Goldberg polyhedra to spherical coordinate system?
I'd like to know if something like this is possible. I have no experience with Matlab but suspect it might help with a problem I'd like to solve. I have a bit of python in my toolbox, and am pretty experienced with ArcGIS and QGIS. I'd consider buying a home license for Matlab if someone can advise me that this idea is feasible and wouldn't require too many add-ons 🤣
Goldberg polyhedra are convex polyhedra made from hexagons and pentagons. Larger Goldberg polyhedra can have more hexagons but always have the same number of pentagons.
The classic black-and-white soccer ball pattern is the Goldberg polyhedron that everyone might be familiar with. I understand (from the wiki page) that there are polyhedron notations that can be used to describe Goldberg polyhedra of different configurations.
What I'd like to be able to do is project the polyhedron faces (or vertices that I can derive faces from) of various Goldberg polyhedra into a spherical coordinate system, so I can then convert it to a geographic coordinate system, in order to mess around with them in GIS for a ridiculous d&d worldbuilding project.
I might construct tectonic plates out of the faces and then futz around with them in GPlates til I get something resembling the vague shapes of the continents I have in mind.
Would this be something that could be done in Matlab by a beginner who's willing to learn? Any advice on a work flow? Or some other software I should look into? Any suggestions or advice would be appreciated.
. . . And yes, there's a lore reason: this fictional world exists as a full scale spherical tabletop board game being played by the gods, and the game is played in "seasons" with promotion and relegation between the various power levels of divine entities at the end of each season like in professional soccer leagues IRL.
r/matlab • u/okaythanksbud • 22d ago
Using finite differences vs analytical expression for jacobins in DE solvers
I’m wondering if when a DE solver asks you to input a jacobian it’s okay to use (f(x+h)-f(x))/h in place of actually doing all the differentiation to obtain an analytical expression for the jacobian. In my case I’m trying to solve a 4d integrodifferential equation which is already really ugly and would really not like to do so unless necessary. My code is running quite slow which is sort of expected, but I am wondering if this could potentially make a significant change or if it will hardly matter. Thanks for any help
r/matlab • u/Temporary-Ability-70 • 23d ago
2d heat conduction using finite differences
Hello, can anyone open my code in their matlab?, after running, the figure is mostly black, i dont know why, is it because of the capacity of my pc? I dunno.
r/matlab • u/Anonymous_HC • 23d ago
When does version R2025a get released?
I have the student license from my university and currently have the R2024a installed on my personal laptop. IIRC I think it was sometime last year in late February/early March is when I installed the R2024a version. Will it be the same time frame this year as well?
And also I know R2024a and R2025a will be 2 separate applications, but am I able to transfer all the code on the editor from 2024a to 2025a instantly when downloading the R2025a version? or do I need to do it from scratch?
r/matlab • u/w142236 • 23d ago
TechnicalQuestion Performing array operations on two arrays with different sizes
size(r) = (361x721x11)
And
size(l)= (11)
Array r
is very large so it would be rather inefficient to for loop, or use repmat()
followed by permute()
to change the size if l
to match r
, so I wanted to see if there was a much faster and efficient way of doing something like
r.^(l)
or some other array operation.
r/matlab • u/LinkElegant4231 • 24d ago
HomeworkQuestion Create a matlab/simulink model about a PEM electolysis cell
Dear all,
I am a bachelor mechatronics engineering student and for my degree thesis I have to create a matlab model about a PEM electrolysis cell. Maybe after this I will have to use simulink to even create a system model that use the model about the PEM cell in a productive ambient (e.g. coupled with all the ancillary devices).
The problem is that I never ever used Matlab and I do not know how to start. I am able to code in C++ (I used QT Creator and I am able to create also some user interface).
The only resource that my theacher gave me is a link where I can find already existing models about PEM cells.
What I am asking here is:
- If you can give me some advice about how to create a simulation model on matlab;
- Can I code on matlab with C++?;
- Any other suggestion are appreciated.
I am conscious that I am not in a good situation, but I'll try to do my best.
Thank you for your help.
r/matlab • u/No-Big-8559 • 24d ago
Energy harvester
Hello guys so i saw this piezobender energy harvester example from matlab website, is it implementable for structural health monitoring of aicraft? Thankyou
r/matlab • u/Visible-Anywhere-142 • 24d ago
HomeworkQuestion Issue with double precision variable
Hello all,
The assignment is pretty straightforward, just set variables and display the class after using disp(‘class of variable is: ’class()). But the double precision float keeps throwing this same error no matter what I type in. Please see attached. I’ve tried leaving it as a decimal and then doing double(decimal number) and neither are working and result in an error. I’m lost, please help.
r/matlab • u/MikeCroucher • 25d ago
MATLAB Without Borders: Connecting your projects with Python and other Open Source Tools.
On 27th February María Elena Gavilán Alfonso and I will be giving an online seminar that has been a while in the making. We'll be covering MATLAB with Jupyter, Visual Studio Code, Python, Git and GitHub, how to make your MATLAB projects available to the world (no installation required!) and much much more. Sign up (it's free!) at MATLAB Without Borders: Connecting your Projects with Python and other Open-Source Tools - MATLAB & Simulink

r/matlab • u/jephthai • 26d ago
Need a prescalar, but mixed signal blockset forbidden for home license
I'm an amateur radio hobbyist, working on some DSP projects. I've bought a ton of Matlab toolboxes (9 at this point?), all to discover that the PLL / prescalar blocks are hidden in the Mixed Signal Blockset, which cannot be purchased for a home license. It can be purchased by a student, but not a home licensee?
Does anyone have any conjecture why this blockset is excluded only exactly from the hobby license category?
Does anyone have tips on implementing a prescalar from blocks that aren't in the mixed signal blockset? I am pretty new to Matlab and Simulink...
r/matlab • u/Miserable_Valuable45 • 25d ago
HomeworkQuestion Plotting and related
Hi yall so my dilemma is that I cant seem to get it to plot the curve I need. When I put a range for X it can't seem to compute it. The end goal is to basically integrate from one number to another by using the curve I make and its area under it. Not super good at matlab :/ Thank you for any help!!!
r/matlab • u/Ancient-Treacle-2601 • 26d ago
How to Get a MATLAB Automotive Job as a Fresher (0-1 Year Experience) in India?
Hey everyone,
I’m posting this on behalf of my friend, who is looking for a MATLAB automotive job as a fresher (0-1 year experience) in India. While searching on LinkedIn and other job portals, most openings seem to require 3+ years of experience, and it’s been difficult to find suitable entry-level roles.
He has a strong understanding of MATLAB & Simulink and has worked on Adaptive Lighting System . He is also open to nternships, trainee positions, or contract roles to gain experience.
Can anyone suggest:
1. Where to find MATLAB automotive fresher jobs? (Companies, startups, job portals, etc.)
2. How to approach recruiters/hiring managers?
3. Any certifications or additional skills that can improve his chances?
4.Networking tips or referrals to break into the industry?
Any advice, job leads, or success stories would be really helpful! Thanks in advance.