Community Profile

photo

Rik


Last seen: 1일 전 2017 이후 활성

E-mails with feedback/questions about FEX submissions are welcomed. In general I will post e-mails about Answers on the related page, unless there is good cause not to do so.

Statistics

All
  • Treasure Hunt Participant
  • MATLAB Central Treasure Hunt Finisher
  • 36 Month Streak
  • Ace
  • Draw Letters
  • Community Group Solver
  • 5-Star Galaxy Level 5
  • GitHub Submissions Level 3
  • Indexing I Master
  • Cody Challenge Master
  • Introduction to MATLAB Master
  • Speed Demon

배지보기

Content Feed

보기 기준

답변 있음
Converting string to function/number
The way to avoid eval in this case is to use str2func: f=str2func('cos'); f(pi)

3일 전 | 1

답변 있음
How to concatenate 5x2 array output from my function?
This should already get you most of the way there: i = 0.5; for n = 1:100 Currents{n} = Dunn(mvs10, mvs30, mvs60, mvs100,...

7일 전 | 0

| 수락됨

답변 있음
Is there any plugin that allows automatic tracking of history of all workspace variables?
Below is my initial implementation of what you need. There are a lot of adaptations still to be made. It implements both a vecto...

10일 전 | 0

| 수락됨

답변 있음
is it possible to convert a python code to a matlab code ?, and if it is how?
The answer depends on the exact code. There is no automated conversion system that will work for all code (limited ones may exis...

12일 전 | 0

답변 있음
Image usage from guide
There is a copyright notice at the bottom of the page. So unless otherwise stated elsewhere, you're not allowed to use this exac...

12일 전 | 1

| 수락됨

답변 있음
is Dell 5580 core i5 2.80GHz 16GB 512GB SSD Intel HD Graphics 620 can run matlab 2021?
It seems to satisfy the minimum requirements mentioned on the <https://www.mathworks.com/support/requirements/matlab-system-requ...

16일 전 | 0

답변 있음
Error using plot Invalid subscript for Y.
Let's generate some data and try my suggestion of casting to double: %generate data FO2_Odometer=rand(10,1);Caliper1=rand(10,1...

20일 전 | 0

| 수락됨

답변 있음
Need ideas on how to extract a 30s portion of a wav file and save as a new file
Have you already found a way to read a single wav file? If not, audioread should do what you want. Remember that the second o...

23일 전 | 0

답변 있음
Display mutiple lines in Text area in Matlab App designer
You are replacing the text every iteration. What you need to do is concatenate them. Start with an empty line before the loop, ...

23일 전 | 0

답변 있음
Convert existing MATLAB script into GUI using app designer
The first step is to convert your code to a function. Then you can design your GUI to gather the necessary inputs for that funct...

23일 전 | 0

답변 있음
convert current date and time to char
datestr(now-6/24,31) datestr(now_UTC-6/24,31) If you want to force the use of UTC+0 as the timezone (as your Z seems to sugges...

25일 전 | 1

| 수락됨

답변 있음
How to Store emojis when used as an input to text field in App Designer.
Encoding is very important here. CSV files are simply plain text files. That means you need to make sure the encoding allows uni...

25일 전 | 0

| 수락됨

답변 있음
Computing Euclidean distance between 2 points
By doing a matrix multiplication on a vector, you implicitly take the sum over all elements. Note that this will only work if b...

26일 전 | 1

| 수락됨

답변 있음
Multiplying each cell in an array by a column vector
You should use a loop. That makes it a lot easier to write the indexing you need, and it will be faster. Matrix operations are ...

27일 전 | 0

| 수락됨

답변 있음
how to count the number of lines of an external txt file
The problem with your question is that it lacks a definition of line. If your file ends with char(10) or char(13) does that sign...

27일 전 | 0

답변 있음
Matlab GUI - storing real time data
For general advice and examples for how to create a GUI (and avoid using GUIDE), have look at this thread. Using GUIDE is a bad ...

30일 전 | 0

| 수락됨

답변 있음
Create a GUI interface in MATLAB for simple image functions like reading and displaying??
For general advice and examples for how to create a GUI (and avoid using GUIDE), have look at this thread.

30일 전 | 0

답변 있음
Creating an active graph that allows variables to be updated in real time.
Plot once, and use the callback function of a slider to set the XData and YData properties of that object. Don't forget to ro...

약 1달 전 | 1

답변 있음
Shading with vertical lines
I have put some inefficient code at the start to integrate over y so you end up with a function of x alone. I then used the same...

약 1달 전 | 0

| 수락됨

답변 있음
Using function in a serial code
If you insert the body of this function in a different function, you essentially convert this into a script. The downside of a ...

약 1달 전 | 0

| 수락됨

답변 있음
How do I have my variable output be uniform?
Arrays in Matlab must be rectangular. The image you show does not show how the data is stored, it is merely a display. For longe...

약 1달 전 | 0

제출됨


isnetavl
Check for an internet connection by pinging one of Google's DNSes

약 1달 전 | 다운로드 수: 2 |

Thumbnail

답변 있음
Continuously pressing GUI slider arrow causes hanging
I would suggest setting a flag (and storing it in the guidata struct). That way you can immediately exit the function if it is a...

약 1달 전 | 0

| 수락됨

답변 있음
Reset Button in appdesigner
You should be able to adapt my answer <https://www.mathworks.com/matlabcentral/answers/502084-pass-input-data-obtained-from-gui-...

약 1달 전 | 0

답변 있음
How to make a function file that displays a polynomial and accepts a specific command?
Why do you want to call your function like that? lou(a, b, c) will already work. Anyway: function lou(a,b,c) if nargin=...

약 1달 전 | 0

| 수락됨

답변 있음
Why does following code don't give any output?
Because the number 3 doesn't exist in your array: data=0.1:0.1:12; [~,ind]=min(abs(data-3)); data(ind) Now, that looks like ...

약 2달 전 | 0

| 수락됨

답변 있음
Installing a loop for more efficient script
If there is no way to determine these values, you will have to hard-code them somewhere. So you might as well do it in a cell ar...

약 2달 전 | 0

| 수락됨

답변 있음
Extract data for 3d plated grave
Let's first run your code: figure(1) r=3; th=0:180/30:360; Lgt=length(th); for height=0:4:20; x=r*cos(th); y=r*si...

약 2달 전 | 1

답변 있음
what are the following C datatypes Equivalents in Matlab
Integer names in Matlab are much more clear than in C: uint8 uint16 uint32 uint64 int8 int16 int32 int64. The ones starting with...

약 2달 전 | 0

| 수락됨

답변 있음
Trying to convert whole folder into spectrograms
You are inserting all files at once, instead of indexing into the filelist array. If you want want to store an image you need...

약 2달 전 | 0

더로드