Answered
How to write properties in vectors in matlab oop?
P(1)=obj.lcc; P(2)=obj.rc; P(3)=obj.mc; where obj is the instance variable

etwa 2 Monate ago | 0

| accepted

Answered
Matlab reads file with different order
>> fid = fopen('RQ_par.txt'); >> fs = fscanf( fid, '%f' ) fs = 0.9011 0.848 0.6744 0.54 ...

etwa 2 Monate ago | 0

| accepted

Answered
Extracting length information of pattern from specific string (not fixed string)
This is an answer to the follow_up question, which was closed when I tried to submit. %% chr = '010100001111111111111110000010...

2 Monate ago | 1

Answered
reading a huge matrix which is split to several parts
The text file contains column and row numbers together with blocks of the matrix. These row and column numbers can be used for c...

2 Monate ago | 0

| accepted

Answered
.mat file to .txt file
A little demo >> i16 = ones( 12, 1, 'int16' ); % sample data >> fid = fopen('i16.txt','a'); >> fprintf( fid, '%6d\n', i16 ...

2 Monate ago | 0

Answered
My codes and functions are deleted
AFAIK: There is no magic way to find lost files. Maybe you saved them in the wrong place? Or renamed them? What do you know ...

2 Monate ago | 0

| accepted

Answered
How can I get the path of the file being loaded when implementing the loadobj method
A little demo >> clearvars >> create_and_save_mock_obj >> load_mock_obj The obj was loaded from D:\m\cssm\load_mock_obj.m s...

2 Monate ago | 0

Answered
MATLAB Answers Wish-list #5 (and bug reports)
Don't encourage the use of "matlab" and "simulink", by showing them as popular tags. Instead, encourage the use of the Product f...

2 Monate ago | 2

Answered
Reading mixed format data from '.txt' file in matlab
Here is an alternative Running >> out = cssm('cssm.txt') outputs out = struct with fields: george: [3×11 double] ...

2 Monate ago | 0

Answered
What frustrates you about MATLAB? #2
Which do you prefer 'MultipleDelimsAsOne' or 'CollapseDelimiters'? Now and then I use the correct name in the wrong place. I ...

2 Monate ago | 1

Answered
Reading large number of csv files
Caveats My notion of your use case (work flow) is vague. Is your local free disk space a restriction? How many GB in total will...

3 Monate ago | 0

| accepted

Answered
Nested Functions vs Object-Oriented Programming: k-D Tree example and relative performance
On my R2018b,Win10 the diffence is even bigger % 18.585, 0.79143 % 18.937, 0.75923 The profiling result of get_root...

3 Monate ago | 1

| accepted

Answered
Load data and merge them together
Replacing data = [data,load(files(n).name)] with data = [ data ; load(files(n).name) ]; might help, i.e add rows to data no...

3 Monate ago | 0

Answered
'Unable to open file' error with importdata
Replacing Spill = importdata(filename); with Spill = importdata( fullfile( pathname, filename ); may help.

3 Monate ago | 0

| accepted

Answered
Access to class members
The Code Analyzer is a useful feature. It indicates syntax errors in the rightmost column of the editor. And it provides tooltip...

3 Monate ago | 0

| accepted

Answered
Issue with defining inputs in classdef and getting properties updated
Two things: VirtualMotor is a value class. Is that your intention? See Comparison of Handle and Value Classes You don't want ...

3 Monate ago | 1

| accepted

Answered
How can I see very large data in a workspace
This works with R2018b >> cac = {rand(1104,2,292)}; >> openvar('cac{1}(:,:,290)') P.S. It works with 1400x2x290 too

3 Monate ago | 0

| accepted

Answered
Conversion of Cell elements to matrix elements
Matlab magic %% x{1,1}=[1,5,3]; x{1,2}=[2]; x{1,3}=[]; x{2,1}=[2,4]; x{2,2}=[5,3,1]; x{2,3}=[]; %% cellfun( @(v) sum(v...

3 Monate ago | 0

| accepted

Answered
Particularly strange bug using the eval function
I reproduced the issue you report on R2018b, Win10. I noticed that if I put a breakpoint at the line "class(gamma)" run the f...

3 Monate ago | 0

| accepted

Answered
How do I debug my matlab code?
How do I debug my matlab code? Before trying to fix the problem see: Debug a MATLAB Program, then add a breakpoint to line 34,...

3 Monate ago | 1

| accepted

Answered
How to pass field values to subclass from superclass?
There are syntax errors in your code. Try to keep the little box in the upper right corner, , green at all time. I've fixed y...

3 Monate ago | 0

| accepted

Answered
How to read values for the range between each maximum and each minimum from a large uneven data file?
"range between the maximum and minimum of column 3" with a bit of guessing my interpretation is implemented in ixb and ixe %% ...

3 Monate ago | 0

| accepted

Answered
how to read day of the year as datetime ?
>> chr = sprintf( '%d', 2019364 ); >> sdn = datenum(str2double(chr(1:4)),1,0)+str2double(chr(5:end)); >> datetime( sdn, 'Conve...

3 Monate ago | 0

Answered
Code is running very slow, how to make faster?
Caveat: I've never seriously used the Live Editor. I've undertaken the following steps uploaded your files to a new folder, ...

3 Monate ago | 2

Answered
Multiplying elements of a vector
Replace case num == 1 by case 1

4 Monate ago | 0

Answered
Time format in netcdf files
"I want to extract time series from a netcdf file but the time format is like this: " Why "but", that's the way date-time is st...

4 Monate ago | 0

Answered
Why does exceeding array index in this program not show an error?
Because there are values of the second index, which exceeds 1000 (as you have noticed) K>> (kk+1)*R:-1:kk*R+1 ans = Columns...

4 Monate ago | 1

Answered
Trying to find row number in a large matrix
Your one-liner is missing a closing parentheses and Matlab proposes an improvement rigth-clicking "find" opens a context menu...

4 Monate ago | 0

| accepted

Answered
Property assignment is not allowed when the object is empty. Use subscripted assignment to create an array element.
I fail to reproduce the error you report. However, that should not surprise since your description of how you execute the classe...

4 Monate ago | 0

| accepted

Load more