Question

How can I model time-independent models in Simulink?

I have a physical component library, implemented as a forest of Matlab classes, where each object would represent a fairly indep...

etwa ein Monat ago | 0 answers | 0

Question

Why is matlab fixed pint arithmetic so slow?

I don't have a very strong FPU (no video card). I intended to accelerate my computation representing floating point numbers as 3...

4 Monate ago | 0 answers | 0

Question

optimplot optimization monitoring if the optimfunction has a parfor loop inside doesn't redraw the figure.

Hello, everyone. I have a very heavy optimization process, with each step requiring several hours of running. To increase th...

6 Monate ago | 0 answers | 0

Question

Reusing getters for every property of a class. (For verifying an object state.)

I have a fairly complicated Matlab class with many properties, which are classes themselves. In total, the amount of properti...

11 Monate ago | 0 answers | 0

Question

How can I indent the output of display() and disp()?

I am writing a small snippet to display trees of objects hierarchically. I want to use standard Matlab functions as much as po...

etwa ein Jahr ago | 3 answers | 0

Question

How does Curve Fitting Toolbox's fit() function works with non-differentiable expressions?

As far as I understand, fit() uses Levenberg-Marquardt's method of function optimization, which is a gradient-based method (modi...

mehr als ein Jahr ago | 0 answers | 0

Answered

Is it possible to have private folders in packages?

A private folder in a package works fine in my Matlab 2013a. What doesn't work, however is non-private package subfolders. ...

Is it possible to have private folders in packages?

A private folder in a package works fine in my Matlab 2013a. What doesn't work, however is non-private package subfolders. ...

mehr als ein Jahr ago | 0

Question

Why did the -nodesktop startup option disappeared from the documentation?

On Windows one can run Matlab without the IDE by supplying the '-nodesktop' option to the matlab command. However, neither th...

etwa 2 Jahre ago | 1 answer | 0

Question

Which function do I need to rearrange a symbolic expression?

I have an expression of the form: 4t(a+b-c)^2 + (x-a)^2 + (y-b)^2 + (z-c)^2 I need to rearrange it to the form: (some...

mehr als 2 Jahre ago | 1 answer | 0

Answered

How can I add text to an image and make the text become part of the image within MATLAB?

Unfortunately, the insertText function is excruciatingly slow, 0.04 seconds per call. That is ~1.5 seconds on 40 objects. ...

How can I add text to an image and make the text become part of the image within MATLAB?

Unfortunately, the insertText function is excruciatingly slow, 0.04 seconds per call. That is ~1.5 seconds on 40 objects. ...

fast 4 Jahre ago | 0

Question

How do I index an array/cell array with an array?

I am sorry, it's a very newbie question, but I am nearly lost. So I have a cell array data2 = num2cell(magic(5)) And I...

etwa 4 Jahre ago | 2 answers | 0

Question

How to keep a GUI in sync with internal state?

Hello, everyone. My question is the following: Suppose you have a fairly large figure with many tables and other component...

mehr als 4 Jahre ago | 0 answers | 0

Question

What is the smart way of managing data in Matlab?

The question is a bit vague, but I'll try to explain. I have a rather ugly data source (bad quality scans of handwritten note...

fast 6 Jahre ago | 0 answers | 0

Question

Is it possible to generate automatic stubs for default functions? (GUI for example)

The question is the following. I want MATLAB to automatically generate stubs for unimplemented functions. I am writing a f...

fast 6 Jahre ago | 0 answers | 0

Question

How can I create a nested figure/my own component?

I need to create my own simple compound GUI control, but I do not want to dig into AciveX. The thing is - I need to define a ...

mehr als 7 Jahre ago | 3 answers | 1

Question

How do i create "projects"?

I am writing something like an application in Matlab. What annoys me most is the need to click through the directory tree in ...

fast 8 Jahre ago | 2 answers | 1

Question

How to solve nonlinear equations?

I need to solve the nonlinear equation: (x-m1)'Y1(x-m1)=a*(x-m2)'Y2(x-m2) 'm1' and 'm2' are 2-dim vectors, Y1 and Y2 - 2-d...

etwa 8 Jahre ago | 1 answer | 0