Community Profile # Struggling in MATLAB

Last seen: 1 dag ago Active since 2021

#### Statistics

All
• • #### Content Feed

View by

Question

How set table column to modified data?
I am performing same set of operations for all the columns in a table. How do I use a for loop over all the columns for this? I ...

4 dagen ago | 1 answer | 0

### 1

Question

How to map one array elements to another array elements?
I have an output array which shows to which feeder the animal goes in each trial for 6 trials. There could be only 4 feeders(1,2...

16 dagen ago | 2 answers | 0

### 2

Question

How to use regex to obtain double values?
I have an array of strings which contains some units. I have attahced the array. unq = ["10 lux";"10lux";"15";"15.0";"15.5 ...

17 dagen ago | 1 answer | 0

### 1

Question

How do I assign result array of a loop to a variable name?
I have a for loop which gives an one dimensional array in each iteration. (i.e. [1;2;3;4]) But they could be different in length...

17 dagen ago | 1 answer | 0

### 1

Question

How to upload cell data to PostgreSQL database table?
I am trying to upload a MATLAB table to PostgreSQL database. But the columns which contain cell datatypes are not showing up in ...

27 dagen ago | 0 answers | 0

### 0

Question

How to upload an array of double in postgreSQL?
I have a table in which different columns contain different types of data. I want to upload the table to postgreSQL database. I ...

29 dagen ago | 0 answers | 0

### 0

Question

How to remove bulbs in the mouse trajectory?
I am trying to remove the bulbs in red circles in the picture to get a smooth trajectory as shown in the picture. The mouse may...

ongeveer een maand ago | 2 answers | 0

### 2

Question

Why 'NaT' (class: datetime) does not work with find function?
I have a table part of which is attached. The enries in the date column are as datetime. I am trying to get the id where the ent...

ongeveer een maand ago | 2 answers | 0

### 2

Question

Why am I getting error "Vectors must be the same length" although they are of same length?
I am trying to plot a X,Y graph. I am getting an error "Vectors must be the same length", although I see in the workspace that t...

2 maanden ago | 2 answers | 0

### 2

Question

How to remove multiple outlier data in a rectangular maze?
I have this rodent x,y coordinates as described in the attached picture. There are some outliers in the data, I need to remove...

2 maanden ago | 1 answer | 0

### 1

Question

How to get NaN if the data is not in proper input format or missing?
I am running a function over each table rows. It is a big table and some of the entries are 'NaN' (class: 'double') or 'none' (c...

3 maanden ago | 1 answer | 0

### 1

How to run MATLAB function on each row of database?
The problem has been solved. I used a for loop for this. I imported the database as a table 'all_data'. loadfile = load('all_da...

3 maanden ago | 0

| accepted

Question

How to run MATLAB function on each row of database?
I have wrote a MATALAB function to get an output. I import the PostgreSQL database to MATLAB workspace and then work from there....

3 maanden ago | 1 answer | 0

### 1

Question

How to append values to an array in for loop?
rotation_time_by_direction = []; for i = 1:10:length(direction_table.rodent_RecordingTime)-10 direction_change = ones(1,10...

3 maanden ago | 1 answer | 0

### 1

Question

How to detect rotation in a trajectory?
I have to write an algorithm to detect rotation in the trajectory. Basically, I have to detect the red zone in the trajectory. C...

4 maanden ago | 2 answers | 0

### 2

How to convert PgArray to Matlab array?
This piece of code will convert PGArray data to double all_coordinatetimes = cell(length(data_on_date.coordinatetimes),1); for...

4 maanden ago | 0

| accepted

Question

How to publish as pdf from command tab
I have a function which I am running from command window as follows. [logical_out, run_time, reaction_time] = reaction_time_fun...

4 maanden ago | 2 answers | 0

### 2

Question

How to get nan as output if the function output argument is not supported?
I have written a function with three outputs. function [logical_out, run_time, reaction_time] = reaction_time_function3(~,~,~)...

4 maanden ago | 2 answers | 0

### 2

Question

How to stop running the code for conditional logical output?
I am writing a function with multiple outputs. The first one being a logical output. I do not need further outputs if logical ou...

5 maanden ago | 1 answer | 0

### 1

Question

How to concatenate table elements?
I am trying to concatenate the table elements of which each of them are double array. How can I do it effectively? I have attach...

5 maanden ago | 1 answer | 0

### 1

How to extract table data based on column values?
Thanks everyone for your comments. The problem is fixed now. I used the following code to get around. test_data.date = datetime...

5 maanden ago | 0

Question

How to extract table data based on column values?
I have a table, part of which is displayed. I have attached the table in the question. The entries of the tables are 1*1 cell ar...

5 maanden ago | 3 answers | 0

### 3

Question

How to covert all table entries to non-cell?
I have a table where all the entries are as 1*1 cell array. Here is part of table attached. test_data.date(1) ans = ...

5 maanden ago | 1 answer | 0

### 1

Question

How to convert PgArray to Matlab array?
I have written a SQL query to import a table into MATLAB. There is 2 two PgArrays ('org.postgresql.jdbc.PgArray') in the workspa...

5 maanden ago | 1 answer | 0

### 1

Question

How to use the output of a nested function in parent function?
I trying to make a long function readable. I was planning to write nested function inside the parent function. How can I use the...

5 maanden ago | 1 answer | 0

### 1

Question

Importing csv files properly
I am trying to import a csv file which contains 'comma'(,) inside 'quotation' marks(" ") in some cells. Here is one example. ...

ongeveer een jaar ago | 2 answers | 0

### 2

Solved

Convert from Fahrenheit to Celsius
Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

ongeveer een jaar ago

Solved

Calculate Amount of Cake Frosting
Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

ongeveer een jaar ago

Solved

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:...

ongeveer een jaar ago