Answered
How can I plot this Fourier series in a for loop?
t is not defined.

ongeveer een jaar ago | 0

Answered
wildcard in filename for readtable does not work
If I understood your question correctly, I would do it this way: Files = ls('.\SP17\2022*.xlsx') nFiles = size(Files); nFiles ...

ongeveer een jaar ago | 0

| accepted

Answered
A compact way to replace zeros with Inf in a matrix
Only for fun. My maybe a bit old-fashoned approach would be: B=1./A; B(B==Inf)=0; C=1./B

meer dan een jaar ago | 2

Answered
Read full answer from serial device
You are right, readline reads exactly to the first terminator, so it is handling the terminator correctly. Try "read" instead, e...

meer dan een jaar ago | 0

Answered
Where can I download the data in excel which is used in MATLAB for example patients.mat etc
Try this: load patients.mat patients = table(LastName,Gender,Age,Height,Weight,Smoker,Systolic,Diastolic); writetable(patient...

meer dan een jaar ago | 1

| accepted

Answered
Reading a binary file in parts
Here some code: % ExampleFread.m fid = fopen('ABCDE.txt'); in = fread(fid,4); % read 4 byte char(in) in = fread(fid,4...

meer dan een jaar ago | 0

Answered
Reading a binary file in parts
You should use fread.

meer dan een jaar ago | 0

| accepted

Answered
Writing functions f(x,y)
The solutions above are very good and should be used to avoid loops. But anyway I post my little script here, because I think it...

meer dan een jaar ago | 1

Answered
how to convert vector in string as example
My solution: c=1; a=[4 7] resultTxT =['"cnt ' num2str(c) ' - [' num2str(a) ']"']

meer dan een jaar ago | 0

Answered
Selecting a rain event from data series
I think this should work now: clear; load rain2.txt; rain = rain2; % Only to reuse the code above NoOfDry = 1; rHmm = rain(...

meer dan een jaar ago | 1

| accepted

Answered
Selecting a rain event from data series
I have to contradict, strfind is perfect if you want to avoid loops. Have a look at my rapid programmed script: load rain.txt ...

meer dan een jaar ago | 0

Answered
Selecting a rain event from data series
You can use strfind: y = strfind(data, [0 0 0 0 0 0])

meer dan een jaar ago | 0

Answered
How to permanently fix the position of the plot window ?
I think you need this: set (groot, 'DefaultFigurePosition', p); You have to put this line in the startup.m. To get p: Open a ...

meer dan een jaar ago | 2

| accepted

Answered
i believe there may be a problem with entering my switch case
Shouldn't be moisture = readVoltage(a,"A0") not also in the while-loop?

meer dan een jaar ago | 0

Answered
how to find the most used letters in a text?
Try "help fread" and have a look on the examples. But anyway, this might help: fid = fopen("PutYourTextInHere.txt", 'r'); c ...

bijna 2 jaar ago | 0

Answered
How to shift a curve to superimpose it with another one on the same figure ?
plot(t1,y1,t2-2,y2) for example

bijna 2 jaar ago | 0

Answered
how can i convert my image and excel file to get a working 2D VMD output?
I don't want to care about VMD_2D.m, that's your part. But xlsread works fine, see Test.m: data = xlsread(['DATAMATRIX.xlsx']...

bijna 2 jaar ago | 0

Question


Is it possible to get an email notification when a new question is raised?
I only get email notifications when getting an answere. I didn't find a check box in my profile to allow this. Is it possible to...

meer dan 2 jaar ago | 2 answers | 0

2

answers

Question


Readtable don't work correctly if 'Range' > 'A250'
The command readtable('DruckTest.xlsx','Range','A251') works as expected: >> Ta = readtable('DruckTest.xlsx','Range','A250');si...

meer dan 2 jaar ago | 1 answer | 3

1

answer

Question


The command "serial" creates an error when used in a function and works fine as a script file.
I'm connecting a GMC-300E+ Geiger-Counter to the pc via Matlab and the instrumentation-control toolbox. The script file (attache...

bijna 3 jaar ago | 0 answers | 0

0

answers