Community Profile

Contact

Top 5% contributor

Counts the number of lines in a text file

5 downloads

1 year ago

FIND with the conditions is actually the way to do this. % First read in your data file into MATLAB, let's say variable A ...

accepted

1

Answered 1 year ago

In digital filter design, what's important is the digital frequencies, in other words what is the ratio of your design frequenci...

1682 views

Responded 1 year ago

Honestly what you are trying to do is something that doesn't need textscan to read it in. The benefit that textscan provides is...

3

Not clear on your question exactly, but: Q: How to stop an if statement in a for loop? A: Either make the if statement false...

Do you have MATLAB Compiler installed? Type VER in the command line and make sure your current MATLAB version sees the MATLAB C...

2

Ok, so the only way you have to not have an infinite loop relies on time_para being set to 1 from the time1 function when cap_pa...

967 views

The simplest way to implement this is to use Triggered or Function-call subsystems in Simulink driven by Stateflow (for the loop...

0

Well, from plotting your input-output behavior of your anonymous function gv(), it converges to about the value of R*T. In othe...

A .MAT file in MATLAB is a binary file format that MATLAB uses which is a direct copy of its workspace. The recommended way to ...

Just out of boredom, here's a function: function n = linecount(fid) n = 0; tline = fgetl(fid); while ischar(tline)...

Yes it's possible. All you really need is to have a means to choose what to name your MAT-file from your GUI. This can be ...

You can find out by asking for the output argument: [fitobject,gof,output] = fit(x,y,fitType) output.algorithm But th...

You had the answer, just had to create a variable of the negative values. I am assuming that v = data So just change yo...

Read in the data into matlab using xlsread, then plot them once they are read into the MATLAB workspace doc xlsread doc ...

The code you have is fine, what you have are two minima values that you are seeking. So by breaking up your search points you c...

Well the error is pretty obvious. The following lines is using parenthesis incorrectly: data.Q02=str2double(((datastr(75:8...

The reason why it's wrong is explained by Walter Roberson. What you can do to probably get your intended result is to use ...

Is there a reason you chose to use waitforbuttonpress if you are doing it that frequently?? A much easier and better solution...

I believe there is (or used to be) a demo in the Signal Processing Toolbox called specgramdemo This should get you a sta...

Umm, by what I am guessing you are trying to do in your push button 2 callback is that you want to run the file that was selecte...

Well, using the knowledge that the number of funds is the size of ndata and the rows for each fund that has data is based on the...

Since you are passing the structures into your function mf, you can make use of the inputname function in MATLAB to obtain the n...

819 views

As one would expect there is not likely to be built-in functions from MATLAB or any other language for every single publication ...

593 views

Create a static text box where you put in the % for the string value and position it immediately to the right of the edit text b...

Are you referring to the block name of a block within a masked subsystem that you want to change the name of? If so, no you c...

The Embedded MATLAB Fcn is intended for MATLAB that would resemble C code. How do you suppose you can delete rows/columns from ...

Without knowing anything about the signal/data you are taking the FFT of, this is impossible. If you think your frequency range...

If you are having problems after running mex -setup, then the path to the C compiler is incorrect, thus it cannot find the C com...

For future reference, putting a little MATLAB code down makes things a lot more clear than trying to explain it with words, espe...

Load more