Feeds
已回答
rearranging textfile that contains commas
There is probably an easier way of doing this... but this should work: a = fileread('example.txt'); % txt file that you share...
rearranging textfile that contains commas
There is probably an easier way of doing this... but this should work: a = fileread('example.txt'); % txt file that you share...
5 years 前 | 0
已回答
Extracting numerical results from a text file at different positions
good catch, my bad:) it was late at night. This should work. In either case if you are learning MATLAB, regexp are very powerful...
Extracting numerical results from a text file at different positions
good catch, my bad:) it was late at night. This should work. In either case if you are learning MATLAB, regexp are very powerful...
5 years 前 | 0
| 已接受
已回答
Extracting numerical results from a text file at different positions
There is probably an easier way to do this... but this should help. (I am using R2018b). a = fileread('0295_PhD_AB~Analysis...
Extracting numerical results from a text file at different positions
There is probably an easier way to do this... but this should help. (I am using R2018b). a = fileread('0295_PhD_AB~Analysis...
5 years 前 | 1
已回答
Compiling excel files from subfiles
There might be a more elegant way than what I am proposing but this should work: ds = spreadsheetDatastore(pwd,'IncludeSubfol...
Compiling excel files from subfiles
There might be a more elegant way than what I am proposing but this should work: ds = spreadsheetDatastore(pwd,'IncludeSubfol...
5 years 前 | 0
| 已接受
已回答
Compiling excel files from subfiles
Try the following: ds = spreadsheetDatastore(pwd,'IncludeSubfolders',true) where pwd is the root folder.
Compiling excel files from subfiles
Try the following: ds = spreadsheetDatastore(pwd,'IncludeSubfolders',true) where pwd is the root folder.
5 years 前 | 0
已回答
Compiling excel files from subfiles
Hi Jen , I am using R2018b, and there is a wonderful datatype: datastore which does this for you. A variation of it is the sp...
Compiling excel files from subfiles
Hi Jen , I am using R2018b, and there is a wonderful datatype: datastore which does this for you. A variation of it is the sp...
5 years 前 | 0
已回答
How to convert csv file containing MAC addresses to JSON array
I did the following: Used Import Wizard, generated the script belo I am on R2018b, so I used the function jsonencode at the en...
How to convert csv file containing MAC addresses to JSON array
I did the following: Used Import Wizard, generated the script belo I am on R2018b, so I used the function jsonencode at the en...
5 years 前 | 0
已回答
how to fix too many output argument?
Dear Ma.Cathyrine Ravina, There are several ways of doing this: Use a Live Script (with control slider bar) Create a MATLA...
how to fix too many output argument?
Dear Ma.Cathyrine Ravina, There are several ways of doing this: Use a Live Script (with control slider bar) Create a MATLA...
5 years 前 | 0
| 已接受
已回答
How to find separate graphs
Ro=[0 0 0 1 0 0; 0 0 1 0 1 0; 0 0 0 0 0 0; 0 0 ...
How to find separate graphs
Ro=[0 0 0 1 0 0; 0 0 1 0 1 0; 0 0 0 0 0 0; 0 0 ...
5 years 前 | 0
| 已接受
已回答
if NaN then...
Have you tried using the function isnan? https://nl.mathworks.com/help/matlab/ref/isnan.html?searchHighlight=isnan&s_tid=doc_sr...
if NaN then...
Have you tried using the function isnan? https://nl.mathworks.com/help/matlab/ref/isnan.html?searchHighlight=isnan&s_tid=doc_sr...
5 years 前 | 4
已回答
How to insert code segments from another MATLAB file?
There usually are 3 ways that I have seen people do this. in your func.m add a comment with a special TAG (e.g. %#mycode), th...
How to insert code segments from another MATLAB file?
There usually are 3 ways that I have seen people do this. in your func.m add a comment with a special TAG (e.g. %#mycode), th...
5 years 前 | 1
| 已接受
已回答
Retrieve data from several folders and structures
If I understand correctly you have data files in different folders and you want to take subset of that data and reorganize it in...
Retrieve data from several folders and structures
If I understand correctly you have data files in different folders and you want to take subset of that data and reorganize it in...
5 years 前 | 0
| 已接受
已回答
How can I use pushbuttons in GUI to categorize a "like" or "dislike" of a image
Here is a very simple away around this... in the directory where you have the images try the following code: im = imageDatast...
How can I use pushbuttons in GUI to categorize a "like" or "dislike" of a image
Here is a very simple away around this... in the directory where you have the images try the following code: im = imageDatast...
5 years 前 | 0
已回答
How to get environment password in script/function
The MathWorks does have a Database toolbox which does exactly what you are describing. That being said you probably would have t...
How to get environment password in script/function
The MathWorks does have a Database toolbox which does exactly what you are describing. That being said you probably would have t...
5 years 前 | 0
已回答
i want to download MATLAB Arduino support package. How i can ???
This should help: https://nl.mathworks.com/matlabcentral/fileexchange/47522?download=true I got this link from: https://nl.ma...
i want to download MATLAB Arduino support package. How i can ???
This should help: https://nl.mathworks.com/matlabcentral/fileexchange/47522?download=true I got this link from: https://nl.ma...
5 years 前 | 0
已回答
Read the output line by line
Hi, Not sure if I understand the problem correctly... are you trying to given an image with text get the text into MATLAB? If ...
Read the output line by line
Hi, Not sure if I understand the problem correctly... are you trying to given an image with text get the text into MATLAB? If ...
5 years 前 | 0
已回答
How can I get the maximum line of multiple graphs, starting from different x-values?
Maybe I miss understood but you could use min and max to achieve this: t = 0:.1:2*pi; for i = 1:4, y(i,:) = sin(t*i*2*pi);end;...
How can I get the maximum line of multiple graphs, starting from different x-values?
Maybe I miss understood but you could use min and max to achieve this: t = 0:.1:2*pi; for i = 1:4, y(i,:) = sin(t*i*2*pi);end;...
5 years 前 | 0
已回答
How to fix number of elements in for loop?
There are couple of things here however the first is to get your code working: q= 0.2; E = 200*10^8; a= -6:6; n=numel(a); ...
How to fix number of elements in for loop?
There are couple of things here however the first is to get your code working: q= 0.2; E = 200*10^8; a= -6:6; n=numel(a); ...
5 years 前 | 1
| 已接受
已回答
Write to txt, delimited by char(10)
x = ['a' char(10) 'b']; fp = fopen('test.txt','w'); fwrite(fp,x); fclose(fp); I am on a Mac and using R2018b. That being sai...
Write to txt, delimited by char(10)
x = ['a' char(10) 'b']; fp = fopen('test.txt','w'); fwrite(fp,x); fclose(fp); I am on a Mac and using R2018b. That being sai...
5 years 前 | 0
| 已接受
已回答
color of line plot with marker problem
There are a couple of ways to solve this (I am using R2018b): plot(x,y,'-s','MarkerSize',10,'Color','red',... 'MarkerEdgeCol...
color of line plot with marker problem
There are a couple of ways to solve this (I am using R2018b): plot(x,y,'-s','MarkerSize',10,'Color','red',... 'MarkerEdgeCol...
5 years 前 | 0
已回答
Checking/Counting values in a given Timewindow
Hi JamJan, If I understand correctly you have a matrix with 2 rows, the first row shows times, and the second 1. You are aski...
Checking/Counting values in a given Timewindow
Hi JamJan, If I understand correctly you have a matrix with 2 rows, the first row shows times, and the second 1. You are aski...
5 years 前 | 1
已回答
Can I write the output of a 'summary' command of a 'table'-variable to a variable ?
I believe as of R2017b you can do the following: a = summary(tab) This will return a structure with the information that s...
Can I write the output of a 'summary' command of a 'table'-variable to a variable ?
I believe as of R2017b you can do the following: a = summary(tab) This will return a structure with the information that s...
5 years 前 | 0
已回答
How i Calculate the average number of even numbers in an array?
Hi Tomer, I am not sure if I understand your question correctly. In MATLAB to calculate the average you would use the func...
How i Calculate the average number of even numbers in an array?
Hi Tomer, I am not sure if I understand your question correctly. In MATLAB to calculate the average you would use the func...
5 years 前 | 0
已回答
How to copy and paste a single row in an excel file to another excel file?
I am using R2018b, and there are a couple of ways of solving this. I like the following: ds = spreadsheetDatastore(pwd,'Range...
How to copy and paste a single row in an excel file to another excel file?
I am using R2018b, and there are a couple of ways of solving this. I like the following: ds = spreadsheetDatastore(pwd,'Range...
5 years 前 | 0
| 已接受
已回答
Image plot I am not able to create
I am using R2018b: a=readtable('dte2.txt'); plot(a.x_coordinate,a.y_coordinate,'.') Does this help?
Image plot I am not able to create
I am using R2018b: a=readtable('dte2.txt'); plot(a.x_coordinate,a.y_coordinate,'.') Does this help?
6 years 前 | 0
已回答
Histogram: put mean and std in the legend
I am using R2018b and my understanding is that you want to have: each line on your plot not named data, but the legend itself h...
Histogram: put mean and std in the legend
I am using R2018b and my understanding is that you want to have: each line on your plot not named data, but the legend itself h...
6 years 前 | 1
已回答
How can I insert an vector graphic in App Designer in Matlab?
Try this: In MATLAB: imshow('file.svg') If you are using App Designer: imshow('file.svg','Parent',app.UIAxes)
How can I insert an vector graphic in App Designer in Matlab?
Try this: In MATLAB: imshow('file.svg') If you are using App Designer: imshow('file.svg','Parent',app.UIAxes)
6 years 前 | 1
已回答
generate a unique ID
This has already been asked: https://nl.mathworks.com/matlabcentral/answers/240447-using-java-uuid-in-matlab#answer_191523 tem...
generate a unique ID
This has already been asked: https://nl.mathworks.com/matlabcentral/answers/240447-using-java-uuid-in-matlab#answer_191523 tem...
6 years 前 | 1
已回答
how do i get the higher values into the bins
Maybe try using histcounts Here is a small example: X = randn(1000,1); edges = [-5 -4 -2 -1 -0.5 0 0.5 1 2 4 5]; N = his...
how do i get the higher values into the bins
Maybe try using histcounts Here is a small example: X = randn(1000,1); edges = [-5 -4 -2 -1 -0.5 0 0.5 1 2 4 5]; N = his...
6 years 前 | 1