Answered

Toc returns loop time instead of total script time

Apart from tic and toc, there is also <http://nl.mathworks.com/help/matlab/ref/profile.html profile> command to check the bottle...

Toc returns loop time instead of total script time

Apart from tic and toc, there is also <http://nl.mathworks.com/help/matlab/ref/profile.html profile> command to check the bottle...

ungefär 9 år ago | 0

Answered

How to Generate Compressor Map ?

That is a contour plot. You can plot a contour plot using <http://nl.mathworks.com/help/matlab/ref/contour.html contour> command...

How to Generate Compressor Map ?

That is a contour plot. You can plot a contour plot using <http://nl.mathworks.com/help/matlab/ref/contour.html contour> command...

ungefär 9 år ago | 0

Answered

when char(65) then A.

Just guessing, >> char(65) ans = A >> double('A') ans = 65

when char(65) then A.

Just guessing, >> char(65) ans = A >> double('A') ans = 65

mer än 9 år ago | 0

Question

2D LUT (extrapolation) Simulink vs interp2

Hi, I am trying to "converts" a Simulink model into a matlab script/function, but I stumbled upon the 2D Look Up table conver...

mer än 9 år ago | 1 answer | 0

Answered

Which MATLAB operations/functions need speeding up?

datenum and cell2mat

Which MATLAB operations/functions need speeding up?

datenum and cell2mat

mer än 9 år ago | 0

Answered

[Simulink] Input value to update everywhere. How to?

Use variable names instead of constant value for your constant/input block, then assign a value to the variable from matlab edit...

[Simulink] Input value to update everywhere. How to?

Use variable names instead of constant value for your constant/input block, then assign a value to the variable from matlab edit...

mer än 9 år ago | 0

| accepted

Answered

How to Use Edit Text in GUI in creating a filename?

