Frage


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

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

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

fast 2 Jahre vor | 0

| akzeptiert

Frage


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

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 2 Jahre vor | 2 Antworten | 0

2

Antworten

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

fast 2 Jahre vor | 0

| akzeptiert

Frage


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

fast 2 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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(~,~,~)...

fast 2 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

fast 2 Jahre vor | 1 Antwort | 1

1

Antwort

Frage


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

etwa 2 Jahre vor | 1 Antwort | 0

1

Antwort

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

etwa 2 Jahre vor | 0

Frage


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

etwa 2 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


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

etwa 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 2 Jahre vor | 2 Antworten | 0

2

Antworten

Gelöst


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

mehr als 2 Jahre vor

Gelöst


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

mehr als 2 Jahre vor

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

mehr als 2 Jahre vor