Community Profile Last seen: en dag ago Active since 2018

Communication through MATLAB is always better than arguing.

Statistics

All
• • • • • • • • • • • Content Feed

View by

Convert time vector of Year, Month, Day, Hours, Minute to Decimal format
doc ymd doc hms

ungefär en månad ago | 0

How to find first instance of a value in array?
help find % read the third explanation

How to average certain columns in a matrix
T = array2table(rand(2, 3)) T = [T(:, 1), array2table(mean(T{:, 2 : end}, 2), 'V', {'AVERAGE'})] % where Var1 is the time data

How to average certain columns in a matrix
matrix = rand(107, 16); Matrix = [matrix(:, 1), mean(matrix(:, 2 : end), 2)]; size(Matrix)

| accepted

Logical Indexing with matrix
C( A & B ) = C( A & B ) + 1

| accepted

How can I make this work, I don't know where i went wrong.
1 / (1 + cos(4*x)) %is not the same as 1 / 1 + cos(4*x) % likewise for last question

| accepted

can anyone help me to solve these error
function [y] = specvol(V) % change capital V to v

SIMPLE MATH ERROR CALCULATION
Click on the tag floating-point round((9.2^2 * 1e2) / 1e2, 3) % since you're using a hardware , not sure using a sym class woul...

convert data from two 3D arrays into three 2D arrays

This is my attempt to generate and plot this signal .. which one of these is right? .. please help
A = 3; [B, C] = deal(4); u = @(t) t >= 3 + 0.5 * A; u1 = @(t) t >= 3 - 0.5 * A; u2 = @(t) t >= C + 0.5 * B; u3 = @(t) t >= ...

| accepted

Saving a Matrix as an Image and then extracting same matrix from Image.
SMAG = im2double(b) %

| accepted

How to find the mean of 12 different 3-D arrays containing nan so that I can omitnan in the final calculations?
Use mean() with "Omitnan" flag help mean

| accepted

https://www.mathworks.com/help/matlab/ref/fft.html a good starting point

theory parts from the documentation -usage
The volunteers here are there to contribute to questions related to coding. For legal questions you would be better off to conta...

Question

Is there a way to viewmark as images?
Any possible way to extract viewmarks from Simulink as images?

1

Moving specific .mat files to a new folder
help movefile

Data Plotting in a Single Figure
U = setdiff(10 : 10: 100, 80 : 10 : 90); V = 1e2 : 50 : 450; X = sort(randi(400, size(U))); Y = sort(randi(98, size(U))) .*...

| accepted

how to sum a result with multiple values

| accepted

How to use Solver?
Use vpasolve()

| accepted

Index a Matrix that gets smaller
for ind = size(RAW): -1 : 2

| accepted

Error on my matrix
t_pn = (im2double(t) + p.' / 2) / 2;

i have an Error using ^
Change * to .* in all the places.

| accepted

Save a double array to a text file

problem in solving matrix
I = A \ V

Can't solve for x with (a = y/x)
syms y a x eqn = a == y/x; s = solve(eqn, x)

solving symbolic array to output a numerical solution
struct2array(Ma3)

removing rows from a timetable
load combined_observed_vs_sim_timetable combined_data(1 : 12, :) = [ ]

Array indices must be positive integers or logical values.
ii = 0.01:0.02:0.99; w1_temp= ii; w2_temp= 1-ii; Rp_temp= w1_temp*mean(R_2(:,1))+w2_temp*mean(R_2(:,2)); ...

Why does contains(var1, var2) find matches in two different string arrays?
ch_names = {'FP1','FPz','FP2','AF7','AF3','AF4','AF8','F7','F5','F3',... 'F1','Fz','F2','F4','F6','F8','FT7','FC5','FC1...