Community Profile

photo

Robert


Last seen: 1년 초과 전 2018년부터 활동

통계

  • Thankful Level 2
  • Revival Level 2
  • 3 Month Streak
  • Knowledgeable Level 1
  • First Review
  • Thankful Level 1
  • First Answer

배지 보기

Content Feed

보기 기준

답변 있음
writematrix resizing column widths
For anyone encountering this problem and using R2020b, set the AutoFitWidth name-value pair for writematrix to false. Unfortunat...

1년 초과 전 | 1

답변 있음
Failure to untar() a *.tar.gz file
Your file is tarred, but also gzipped, so this should work: myFile = "C:\Files\test.tar.gz"; tarFile = gunzip(myFile); % Gives...

거의 2년 전 | 0

답변 있음
How can I make the output of a function always a column vector, regardless of if the input is a column or row vector?
You can use isrow for this: if isrow(output) output = output'; end

거의 2년 전 | 1

답변 있음
How can I call the set-dot method on a subclass object to set a property of the superclass?
How about this? classdef MySuperClass < handle properties xyz end methods function set.xyz(obj...

2년 초과 전 | 0

답변 있음
how to make a constant global so all packages files use it?
You could also define a class with only constant properties. Contrary to Jan's solution, you can access the constants directly, ...

대략 3년 전 | 0

답변 있음
How to find installation folder for matlab add-ons via command line?
It's a bit late, but anyone trying to do the same, try this: mngr = com.mathworks.addons_toolbox.ToolboxManagerForAddOns...

대략 3년 전 | 0

답변 있음
How can I change the icon of my AppDesigner-produced GUIs?
Add this to your startupFcn: t = 0; tMax = 5; dt = 0.1; while ~isfield(struct(struct(app.UIFigure).Controlle...

3년 초과 전 | 0

답변 있음
How to remove empty struct fields [ ] from a group a struct fields ?
% Create struct with empty fields. s.a = 'notEmpty'; s.b = []; s.c = ''; s.d = 12; fields = fieldnames(s); sOut = rmfiel...

거의 4년 전 | 0

답변 있음
How do I save values in my loop as a column vector?
You can define the variables as columns before your for-loop: h1 = zeros(16, 1); err_max = zeros(16, 1); By then assigning va...

거의 4년 전 | 1

| 수락됨

답변 있음
How can I send multiple commands to same command prompt opened by the first command
If semicolons do not work for you, use ampersands: system('cmd1 & cmd2 & cmd3')

대략 4년 전 | 2

답변 있음
Location of Help Window
What happens if you press Windows + Up? Reopening the documentation after that should open it in the same size and position it ...

대략 4년 전 | 0

| 수락됨

질문


Simulink toggle run-time data access programmatically
In my model, I am accessing a signal during simulation by using the steps described in the documentation. However, for performan...

대략 4년 전 | 답변 수: 2 | 0

2

답변

답변 있음
How to use only specific files in directory in GUI?
Not sure what you mean by 'select', but you can show a user only the files containing 'PU' in their titles using [fileName, pat...

대략 5년 전 | 0

답변 있음
Problem with xmlread() and https
This could work if you have write access to the file: In command window, type edit callSoapService Then in the m-file, ...

5년 초과 전 | 1

답변 있음
Unique function not deleting duplicate rows.
If anyone encounters truly duplicate rows in the output of |unique| like I did, this may be caused by |NaN| in your data being t...

5년 초과 전 | 0

질문


How to programmatically create a script with text without saving it?
What I'm trying to do is have my function start a new m-file and add text to it, *but without saving it.* _fopen_ directly sa...

5년 초과 전 | 답변 수: 1 | 0

1

답변

답변 있음
How can I write data from workspace in *.html file
What's wrong with simply replacing .txt by .html? a = 'Hello World'; fid = fopen('file_1.html','w'); fprintf(fid,a); ...

5년 초과 전 | 0

답변 있음
Which type of function call provides better performance in MATLAB?
Helpful stuff, but shouldn't the first alternative read "1. An Inline function. The body of the function is *directly* written...

5년 초과 전 | 1

질문


Access current system in System loop
I'm using the Simulink report generator (interactively, so not programmatically) of R2016b. I'm trying to place a snapshot in m...

대략 6년 전 | 답변 수: 0 | 0

0

답변