Beantwortet
Is it possible to share a variable from one MATLAB instance to a different MATLAB instance
Easiest solution would be to save your variables through workspace or via ‘save’ command. Then, in your script, include loading ...

3 Monate vor | 0

Beantwortet
convert char to table or cell
Something like this should work. It would be easier to work with it you attached the file so we can work with it. Hope I helped...

3 Monate vor | 0

| akzeptiert

Beantwortet
Export nested cell array to excel
You could just try to avoid using the cells, and just create one big matrix (array) with NaNs and then fill in your data. Howeve...

3 Monate vor | 0

Beantwortet
multiple 1x1 cell array to struct
After your loop ends, you can simply assign all the numbers into a column of a struct. It would be much faster than importing in...

3 Monate vor | 1

Frage


Create plot with shaded standard deviation, but ...
Hello, I have tried searching on the internet about this issue, but I haven't found what I needed, so I'm here. I am trying to...

3 Monate vor | 1 Antwort | 0

1

Antwort

Beantwortet
How to mark NaN values on the plot?
Use isnan() on the original vector. This will give you logical vector, which tells you where the NaNs are. You can use this inde...

3 Monate vor | 1

| akzeptiert

Beantwortet
Plot lines appear fuzzy
well, are your data perfectly linear? if these are your data, Matlab will interpret them in the way they are, which may be "fuzz...

3 Monate vor | 0

Frage


Intersection of two tables
Hi, I'm trying to intersect two tables. They share same column with strings, and I want strings that are in both of these tabl...

3 Monate vor | 2 Antworten | 0

2

Antworten

Beantwortet
Output variables of different Class to csv or xls file.
Have you tried using writematrix()? Works usually the best.

4 Monate vor | 0

| akzeptiert

Beantwortet
User date input in csvread filename
Hello, hope this helps. input_date = input("Choose date in YYYY-MM-DD format.","s") % save date as string filename = "ArTP...

4 Monate vor | 1

| akzeptiert

Beantwortet
How do I find the white pixel in the row/column
Hope this answers your question. img = imread("pic1.jpg"); % loading your picture img = rgb2gray(img); % convert to b...

4 Monate vor | 0

Beantwortet
How to calculate the difference between different values in a table?
% loading data and separating useful data from useless data load Foveal.mat T = ans; % your table T_1002 = T(matches(T.messag...

4 Monate vor | 1

| akzeptiert

Beantwortet
Choose manually 1 out of 4 subplots which looks "best"
I'm sure there are more options and ways to do it. My idea is that at the end of the script, you would use input function. In c...

4 Monate vor | 0

Beantwortet
How to find the number of groups in another group?
Hello, if every group always starts with number 1, you can try find their positions. It would look like so: idx = find(matri...

4 Monate vor | 0

Beantwortet
How to change a single word in user interface with the input command?
not sure if I understand your idea, but you could try doing this: prompt = ['does AN fibre',fibres_without_BF{i},'look ok?']; %...

4 Monate vor | 0

| akzeptiert

Beantwortet
matrix addition according to position vector
This looks like homework. It seems like you know what kind of functions you should work with. I'd recommend to study the docume...

4 Monate vor | 0

Beantwortet
import data from csv and plot it
I looked at your data and it looks like your decimal numbers are separated by a decimal "comma" (,), which can cause problems be...

4 Monate vor | 0

Gelöst


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

4 Monate vor

Beantwortet
i'm using matlab mobile to collect imu data in vehicle from my iphone i needed to know how to adjust the axis ?
When you go into "Sensors" in Matlab Mobile, you can see variables measured by your mobile sensors in real-time. You can simply ...

4 Monate vor | 0

| akzeptiert

Beantwortet
How to sort rows of a 2D array based on another array
Zdravím kolego, // Hello, I have tried something. I can't say it's "cleaner solution", but it's without for loop. You basically...

4 Monate vor | 0

Beantwortet
I don't know how to make and algorithm to find BMI?
This looks like homework. Try creating a function. Inputs will be height and weight, and output will be the BMI. Some useful l...

4 Monate vor | 3

Beantwortet
Change values in vectors
If you want to apply it to this vector, it's not complicated. But if you wanted to apply it to a more complex vector where the n...

4 Monate vor | 0

Beantwortet
Remove NaN Entries in a Dataset
You do not need to go through every element of vector with for loop. You can use isnan on the vector, which will give you logic...

5 Monate vor | 0

| akzeptiert

Beantwortet
Operate with date and time string
% Your datetime as strings dt_event= '2021_04_23 16_58_14'; dt_site= '2021_04_23 17_00_18'; % Convert to datetime format d...

5 Monate vor | 0

| akzeptiert

Beantwortet
Merging the Data in the Text Files for the Number of "N" Text Files
Hey, there's a lot of ways to read text files. For your purposes, I think fileread and fscanf functions might do well. Then, y...

5 Monate vor | 0

| akzeptiert

Beantwortet
Sort a bank of ECG samples to 2 groups
Hello, as Star Strider already mentioned, you can filter data based on the R-amplitude and or heart rate (time between R–R). I...

5 Monate vor | 0

Beantwortet
Why doesn't the for loop work?
x=1:16; p=isprime(x); x(p==0)=0; % Put zeros on the positions where p == 0 in vector X Is this what you wanted? ...

5 Monate vor | 0

| akzeptiert

Frage


Can't change xlabel font because of diacritics (č, ř, š, ...)
My language uses letters that use diacritics (č, ř, ž, ... ). I tried to change font in my Matlab script to Latin Modern Roman,...

5 Monate vor | 2 Antworten | 0

2

Antworten

Beantwortet
Selection of a variable from a resulting equation
Hi, this could be done by using find() and indexing. If your table structure will always be the same (meaning that your first an...

6 Monate vor | 0

Beantwortet
Rounding a decimal down
Example: X = 0.143; Y = sprintf('%.2f',X); Y = str2double(Y) Someone ahd same question before. Next time, try to Google y...

6 Monate vor | 0

Mehr laden