Question

Change text to numbers in a cell

Hi all, Lets say I have 4 x 2 cell matrix A: 1 'text one' 'text two' 2 '5' 'text two' 3 'text ...

28 days ago | 2 answers | 0

Question

Find the index of the first integer of an array in another array

Hi, I want to find the index of the first integer of an array in another array. For example. I have array A = [ 0 0 0 ] and I...

1 month ago | 1 answer | 0

Question

convert vector of doubles to a cell of strings

Hi, I have the vector A=[0;1;0;1]; I want to convert this into the cell array A 4 x 1 cell array {'no'} {'yes'} {'no'} {'...

1 month ago | 1 answer | 0

Question

Convert a cell of 'yes' and 'no' into array of 1 and 0

Hi guys, I have a problem converting a cell of 'yes' and 'no' (string) into array of 1 and 0 (double). Lets say I have the fo...

1 month ago | 2 answers | 0

Question

Seperate rows in matrix based on values of the elements.

Hi, I have simplified my 'multiple radar' problem into this: Lets say I have matrix A, consisting of columns 1 (timestamp) and...

3 months ago | 1 answer | 0

Question

readmatrix with numbers and text from .csv file

Hi guys, I have a very large .csv file to read which contains text and numbers. To explain I have a very simplified .csv file b...

5 months ago | 1 answer | 0

Question

For loop for a comparing values of a column vector with a value

Hi, I want to perform the following, but I get unexpected outcome. The plan is: 1: make column vector ‘costs’ 2: for ever...

6 months ago | 1 answer | 0

Question

Get every first value above a treshold out of an array

Hi guys, Lets say I have an array with elements with A = [1 2 3 4 5 6 2 3 4 5 6 3 4 5 6 7 8 1 2 1 2 1 2 3 4 5 6] Now I want ...

6 months ago | 2 answers | 0

Question

How to store vectors from each for loop in a matrix

Hi I have a for loop. The result of every iteration is a rowvector. I want all rowvectors of the for loop stored as one matrix. ...

8 months ago | 1 answer | 0

Question

Surf plots 2D + color. I want a 3D plot. What is the solution?

I have the following code: if true x= 30:0.1:50; y= [100:0.1:150]'; Z= x.*y; surf(x,y,z) end I want to have a 3...

8 months ago | 1 answer | 0

Question

How to get a matrix of all maximum values of elements of multiple matrices of the same size?

I want to get a matrix filled with elements that are the highest number of the element in other matrices on the same location in...

8 months ago | 1 answer | 0

Question

how to perform a vectorized operation with an array of multiple random numbers?

I want to perform multiple vectorized operations with the following numbers: v_tank = 10.*rand(100,1)+35; The code is: clear ...

8 months ago | 0 answers | 0

Question

Why does my plot not display the 50 values of t_operation?

I want to plot t_operation for 100<x<150. I tried this code, but it does not work. I do not understand why. clear all; close al...

8 months ago | 1 answer | 0

Question

Save data from for loop without subscript index

I am programming a simulation of a falling object and I want to plot its trajectory. When plotting I experience the problem that...

10 months ago | 1 answer | 0