Answered
The Power Electronics Simulation Onramp is missing from the Simulink Start Page.
According to the documentation page this Onramp was introduced in release R2022b. This Answers post is tagged with release R2022...

3 years ago | 0

| accepted

Answered
Assign a line in every element of a 3d matrix
If we look at the array you posted, what I think you want would involve the first row of page 1 of val having 10 elements and ro...

3 years ago | 0

Answered
From User Input to File Name
With the clarification in your comment on the answer from @Enrico Gambini, I would use string operations along with the fullfile...

3 years ago | 0

| accepted

Answered
What is the essential difference between matlab's new built-in data type dictionary and the old containers.Map?
The Release Notes state as one benefit "In almost all use cases, dictionary performs faster than containers.Map." You may als...

3 years ago | 0

| accepted

Answered
How to insert a string to a variable name
Should you try to create variables with dynamic names like this? The general consensus is no. That Answers post explains why thi...

3 years ago | 0

Answered
Reading a Graph Object from a Text File
For each line of the text file, use addedge to add an edge between the first state whose abbreviation appears on the line and ea...

3 years ago | 2

| accepted

Answered
Forgot pin for MATLAB R2022b installation
Are you using your company or school's license or are you using a license you purchased yourself? If the former, check with your...

3 years ago | 0

Answered
GUIDE handles not created automatically
When opening the .fig file directly, the layout is correct, but whenever I try to interact with it, I get that dot indexing erro...

3 years ago | 1

Answered
Hi! How can I create a conditional statement from checking if an array is empty? I will paste my non-working code here.
You don't actually have to convert the logical value into double and compare it to 1. From the documentation for the if keyword:...

3 years ago | 1

Answered
An error on Matlab 6.1
Your version of MATLAB is very old (it's over 21 years old!) and predates the introduction of anonymous functions. Anonymous fun...

3 years ago | 1

Answered
What exactly is vectorization doing
When you go grocery shopping do you go from your house to the store, pick up one item, go from the store to your house, and repe...

3 years ago | 0

| accepted

Answered
Application Compiler not Including Toolbox Functions
Without seeing how you're trying to call prctile in your app it's going to be difficult or impossible to give a definitive answe...

3 years ago | 0

Answered
sinc function doesnt work...
The sinc function is part of Signal Processing Toolbox. Check the output of the ver function to see if you have this toolbox ins...

3 years ago | 0

| accepted

Answered
I got the results I was looking for, but I believe there is an easier way to define the changing variable z which I am not sure of. Could you assist in any easier method?
Can you dynamically create variables with numbered names like z1, z2, z3, etc.? Yes. Should you do this? The general consensus ...

3 years ago | 0

Answered
Matlab display images oriented by 180.
Is the image rotated by 180 degrees, or is it flipped top to bottom? The imshow function calls image which states (in part) in t...

3 years ago | 0

Answered
Passing parameters to ODE solver event functions
The options listed on this documentation page, which are basically the same as the ones on the question to which you linked, are...

3 years ago | 0

Answered
A test driven development method to validate bellman-ford algorithm works
Are you familiar with the testing frameworks included in MATLAB? Can you think of test cases with which to try to break your co...

3 years ago | 0

Answered
Create a histogram of data that is already "bincounts"
Addressing just the question of plotting a histogram given bin counts and bin edges rather than the raw data, you can do this by...

3 years ago | 0

Answered
Find the mean of all variables in a table that contain a specific "word" in a defined variable
Use a string processing function like startsWith, contains, or matches to identify those rows in your table that have Left in it...

3 years ago | 1

Answered
How do i set class members by calling its own methods?
By default, classes in MATLAB are value classes. See this documentation page for a discussion of the differences between value c...

3 years ago | 0

Answered
Why isn't my max iterations increasing?
You're not passing the options you set using optimoptions into fsolve. The optimoptions function doesn't change some "global opt...

3 years ago | 0

Answered
Is there any mathematical method of curve fitting for cases when the modeling function is unknown (another degree of freedom for the form of the function)?
Here's a set of points. Can you tell me the equation I'm thinking of that generated this data? x = 1:6; y = zeros(1, 6); No, ...

3 years ago | 1

Answered
How can i convert binary number to galois field integer number ??
Use the Galois field functionality in Communications Toolbox.

3 years ago | 0

Answered
Getting NaN greater values in a function
What is the factorial of 1000 in double precision? factorial(1000) It overflows. If we computed it symbolically, using arbitra...

3 years ago | 0

Answered
How to check if a generated number is between 2 values
Other options that may be able to do what you want include discretize and interp1. x = rand(5, 1) p = 0:10:100; y1 = discreti...

3 years ago | 0

Answered
Need to change Value in a new object but told "read only"
The documentation page to which you linked is for an object in Bioinformatics Toolbox and so isn't really applicable for the uav...

3 years ago | 0

| accepted

Answered
How to evaluate numeric expression in a string, which contains "12u" (for 12e-6) and "0.1m" (for 0.1e-3) formated numbers (standing for micro and milli)?
I'd like to have a "supercharged" eval function This doesn't sound like a good idea. which would accept expressions where numb...

3 years ago | 0

Answered
How do I find a substring within two different strings at once?
If you're using string arrays, we recommend using a string array and not a cell array containing string arrays. If you do, you c...

3 years ago | 0

| accepted

Answered
When I try to use the function 'magic(n)', Matlab says that the execution of the script magic is not supported
Rename the magic.m file that you've created in the /Users/helloooo/Documents/MATLAB folder. It's preventing MATLAB from accessin...

3 years ago | 1

Answered
how to delete certain columns and rows from matrix
Do you know which rows/columns you want to delete or which ones you want to keep? If to keep: M = magic(4) toKeep = [2 4]; A ...

3 years ago | 0

Load more