Answered
Dependent property is shown in the variable editor even before its get method
"before I invoke its get method, its value is shown" Yes, that's is obviously the case, but I fail to find this behaviour desc...

7 years ago | 0

| accepted

Answered
Imported a large csv file into MATLAB - which output type should I choose?
"I have a table" I assume that's a text file See readtable, Create table from file

7 years ago | 0

Answered
Adding an outer for loop for a plot
This is may approach. (Don't change the code that works.) function cssm( ) eta = [ 4.0, 4.2, 4.7 ]; for e = eta ...

7 years ago | 0

Answered
choose 2 random unique element inside cell
See datasample, Randomly sample from data, with or without replacement and try >> cellfun( @(row) datasample( row, 2, 'repla...

7 years ago | 0

| accepted

Answered
Simulating a ship sailing in water wave
See: A Viking Ship

7 years ago | 1

Answered
Why is CELLFUN(@isempty) much slower than CELLFUN('isempty')?
See cellfun – undocumented performance boost

7 years ago | 2

| accepted

Question


Weird behavior when debugging code invoked by timer
This question is overtaken by Spurious fire from timer . This question is related to my question Debug code invoked by timer. ...

7 years ago | 0 answers | 0

0

answers

Answered
Hungarian algorithm realizated in matlab
Documentation on assignDetectionsToTracks: Assign detections to tracks for multiobject tracking says "[...] assigns detections ...

7 years ago | 0

| accepted

Answered
Signs in the output.
This script nearly makes it %% h = [-1 -2 0]; v = {'x','y','z'}; j = sqrt(sum(h.^2)); z = 0; while z <= 3 z = z + 1; ...

7 years ago | 0

| accepted

Answered
Retrieve strings into a structure wihin a loop
Haven't used setfield() for a long time. Which release do you use? Try this >> Storm = cssm() Storm = struct with field...

7 years ago | 0

| accepted

Answered
Sub-scripting a table
Try and replace hour20=MarchData(20==hour(MarchData.Date),:); by clock2000 = MarchData((hour(MarchData.Date)==20 & minute(Mar...

7 years ago | 0

| accepted

Answered
dlmwrite with text and numbers
Something like for jj = 1: len fprintf( fid, '___\n', num(jj), txt{jj} ) end is a standard approach Another answer is...

7 years ago | 0

| accepted

Answered
trying to change negative values to 0 and positive to 1
The problem is somewhere else >> volts_add = randn(1,6); >> volts_add( volts_add <= 0 ) = 0 volts_add = 0.5377 1.8339...

7 years ago | 0

Answered
Read files with lat Long values ?
The comma delimited list of character vectors 'H\Adrij\documents\data_','_',lat{y,1},'_',lon{y,1} must be replaced by ONE st...

7 years ago | 0

Answered
Insert two elements in a multidimensional array
Something like this? %% N = 50; xh = zeros(2,N); %% Insert h1 and h2 into xh for jj = 1 : 2 : N ... [h1,h2] = cru...

7 years ago | 2

| accepted

Answered
Distance between all elements of row vector
Hint: %% row = rand(1,6); cell2mat( reshape( arrayfun( @(jj) row(jj)-row, (1:6), 'uni', false ), [],1 ) ) outputs ans = ...

7 years ago | 1

| accepted

Answered
Object oriented programming problem?
MyPr2.ap.datashare, is that a folder, ...\+MyPr2\+ap\+datashare, or a classdef-file, ...\+MyPr2\+ap\datashare.m ? Your code sni...

7 years ago | 0

Answered
Converint between Cell arrays and Numbers and Strings
"cell array as shown" The screenshot doesn't show any cell array Another approach >> str = sprintf('%d', 10000111 ); >> n...

7 years ago | 1

Answered
Averaging and summing parts of a column based on date
Ten hours without an answer. Here is the result from my first experiment with timetable. See retime Resample or aggregate data ...

7 years ago | 1

| accepted

Answered
How to properly overload horzcat and vertcat?
This looks more Matlabish, but whether it's better ... classdef myClass properties a@double b@double ...

7 years ago | 0

| accepted

Answered
SVD file to normal coordinates
Google found Advanced Signal Processing with Matlab Maybe Matlab functions comes with your instrument

7 years ago | 0

| accepted

Answered
Simple Questions, Please Answer 2
old is not the name of a Matlab function. Maybe you have a variable named old What does which old return?

7 years ago | 0

Answered
Simple Question, Please Answer
See colon, : Vector creation, array subscripting, and for-loop iteration and for for loop to repeat specified number of times

7 years ago | 0

| accepted

Solved


Max Change in Consecutive Elements
If an array is given as input then find the index of consecutive elements that represent maximum change. Example: Input ...

7 years ago

Solved


expand intervals
You're given a row vector of an even number of monotonically increasing integers. Each pair of consecutive integers is the lower...

7 years ago

Answered
Reading the exact time and date as in excel sheet !
"based on few examples discussed in the forum" The Matlab documentation is a much more reliable when it comes to the behavior o...

7 years ago | 1

| accepted

Answered
Exporting a pre-allocated cell array to .csv files
I cannot guess what you tried and failed. However, study this example %% M961x1 = repmat( {magic(5)}, 3,1 ); % Small set of sa...

7 years ago | 1

| accepted

Answered
Unable to perform assignment because the left and right sides have a different number of elements.
Maybe replace v(i+1)=v(i)+(g*m/c)*(1-exp(-c*t/m))); by v(i+1)=v(i)+(g*m/c)*(1-exp(-c*t(i)/m))); v(i+1) is a scalar, I assume...

7 years ago | 0

Answered
How to convert grade into letter grade
I guess this is what you intended function grade = letter_grade( n ) if n >= 91 grade='A'; elseif n >= 81 ...

7 years ago | 1

| accepted

Answered
How can i find the column number in an array?
Try this M = rand( 6 ); % Sample data [~,ixc] = max(mean( M, 1 ));

7 years ago | 0

Load more