repot_path = fullfile(pathname,['TimeSignal_of_' t1 'sec_to_' t2 'sec''.txt']); Or repot_path = [pathname '\TimeSi...

How to Use Edit Text in GUI in creating a filename?

repot_path = fullfile(pathname,['TimeSignal_of_' t1 'sec_to_' t2 'sec''.txt']); Or repot_path = [pathname '\TimeSi...

mer än 9 år ago | 0

Answered

Value not multiplying by -1

Learn on how to debug your code, <http://nl.mathworks.com/help/matlab/matlab_prog/debugging-process-and-features.html#brqxeeu...

Value not multiplying by -1

Learn on how to debug your code, <http://nl.mathworks.com/help/matlab/matlab_prog/debugging-process-and-features.html#brqxeeu...

mer än 9 år ago | 1

Answered

Array divided by 255 gives me 0

testmat = [30 29 31; 29 30 30; 30 31 30] ; testmat = 30 29 31 29 30 30 30 31 30 >...

Array divided by 255 gives me 0

testmat = [30 29 31; 29 30 30; 30 31 30] ; testmat = 30 29 31 29 30 30 30 31 30 >...

mer än 9 år ago | 0

Answered

how to get simulink model outputs simultaneously(when the simulation is running)?

To meet the requirement, you might want to integrate your GA mfile to simulink (e.g. using Matlab Function block).

how to get simulink model outputs simultaneously(when the simulation is running)?

To meet the requirement, you might want to integrate your GA mfile to simulink (e.g. using Matlab Function block).

mer än 9 år ago | 0

Answered

How to see the Simulink Graph?

You need to disable "Limit data point to last" in Simulink scope setting. see below... <</matlabcentral/answers/uploaded_file...

How to see the Simulink Graph?

You need to disable "Limit data point to last" in Simulink scope setting. see below... <</matlabcentral/answers/uploaded_file...

mer än 9 år ago | 0

| accepted

Answered

Text box as subplot

Something like this? figure(1) p1 = subplot(4,1,1); p2 = subplot(4,1,2); p3 = subplot(4,1,3); p4 = subplot(4,1,...

Text box as subplot

Something like this? figure(1) p1 = subplot(4,1,1); p2 = subplot(4,1,2); p3 = subplot(4,1,3); p4 = subplot(4,1,...

mer än 9 år ago | 1

| accepted

Answered

GUI's OpeningFcn is not ran when opened from the explorer, do I have to open GUI to successfully launch my GUI?

You can also call the applicable *.mfile from the Matlab command window.. I think when you double click the *.fig file, matla...

GUI's OpeningFcn is not ran when opened from the explorer, do I have to open GUI to successfully launch my GUI?

You can also call the applicable *.mfile from the Matlab command window.. I think when you double click the *.fig file, matla...

mer än 9 år ago | 0

Answered

Simulink : How can I update the data from Workspace while the simulation is running?

How do you pause the simulation? Based on the description on To Workspace this should be possible (updated), see below: _T...

Simulink : How can I update the data from Workspace while the simulation is running?

How do you pause the simulation? Based on the description on To Workspace this should be possible (updated), see below: _T...

mer än 9 år ago | 0

Answered

How to solve plotting different data in same figure when x-vectors are not the same?

Does this work? plot(x1,y1,x2,y2);

How to solve plotting different data in same figure when x-vectors are not the same?

Does this work? plot(x1,y1,x2,y2);

mer än 9 år ago | 0

Answered

standalone .exe program from .m

You need additional tollbox to do that. See below : <http://nl.mathworks.com/products/compiler/>

standalone .exe program from .m

You need additional tollbox to do that. See below : <http://nl.mathworks.com/products/compiler/>

mer än 9 år ago | 0

Answered

Let MATLAB open .txt Files in Microsoft Editor

What about this command? <http://nl.mathworks.com/help/matlab/ref/open.html open>

Let MATLAB open .txt Files in Microsoft Editor

What about this command? <http://nl.mathworks.com/help/matlab/ref/open.html open>

mer än 9 år ago | 0

| accepted

Answered

Sort array elements in ascending order

res = sortrows(i,[1,2]); PS: Don't name you variable _i_, by the way. _i_ in matlab represent _sqrt(-1)_

Sort array elements in ascending order

res = sortrows(i,[1,2]); PS: Don't name you variable _i_, by the way. _i_ in matlab represent _sqrt(-1)_

mer än 9 år ago | 1

Answered

Build Truth tables with MATLAB code

Do you want to use Truth table in Simulink? Perhaps this link can help you, <http://nl.mathworks.com/help/simulink/slref/comb...

Build Truth tables with MATLAB code

Do you want to use Truth table in Simulink? Perhaps this link can help you, <http://nl.mathworks.com/help/simulink/slref/comb...

mer än 9 år ago | 0

| accepted

Answered

How can I assign the same name to mat file as it is in another variable's input?

save(a,'a') But, why do you want to do this?

How can I assign the same name to mat file as it is in another variable's input?

save(a,'a') But, why do you want to do this?

mer än 9 år ago | 0

Answered

Maximum Number of Rows in Matlab

It depends on data type and amount of column. See link below: <http://www.mathworks.com/matlabcentral/answers/91711-what...

Maximum Number of Rows in Matlab

It depends on data type and amount of column. See link below: <http://www.mathworks.com/matlabcentral/answers/91711-what...

mer än 9 år ago | 0

Answered

how to see the signal dimensions of simulink blocks

In 2013b version: <</matlabcentral/answers/uploaded_files/24250/sim_sigdim.jpg>>

how to see the signal dimensions of simulink blocks

In 2013b version: <</matlabcentral/answers/uploaded_files/24250/sim_sigdim.jpg>>

mer än 9 år ago | 0

| accepted

Answered

How can i make structure inside structure?

Check this link: <http://nl.mathworks.com/help/matlab/matlab_prog/access-data-in-nested-structures.html>

How can i make structure inside structure?

Check this link: <http://nl.mathworks.com/help/matlab/matlab_prog/access-data-in-nested-structures.html>

mer än 9 år ago | 0

| accepted

Answered

How can I split a word to parts?

thres = 3; %three last character of first word a = 'Hello World'; b = strtok(a); b = b(end-(thres-1):end);

How can I split a word to parts?

thres = 3; %three last character of first word a = 'Hello World'; b = strtok(a); b = b(end-(thres-1):end);

mer än 9 år ago | 1

| accepted

Answered

Creating structure array and store it in mat file!

Perhaps you define the structure incorrect, Please see this <http://nl.mathworks.com/help/matlab/matlab_prog/create-a-structu...

Creating structure array and store it in mat file!

Perhaps you define the structure incorrect, Please see this <http://nl.mathworks.com/help/matlab/matlab_prog/create-a-structu...

mer än 9 år ago | 0

Answered

subtracting and saving in an array

A wild guess, you may need: # _cell2mat_ (to convert your cell into workable matrix) # _diff_ (to find the difference betwee...

subtracting and saving in an array

A wild guess, you may need: # _cell2mat_ (to convert your cell into workable matrix) # _diff_ (to find the difference betwee...

mer än 9 år ago | 0

Answered

Cycle For how can i??

If i fully understand the question, below is the "cycle for loop" that you want, for idrow = 2:size(W,1)-1 for idcol = ...

Cycle For how can i??

If i fully understand the question, below is the "cycle for loop" that you want, for idrow = 2:size(W,1)-1 for idcol = ...

mer än 9 år ago | 0

| accepted

Answered

Locate Y given X and display on the graph

Refering to your description, If you generate the graph yourself using _plot_ function, then simply interpolates your xpoint...

Locate Y given X and display on the graph

Refering to your description, If you generate the graph yourself using _plot_ function, then simply interpolates your xpoint...

mer än 9 år ago | 0

Answered

Clear axes in GUI using cla reset does not work for secondary axes?

What if, set(get(handles.ax1, 'Parent'), 'HandleVisibility', 'on'); %set handle visibility to on axes(handles.ax1); %mak...

Clear axes in GUI using cla reset does not work for secondary axes?

What if, set(get(handles.ax1, 'Parent'), 'HandleVisibility', 'on'); %set handle visibility to on axes(handles.ax1); %mak...

mer än 9 år ago | 0