Question


Is there a clever way to isolate Simulink Parameter callback workspace?
The |run| command runs a script in the |caller| workspace. That got me thinking that there might be a clever way to run code in ...

meer dan 6 jaar ago | 1 answer | 0

1

answer

Answered
How do I compare a Simulink Disabled Library Block Against the Library?
One workaround is to put the blocks that you want to compare in there own models and save them as model1 and model2. Then you ca...

meer dan 6 jaar ago | 0

Question


Why does the Simulink block mask initialization run twice?
If you are debugging a mask initialization, use the |keyboard| function to stop the code inside the Simulink block mask initiali...

meer dan 6 jaar ago | 1 answer | 0

1

answer

Question


How do I compare a Simulink Disabled Library Block Against the Library?
# I made a library block. # I made a model that used that library block and I "disabled" the library link. # I want to compa...

meer dan 6 jaar ago | 2 answers | 2

2

answers

Question


Tight Boundary around a Set of Points
I want to draw a tight boundary around a set of points. The code is used below to draw the black boundary around the blue points...

bijna 8 jaar ago | 3 answers | 0

3

answers

Question


Multidimensional array indexing question
I have a matrix |x| that is of size [61 2 45]. linearIndex = find(x(:,1,:) < x(:,2,:)); xAverage = (x(:,1,:) + x(:,2,:))...

bijna 8 jaar ago | 2 answers | 0

2

answers

Question


Sundials Solver in MATLAB/Simulink
I noticed that the <https://computation.llnl.gov/casc/sundials/main.html Sundials solver> is implemented and and used someplace...

meer dan 8 jaar ago | 3 answers | 0

3

answers

Answered
Large Sparse Rectangular Over-determined Equation System (to reorder or to not reorder)
In |spparms.m| (version 2015b) there is the following note: % Solving rectangular matrices within \ and /: % The ...

meer dan 8 jaar ago | 0

| accepted

Answered
Large Sparse Rectangular Over-determined Equation System (to reorder or to not reorder)
I found the <https://youtu.be/7ph4ZQ9oEIc video on SuiteSparse> was very helpful. It talked about least square matrix problems a...

meer dan 8 jaar ago | 0

Answered
i am solving over-determined system but when i run my code its give me result inner dimension mismatch how to solve it
Your code is a bit cryptic because it is clear you don't know the right MATLAB syntax. So the way I will try to help is guess at...

meer dan 8 jaar ago | 0

| accepted

Answered
Though the processed signal plays in spectrogram demo , it doesnt play in vlc media player or any other players!!! what do i do now???
How did you write the file to an audio file? Did you use audiowrite? http://www.mathworks.com/help/matlab/ref/audiowrite.html...

meer dan 8 jaar ago | 0

Question


Large Sparse Rectangular Over-determined Equation System (to reorder or to not reorder)
I have a sparse rectangular matrix A of size m x n. m > n always. I want to solve this system of equations in a least squares ma...

meer dan 8 jaar ago | 3 answers | 0

3

answers

Question


pathdef.m, MATLAB upgrade, and Linux
I use a custom pathdef.m on linux. When I upgrade my MATLAB, the pathdef.m file from the previous setup isn't correct anymore be...

meer dan 8 jaar ago | 1 answer | 0

1

answer

Question


What is the best way to get the name of a variable in a script?
What is the best way to get the name of a variable in a script? The below code works but I am wondering if there is a built-i...

meer dan 8 jaar ago | 2 answers | 6

2

answers

Question


What is the best way to write a duration type to an Excel file?
I have an array of duration type. I want to write it to Excel and then use it as a time in excel. Is there a recommended way to ...

meer dan 8 jaar ago | 2 answers | 0

2

answers

Question


hh:mm:ss string to duration type
I have strings that look like this: '24:06:26' and '7:20:26'. I want a duration type. What is the best way to get this? All I...

meer dan 8 jaar ago | 1 answer | 0

1

answer

Question


Using Deval with Simulink Output
Is there a way to use |deval| with the output from simulink. |deval| works fine with a solution structure from the ODE integrato...

ongeveer 9 jaar ago | 1 answer | 0

1

answer

Question


Set of Complex Numbers Symbol in Published Code
How do I use the symbol for the complex number set in latex markup in MATLAB? None of these have worked: \mathbb{C} \Co...

meer dan 9 jaar ago | 1 answer | 0

1

answer

Answered
Spellcheck functionality in MATLAB editor
Spell check would be great if it only corrected comments. It must not operate on code. I would use it. I use Notepad++ to s...

meer dan 9 jaar ago | 4

Answered
Partition Domain Given Data of the Form w = f(x,y,z)
The function below exploits the fact that you can use the point u = [x,y,z] to calculate the partition location of the point. O...

ongeveer 10 jaar ago | 1

| accepted

Answered
How to solve differential equations with parameters using fmincon to find out optimized parameters
You need two functions: # Function to compute derivative. Mine is called "derivative." # Function to compute objective func...

ongeveer 10 jaar ago | 2

| accepted

Answered
How to determine the Voronoi center coordinates knowing ?
This does not deal with the inf's. You will have to replace the infinities with finite values on your boundary to get a better ...

ongeveer 10 jaar ago | 0

Answered
Voronoi Diagram with Delaunay Triangulation overlay
Try this: clc; clear all; close all; n=5; x = 10*rand(1, n); y = 10*rand(1, n); voronoi(x,y,'--k'); DT =...

ongeveer 10 jaar ago | 2

| accepted

Answered
How to make the attachment like simulation on MATLAB...I can not find how they have done this
Have you tried SimMechanics?

ongeveer 10 jaar ago | 1

| accepted

Answered
How to colour a 3D image with a continuous spectrum of colours
The |patch| command's fourth argument, C, is the color of the that patch. Your C matrix is C=0. That is the problem. Instead ...

ongeveer 10 jaar ago | 3

| accepted

Answered
How can i put my output numbers in for loop to an array
This assumes the bitmaps are all the same size: myArray = [img{:}];

ongeveer 10 jaar ago | 2

| accepted

Answered
How to minimize [sum of four equations] when I have their differential equations with two variables
This is a prime candidate for "grey box" modeling with the "System Identification Toolbox" which has a nice GUI. If you want ...

ongeveer 10 jaar ago | 1

| accepted

Answered
Where can I find a list of built-in example data?
This will work: pathFolderList = strsplit(path(),';'); matFilesOnPath = cell(size(pathFolderList)); matFileCount = 0; ...

ongeveer 10 jaar ago | 1

Answered
load a file and sort out bad data.
You should use the lower level fgetl which gets one line at a time as a string. You can then parse that line in a while loop. ...

ongeveer 10 jaar ago | 1

| accepted

Answered
How to ignore specific parts of a plot ??
Given the mesh I see in your picture, the following works becuase your elements are not distorted and your edges are very close ...

ongeveer 10 jaar ago | 2

| accepted

Load more