Community Profile

photo

Rik


Last seen: Today Attivo dal 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.

Statistiche

All
  • Treasure Hunt Participant
  • MATLAB Central Treasure Hunt Finisher
  • Thankful Level 4
  • 36 Month Streak
  • Cody 10th Anniversary 10-Day Streak
  • Promoter
  • 5-Star Galaxy Level 5
  • GitHub Submissions Level 3
  • Draw Letters
  • Community Group Solver
  • Indexing I Master
  • Cody Challenge Master

Visualizza badge

Content Feed

Risposto
Euro sign when using latex interpreter
I can't find it right now, but I recall someone changing/updaing the LaTeX engine shipped with Matlab (but apparently this is no...

circa 15 ore fa | 0

Risposto
Use value app designer in script.m
The solution is simple: use a function instead of a script (although it is possible to write a script that will use this value)....

4 giorni fa | 0

| accettato

Risposto
In matlabrc at 212
In general you should never touch files in the Matlab installation folder. In this case the solution is simple: you didn't cr...

4 giorni fa | 0

| accettato

Risposto
Why does the values in the y coordinate system change when I maximize the window?
It looks like only the tick values are changing. Did you try setting the YTick property explicitly?

5 giorni fa | 1

Risposto
xlswrite different columns into excel each run
If you switch to writematrix, you can set 'WriteMode' to 'append'. If you want to stick with xlswrite, you will have to read th...

6 giorni fa | 0

Risposto
Do I need to buy other toolboxes to use Financial Toolbox
This indicates that the Financial Toolbox will not work properly (or possibly not at all) without the other toolboxes. This mean...

6 giorni fa | 2

| accettato

Risposto
Highest-quality printed graphics with exportgraphics
For vector images only the contents of your figure matter: do you have raster images (e.g. with imshow or image)? If so, saving ...

7 giorni fa | 1

| accettato

Risposto
repeated condition in a for loop
Conditions like 0<t<a*b should be split in Matlab to |0<t && t<a*b|. Note that your code will be overwriting the result and t...

7 giorni fa | 1

Risposto
I don't understand why the last line is wrong
Your syntax is confusing. I don't think this code does what you think it does. The a and B variables are overwritten every itera...

10 giorni fa | 0

Risposto
how to plot a summation function in matlab using a for loop
It's a good start. You should only put the summation part in the loop, and you should store the results in a vector. (remembe...

12 giorni fa | 1

| accettato

Inviato


readdicomfolder
placeholder

14 giorni fa | 0 download |

Risposto
Pre-allocating cell array of anonymous functions
You can pre-allocate the cell array itself, but the contents will have to be set in the loop itself: my_fun_array = cell(1,q_to...

15 giorni fa | 1

| accettato

Risposto
express ODE without set a m file function
If you want to replicate the results, you need to replicate the function exactly: func=@(t,y,cd,m) [y(2);9.81-cd/m*y(2)*abs...

15 giorni fa | 0

| accettato

Risposto
Unable to find function @(fd)(1/(1+A(fd/fdmax2)^2)) within E:\matlab\bin\hw3.m.
As you can see, the error here is different than what you report. Did you consider changing your function to have an output arg...

15 giorni fa | 0

| accettato

Risposto
Date and time range picker from user
You might be interested in this example. You can easilly create an 'ok' button that will retrieve the set dates and times and cl...

17 giorni fa | 0

Risposto
urlread for links in html database
You can use sprintf to form the URLs. n=21001; url=sprintf('%s%d.dat','https://gml.noaa.gov/aftp/data/radiation/solrad/abq/20...

17 giorni fa | 0

Risposto
Renewal fee for matlab student version
There is no such thing as a renewal fee. You can keep using the student version of the release you purchased as long as you a...

17 giorni fa | 1

| accettato

Risposto
Help to verify obtained plots from .txt file data.
You can find an explanation for the layout tools here. It is the toolbar you see when you edit your question. How did you try t...

20 giorni fa | 0

| accettato

Risposto
ERROR: Array indices must be positive integers or logical values.
Actually, the result of your code is a missing variable. Once you fix that, you will have to edit your code to avoid X(0).

20 giorni fa | 0

Risposto
Textscan function ignores final delimiter when token is empty
From what I can tell, this is intended functionality. It is unable to match the format specification to an empty array, so it is...

24 giorni fa | 0

Risposto
How can I use codes downloaded in MATLAB file exchange?
With a sufficiently new release you can use the AddOn Manager to add submissions automatically. That should even take care of up...

25 giorni fa | 0

Risposto
How to define row and column of element in grid layout while initializing
The point you're missing is that the Layout argument is expected to be a struct. Since Layout.Row is not a valid Matlab field na...

27 giorni fa | 0

Risposto
how do i change the dicom file's brightness and contrast with slider bar in app designer
You should use caxis instead. That way you can adjust brightness and contrast directly without having to redraw the image every ...

circa un mese fa | 0

Risposto
How to make normal distribution curve from the bar chart?
Your data resolution is too low now that you have this bar chart. Unless you have the actual underlying data it is not possible ...

circa un mese fa | 0

Risposto
From a structure with "n" fields which each are a vector, I want to make a vector of length "n" made of the 3rd value of each vector of my structure.
The last solution you mention would be my suggestion, except you don't need the (:). file = struct('dist',{[1 2 3];[4 5 6]}); ...

circa un mese fa | 0

Risposto
How can I write duplicate files that are equal to or greater than 1GB to a excel file in Matlab?
You can use the unique function instead of your double loop (which could be improved by starting the second at (i+1) instead of ...

circa un mese fa | 0

Risposto
How can I use a for loop to interpolate to a certain number of points, and remove NaNs?
For the second part it is easy enough with a few cell vectors as an intermediate step (if you want to store the separate element...

circa un mese fa | 0

| accettato

Risposto
Creating an inputted number of randomised arrays
Depending on what you want to do next, you can either create a cell vector in a loop, where each element is a matrix, or you can...

circa un mese fa | 1

| accettato

Risposto
histcounts do not provide a reasonable output
With Matlab you generally don't have to be confused about functions. The documentation is one of the major advantages of Matlab ...

circa un mese fa | 0

| accettato

Risposto
Changing line colors in nested for loop not working
Why are you using eval? There is no real reason you should need it. Same goes for length: what you actually mean is numel (or pe...

circa un mese fa | 0

Carica altro