Community Profile

photo

Guru


Medtronic

Active since 2013

Followers: 0   Following: 0

Message

Statistics

All
  • Knowledgeable Level 3
  • 5-Star Galaxy Level 1
  • First Submission
  • Knowledgeable Level 2
  • First Answer

View badges

Feeds

View by

Answered
what happend to my 'deploytool'
Do you have MATLAB Compiler installed? Type VER in the command line and make sure your current MATLAB version sees the MATLAB C...

11 years ago | 2

Answered
Put a % sign inside of an 'edit text' box behind a number in the box
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...

11 years ago | 0

Answered
automatic change a block number in a mask, coming from simulink library, when I drag it more than onetime in my working space
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...

11 years ago | 0

Answered
How to delete rows/columns of a matrix in Embedded Matlab Fcn?
The Embedded MATLAB Fcn is intended for MATLAB that would resemble C code. How do you suppose you can delete rows/columns from ...

11 years ago | 0

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

11 years ago | 0

| accepted

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

11 years ago | 0

Answered
Problem with function handle? or something.
Well, from plotting your input-output behavior of your anonymous function gv(), it converges to about the value of R*T. In othe...

11 years ago | 0

| accepted

Answered
How to help Stateflow locate the C-compiler?
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...

11 years ago | 0

Answered
what should be the format of .mat file
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 ...

11 years ago | 0

| accepted

Answered
How to make an if/else statement
FIND with the conditions is actually the way to do this. % First read in your data file into MATLAB, let's say variable A ...

11 years ago | 1

| accepted

Answered
Why is "undefined" a variable that I have previously defined???
For future reference, putting a little MATLAB code down makes things a lot more clear than trying to explain it with words, espe...

11 years ago | 0

Answered
How do I initialize a n * m colormap matrix
Hmm, you do realize that colormap is intended to serve as a link between values of a matrix and what color they should appear as...

11 years ago | 0

Answered
Where to download fuzzy tools for matlab 2013 b
You can either contact your MathWorks sales rep or order it online through MathWorks so that it can be added to your license and...

11 years ago | 0

Answered
Why MATLAB uses the storage of variables in form of Metrics/multi dimentional arrays ?
What you see in the variable editor is based upon how developers thought it to be most intuitive for users to see the variable, ...

11 years ago | 0

Answered
Saving base workspace to .mat file multiple times in GUIDE GUI
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 ...

11 years ago | 0

| accepted

Answered
Fit and Polyfit (LAR vs. Least squares)
You can find out by asking for the output argument: [fitobject,gof,output] = fit(x,y,fitType) output.algorithm But th...

11 years ago | 0

| accepted

Submitted


linecount
Counts the number of lines in a text file

11 years ago | 2 downloads |

Answered
Pre-determining the number of lines in a text file
Just out of boredom, here's a function: function n = linecount(fid) n = 0; tline = fgetl(fid); while ischar(tline)...

11 years ago | 8

Answered
I'm trying to create a code that doing something like this ......
You had the answer, just had to create a variable of the negative values. I am assuming that v = data So just change yo...

11 years ago | 0

| accepted

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

11 years ago | 0

| accepted

Answered
How to read every nth line with textscan
Honestly what you are trying to do is something that doesn't need textscan to read it in. The benefit that textscan provides is...

11 years ago | 3

Answered
repeating for loop under another for loop
When looking at nested for loops like yours, the first question I always ask is why are you using a for loop to begin with? To ...

11 years ago | 0

Answered
Get multiple indices coinciding closest to a certain value
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...

11 years ago | 0

| accepted

Answered
Mutliple Copies of MATLAB on the same machine -- how to set the default
This is an operating system question/task scheduler question and not a MATLAB question. That being said, simply choose the pr...

11 years ago | 0

Answered
How to stop my "if" statement in a "for" loop
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...

11 years ago | 1

| accepted

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

11 years ago | 0

| accepted

Answered
Saved data from Matlab gets corrupted?
The reason why it's wrong is explained by Walter Roberson. What you can do to probably get your intended result is to use ...

11 years ago | 0

| accepted

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

11 years ago | 1

Answered
suggestion for sound analysis audio player GUI.
I believe there is (or used to be) a demo in the Signal Processing Toolbox called specgramdemo This should get you a sta...

11 years ago | 0

| accepted

Answered
Simple Code taking too much time
This simply looks to be a case where you are trying to make some result converge to an answer, and the system is not set up to c...

11 years ago | 0

Load more