Answered
CSVWRITE from listbox
Use eval() or evalin() to get the data from a string representing the variable name. You probably should also include '.csv' in ...

15 years ago | 1

| accepted

Answered
Simulink: rectangular pulse filter with finite rise time?
I thought Cathy was asking for a filter, not a source block to generate square pulse or pulse with slew rate. Check out this <ht...

15 years ago | 0

Answered
Why these two codes produce different graphs? How can I make the second graph be like the first?
The results are same if you see it like this. figure; plot(t,y,'+'); I think the reason is: you are calculating the step r...

15 years ago | 1

Answered
finding min and max values from a file
Please provide an example of your text file so we can help you. The task sounds not that hard. There are plenty of similar QAs r...

15 years ago | 0

Answered
Problems in open simulink aplicattions
Did you double-click the Simulink file outside of MATLAB? You could run MATLAB first, then select the Simulink file in the "Curr...

15 years ago | 0

Answered
Convert Cell array with numeric and non-numeric data into a numeric array.
a={1,2,'timeout',3,4,'i/o'} b=cellfun(@ischar,a) a(b)={nan} c=cell2mat(a)

15 years ago | 2

| accepted

Answered
Why does Guide no longer update my code file when I run or save my *.fig?
Did you change the name of your M-file by any chance? When you use GUIDE to develop GUI and code, the .m file and .fig files are...

15 years ago | 0

Answered
List box dissapearing when removing items from it.
I've done similar things, having a "Remove" button, if clicked, it removes the highlighted item in the list box. Here is my code...

15 years ago | 2

| accepted

Answered
Serious error in transferring strings from one listbox to another
The easiest thing to do is to put a break point in your code and step it through to see where and when the error happened. I sus...

15 years ago | 0

| accepted

Answered
Buffer input error in simulink
It is right there when you double click the "Spectrum Scope" block. The first tab, the "Scope Properties" tab.

15 years ago | 1

| accepted

Answered
Problems with adding block from target link into a model
Yep, this happens. What you need to do is to make sure that 'tllib' is loaded first. You can use load_system('tllib');

15 years ago | 0

Answered
Help with generating time-varying digital signal in simulink
If you have the Communication Systems Toolbox, you may use the "Integer to Bit Converter" block. You just need to connect it to ...

15 years ago | 0

Answered
Problem with simulink functions
You can call the second M-Function in your first M-Function, right? Then you just need to call the first M-Function in your Simu...

15 years ago | 1

| accepted

Answered
keep figures from popping up when running.
I think you can do this. It will pop up only once. The point is to re-use the figure. You can delete all its contents once they ...

15 years ago | 1

Answered
Which line is on top in a matlab graph?
I don't think it is the lightness or darkness of the color. It is the order of the plot that matters. Reverse the order of the f...

15 years ago | 0

Answered
Is it possible: Split a structure?
Not sure if it is too late but it would be easier for coding if your data is stored in a structure array, instead of a structur...

15 years ago | 2

Answered
Creating a 6DOF model in Matlab/Simulink
How easy do you expect? It's not going to be as easy as a finger snap. But you are heading to the right direction. MATLAB and Si...

15 years ago | 0

Answered
How to read UTF-8 txt file by using MATLAB
Supposedly, fopen() can read unicode text file if the text file is saved with UTF-8 encoding, e.g. fid=fopen('test.txt','r','n',...

15 years ago | 0

Answered
file handling between different functions.
It works for me. Try it yourself. function a=FunA global fid; a=0; fid=fopen('test.txt','wt'); ...

15 years ago | 0

Answered
change the delay of a Delay line Block
While your simulation is running, double click the block to open its parameter dialog. If the parameter is greyed out, it can no...

15 years ago | 0

| accepted

Answered
Importing | delimited data from Excel .xls and "Text to Columns"
Let's say my test.txt is like below a | 1 b | 2 c | 3 x=importdata('test.txt','|') x = 'a | 1' 'b | 2' 'c...

15 years ago | 0

Answered
Introduce Different sample rates in simulink
Simulink determines update rate for signals and systems mostly through propagation. If you want to specify different rate among ...

15 years ago | 0

| accepted

Answered
Why am I getting athe error ??? Cell contents reference from a non-cell array object?
fname{f,1}=filelist(f).name; Also, you might want to use this function fullfile()

15 years ago | 0

Answered
ss2tf and tf2ss function
The tf2ss() returns A,B,C,D matrices in controller (or controllable) canonical form. There is also observable canonical form. Bo...

15 years ago | 1

Answered
Quadrotor PID simulation
Matlab/Simulink is the right tool for your task, however, you need to understand that Matlab/Simulink mostly runs simulation on ...

15 years ago | 2

| accepted

Answered
How to store an image in variable via GUI and then use it later in code?
You need to pass variables among GUIs through their handles. There are plenty of QAs on this topic. Search the forum and see if ...

15 years ago | 0

Answered
importing variables in compiled package
I think you are doing perfectly fine regarding license or good practice. You can put your parameters in a M-script or a M-functi...

15 years ago | 0

Answered
Return control form a function to the main program
Even if such command or function exists, you still have the problem that the return variables of your xyz.m have not been set ye...

15 years ago | 0

Answered
Opening multiple text files and populating a matrix with the data
Your overall code is right. You need to correct a few syntax. 1. Do not use "path" as a variable name because it is a Matla...

15 years ago | 2

| accepted

Answered
matlab executable file
You mean when you press F5 in M-editor, your M-script will run? You need to have the Matlab Compiler toolbox to compile M-file ...

15 years ago | 0

| accepted

Load more