Category Matlab

Matlab News Blog From https://blogs.mathworks.com/

Mixing subscripts with linear indices

Mixing subscripts with linear indices

Generally speaking, I have found that it has always been possible to mix subscript and linear array indexing with any n-dimensional array, as long as it is in the form, A(subscript_1,subscript_2,…,subscript_n, linear_index). For example, given, A = reshape((1:24)*3, [4, 3,…

Why my push-pull is giving 0 V?

Why my push-pull is giving 0 V?

Hi, I am designing a push-pull converter. I copied the control from this example after having tried the control that was in another example made by a user. However, that one wasn’t giving a correct closed-loop answer as it was…

Error when I want to open files

Error when I want to open files

When I want to open a file from my computer (I want to open a matlab file) I get the following error: Exception in thread "AWT-EventQueue-0": com.mathworks.util.event.EventListenerInvocationException: Error firing event: caused by: java.util.MissingResourceException: Can’t find bundle for base name SLDD:sldd,…

Example Does Not Work

Example Does Not Work

I try to run the example. The second line of code workerToClient = parallel.pool.PollableDataQueue(Destination="any") gives me this error: Error using parallel.pool.PollableDataQueue (line 28) Too many input arguments. I remove the Destination = "any" argument and that seems to get things…

Finite elements model using STABIL

Finite elements model using STABIL

We are working on a finite elements model using the plug-in STABIL. We get no errors but our displacements are all giving NaN as solution. Can someone explain the meaning of these NaNs? Our K and P matrix look logical…

Why isn’t this breaking the loop?

Why isn’t this breaking the loop?

I have tried to use an ouptut argument to make a variable and use that variable in my main script, however when it is returning the value I want, it still isnt breaking the while loop? Code for the function:…

Incompatible array sizes error in hppcTest

Incompatible array sizes error in hppcTest

Hello team, I am using the Simscape battery toolbox to estimate ECM Parameters from HPPC test data following the similar example provided. When I load my hppc data, and run hppcTest, I get the error Arrays have incompatible sizes for…