Community Profile

photo

Johannes Hougaard


Novo Nordisk A/S

Last seen: 1日 前 2020 以来アクティブ

Statistics

All
  • Community Group Solver
  • First Submission
  • Knowledgeable Level 3
  • 6 Month Streak
  • First Review
  • Solver
  • Thankful Level 1
  • First Answer

バッジを表示

Content Feed

表示方法

回答済み
How to add a secondary axis to a .fig ?
Use the function 'open' to load the saved figure to a variable (a handle) and use yyaxis to add the secondary axis figure; axe...

27日 前 | 0

回答済み
Reading a .txt file without knowing the length of rows and skipping headers
m = readmatrix('connectivity.txt','NumHeaderLines',1);

27日 前 | 1

| 採用済み

質問


Reposition image in app
I am the author of a MATLAB app where I'd like to add a logo (as a uiimage) to the upper right corner of my UIFigure window. Wh...

27日 前 | 1 件の回答 | 0

1

回答

回答済み
replace values of x matrix for positions of y matrix where y=1
y = rand(33,33); % This is a y of random numbers between 0 and 1 x = round(rand(33,33)*0.7); % This is another x of random numb...

約1ヶ月 前 | 0

回答済み
identifying if a number stays the same between files
I'm not sure if I understand your question correctly - at least if I do then the data you've included are all not identical. Bu...

約1ヶ月 前 | 0

回答済み
Why do I get the error 'Ensure the file is a valid spreadsheet file and is not password protected.'?
Because you make and open the (empty) file with the fopen call but don't use the file identifier for the writetable (which you s...

4ヶ月 前 | 0

| 採用済み

回答済み
I want to add binary numbers randomly in a cell array. How to do it?
I can't really get the desired output from Marcels comment. Maybe if you add it to a for loop it'll be feasible. However I thin...

4ヶ月 前 | 0

回答済み
Using exportgraphics on Figure With Multiple Subplots
What you need to do is to provide an input to exportgraphics to take the figure rather than the axes When calling exportgraphic...

5ヶ月 前 | 0

| 採用済み

回答済み
increment row in excel from matlab script
I think the easiest would be to keep your matrix in MATLAB and make the large matrix in MATLAB before writing the Excel sheet. ...

5ヶ月 前 | 0

| 採用済み

回答済み
I want to check that the Value of one array exist in another array, using function ?
It is possible using the function ismember RemainingSensor=[1 2 4]; Cover=[1 3]; validsensors = ismember(RemainingSensor,Cove...

5ヶ月 前 | 0

回答済み
A moving line plot in MATLAB figure with animation between 3 points
Could be something like this then... It's super inefficient code and can definitely be improved in speed as well as complexity....

5ヶ月 前 | 1

| 採用済み

回答済み
How to read data in single column in csv file?
Seems like a pretty hard way to do stuff - that the .csv file is heavily formatted. Having formatted strings - to me - calls fo...

5ヶ月 前 | 1

| 採用済み

回答済み
Input txt. file of complex numbers
As far as I can tell you can use the readmatrix function to read the file if you use the 'NumHeaderLines' option for the import....

5ヶ月 前 | 0

回答済み
Basic calculator not working in app designer.
I think that as the error message states the .Value field of the EditField must be a string rather than a number. This could pr...

7ヶ月 前 | 0

| 採用済み

回答済み
how to plot a function
Another way to do it would be using the fplot by which you don't need a for loop and to define the number of points in your x-ax...

7ヶ月 前 | 0

回答済み
How can I make a sentence in Alphabetical order
I think a minor modification of your function like this function[output] = sentenceSort(x) %%%The input x is a string array o...

8ヶ月 前 | 0

| 採用済み

回答済み
I have to generate an array of 10x1 in an ascending order. With a condition that the two consecutive elements should have a difference between 1 to 8
This is not a super elegant solution but I think it'll do the trick for you numbers = zeros(10,1); numbers(1) = randi(8,1); %I...

約1年 前 | 0

回答済み
Switch-case function problem
If you wish to solve the problem using a switch/case sentence you should omit the == as that is assumed for the case. Furthermor...

約1年 前 | 1

質問


Reading settings for an app from text file
I have designed an app for which I need to store some settings in a text file as shown in the attached example_file.ini. In my ...

約1年 前 | 1 件の回答 | 0

1

回答

回答済み
Linear Interpolation to eleminate zero values
I'm not sure I fully understand your issue, but this may be a solution (or something to point you in the direction) y = [1 2 1 ...

約1年 前 | 0

| 採用済み

回答済み
How to obtain moving average smoothing of daily time series?
I think the function you need is filter - but that requires a numeric input (for which I would use the datenum function) timese...

約1年 前 | 1

回答済み
Linear regression on training set
the five t values that will correspond to the randomly chosen values are used by using the idx vector similarly to what you do f...

約1年 前 | 1

回答済み
recursive function to check a Palindrome
There is no need to make it recursive or to look for multiple numel's function out = palindrom(x) x = upper(char(varargin{...

約1年 前 | 0

回答済み
Easy and fast way to export into excel file from loop
You should concatenate your E variable before writing the excelfile as xlswrite creates a file rather than edits a file. As an a...

約1年 前 | 0

| 採用済み

回答済み
Read from text file (vw9.out)
You can read it using fid = fopen('vw9.out','r'); fcon = textscan(fid,'%s'); but if all you want to do is to import the matri...

約1年 前 | 0

| 採用済み

回答済み
Plotting the 4th value from a data
Hi Abdul I certainly think so. I've define a data vector that's sinus of numbers from -10 to 10 in 111 steps - but use your own...

1年以上 前 | 0

回答済み
Adding a Title to imwrite Command
You have to add the title to your figure before using imwrite. If it is indeed images (.jpg, .tiff etc) that constitutes your p...

1年以上 前 | 0

| 採用済み

回答済み
find the sum by function
function total = grade_eyad(v) [~,idx] = min(v); %finding the position of the minimum value (3 in the given example) v...

1年以上 前 | 0

回答済み
need help find the sum of the vector by the function
Under the assumption that only one instance of the minimum grade should be replaced, and that the minimum grade should be includ...

1年以上 前 | 0

回答済み
Standard deviation error bars not in the centre of the bar
You're just missing the y input for your errorbar. I belileve your problem will be solved by just replacing eb = errorbar(avera...

1年以上 前 | 0

| 採用済み

もっと読み込む