Respondida
matlab can't save script or function
<https://www.mathworks.com/matlabcentral/answers/50429-i-suddenly-cannot-save-m-files-anymore-what-can-i-do-about-that>

casi 8 años hace | 0

Enviada


Simulink Model Complexity Analyzer
Analyzes Simulink Model Complexity (Static and Dynamic Complexities)

casi 8 años hace | 1 descarga |

0.0 / 5

Respondida
How to locate an error without a hyperlink in Simulink?
Are you simulating your model through sim command? If yes, what arguments are you passing? If you are simulating using the pl...

casi 8 años hace | 0

Respondida
user defined variable input
Get the user input of X using input function. Then get the length of X using length function. Run a for loop on length of X ...

casi 8 años hace | 1

| aceptada

Enviada


Simulink Model Complexity Analyzer
Analyzes Simulink Model Complexity (Static and Dynamic Complexities)

casi 8 años hace | 8 descargas |

0.0 / 5

Respondida
Unable to run a script
I see a space between problem_2 and .m I think this is not intentional. Correct it and try running again.

casi 8 años hace | 0

Respondida
Preventing repeat values in an edit text
>> cellExcelData = {'String1'; 'String2'; 'String3'} cellExcelData = 'String1' 'String2' 'String3' >> is...

casi 8 años hace | 0

| aceptada

Respondida
How to prevent graphs from popping up in simulink
HidHandles = get(0,'ShowHiddenHandles'); set(0,'ShowHiddenHandles','On'); AllScopeHandles = findobj(0,'Type','Figure','T...

casi 8 años hace | 0

Enviada


MATLAB Scripts Quality Checker - MSQC
A modular, plug-play application to check for static quality of m-scripts/functions.

casi 8 años hace | 1 descarga |

0.0 / 5
Thumbnail

Respondida
Inputdlg requesting input to provide an output of 6 integers as a row vector
inputdata = []; while(~isequal(size(inputdata), [1,6])) x = inputdlg('Enter 6 integers as space-separated numbers:',...

casi 8 años hace | 0

Respondida
Not able to run any GUI related code
I think there is a typing there in line 151. x = get( handles.edit,'String'); what this line does is, it gets the conten...

casi 8 años hace | 0

Respondida
Copy data from table created by MATLAB GUI
Create a context menu and use https://in.mathworks.com/help/matlab/ref/clipboard.html

casi 8 años hace | 0

Respondida
how find frequency of a number from an array where we can specify the length in which frequency must be checked
function freqCnt = findFrequencyofNumber(arrayInput, startidx, endidx, number2bechecked) tempArray = arrayInput(startidx:en...

casi 8 años hace | 1

| aceptada

Respondida
Correct use of regexp
y=regexprep(x,'[0+]','00')

casi 8 años hace | 0

Respondida
How to invert .p file to .m file
You cant do that. https://in.mathworks.com/help/matlab/ref/pcode.html

casi 8 años hace | 1

| aceptada

Respondida
Saving variables from recursion?
function [F] = recursive_fibonacci(N) if N < 1 N = 1; end if (N == 1) || (N == 2) F = 1...

casi 8 años hace | 0

Respondida
move a row from a cell to another cell
>> Q{1,:}(1,:) ans = 1 2 3 4 >> Q{2,:}(1,:) = Q{1,:}(1,:)% Do you simply mean this? Q = [3x...

casi 8 años hace | 0

Respondida
How to change the Matlab "toolstrip" color and font color?
There is also a cool FileExchange that can help you set the preferences (themes). http://in.mathworks.com/matlabcentral/fileexc...

casi 8 años hace | 0

Respondida
rearrange the dimension of lat and lon in matrix
You want to transpose the matrix? New_Matrix = Old_Matrix';

casi 8 años hace | 0

| aceptada

Respondida
exporting data to excel using xlswrite
What is your error message? Are you doing xlswrite('file.xlsx', var1, 'A5')%Note the single quote around A5 xlswrite('...

casi 8 años hace | 1

Respondida
What is the proper syntax to include an enum data type in a Simulink parameter?
https://in.mathworks.com/help/simulink/slref/simulink.aliastype.html

casi 8 años hace | 0

Respondida
Error using thingSpeakWrite Expected a string scalar or character vector for the parameter name.
Isnt this the API ? You missed the 'WriteKey' key in your API call? thingSpeakWrite(channelID, data, *'WriteKey'*, writeAPIKe...

casi 8 años hace | 0

| aceptada

Respondida
Creating a string scalar with line continuation
myStr = ['Hello this is an extremely long sentence that would go ', ... 'beyond my 80-character limit.']; disp(...

casi 8 años hace | 0

Respondida
'Undefined Function or Variable' Error when the variable is perfectly defined!!!!!
Step_Atoms is the only suspect. What does the function contain?

casi 8 años hace | 0

Respondida
App Designer: Format headings on uitable
You can use html to format the headings, values in table! You may start here https://undocumentedmatlab.com/blog/gui-formatti...

casi 8 años hace | 0

Respondida
How to use interpolation to obtain the value at tmax?
SamplePoints = 0:10;%the random time values when you have sampled DataPoints = [];%all data points Xq = tmax; Vq = in...

alrededor de 8 años hace | 0

Respondida
Can use image name as an argument in an if else statement?
you have to use strcmp to compare strings. And use single quotes in strings. if strcmp(selectedimage, '1.bmp') imshow (...

alrededor de 8 años hace | 0

Respondida
Don't use Global... Okay how do I switch to guidata??
Normally, You can use handles structure and update your global variables in this structure. handles.my_var = 5; % my_var w...

alrededor de 8 años hace | 0

Respondida
How to execute saved function file
Do you save it in a different file name (and function name)? If NO, then its highly likely that your old file gets executed (...

alrededor de 8 años hace | 1

Respondida
How to identify block separately GUI
You can set the background colour property on keypress callback.

alrededor de 8 años hace | 0

Cargar más