답변 있음
Write a script file that will compute the sine of an angle using the Taylor series formula:
hello please don't use sum or any other native matlab function names for variables names in your code; this can shadow the nat...

22일 전 | 0

| 수락됨

답변 있음
How to create a matrix with nested for loop for fraction entries?
hello here are a few mods to get a correct 3 x 3 output clear; clc; ii=0.5:.1:.7; jj=.4:.1:.6; mat=zeros(length(ii),le...

23일 전 | 0

| 수락됨

답변 있음
How to retrieve last entry of different array outputs for each loop?
hello if the solution (v) has variable length , you can do this v=sol.y(1,:); % v is a vector of unknown length fp...

23일 전 | 0

| 수락됨

답변 있음
In matlab simulink how to increase accuracy of display?
hello see the doc Show value of input - Simulink - MathWorks France use the appropriate display option (long or long_e) : ...

23일 전 | 0

| 수락됨

답변 있음
reading out a particular column with a header name from a large text file with multiple rows and columns. of different dimensions. Attached the .txt file.
hello I am not sure if you ask for the data in the N482 rows (and not column) as we can see in the first 49,407 lines of your...

23일 전 | 0

| 수락됨

답변 있음
Need a MATLAB code to plot the PE loop, calculate the stored and recovered energy. I am ready to pay for the code.
hello you lucky guy... had some time to throw a few matlab lines ... here you are my friend and without any financial penalt...

23일 전 | 0

| 수락됨

답변 있음
show regular intervals in the colourbar
hello Francesco here a small update of your code and the result see the line where I defined the number of ticks for colorb...

24일 전 | 0

| 수락됨

답변 있음
Import txt file into MATLAB for Comparison of 2 files to measure bit errors
hello try this : a = readfile('1.txt'); % or a = freadtxt('1.txt');

24일 전 | 0

답변 있음
variables to import in readtable for a csv file
hello as mentionned above , readtable is not appropriate for extracting row oriented files you can do this (based on your exa...

24일 전 | 0

| 수락됨

답변 있음
Discrete Low Pass Filter
hello the a value will give you a cut off frequency of fc if you choose a = 2*pi*fc

28일 전 | 0

답변 있음
How do i extract specific row data whose value is changing from .dat file ?
hello I wrote this little code for you ! check it % main code [ string_out, data_out ] = retrieve_data('Redesign2-0_O...

29일 전 | 0

| 수락됨

답변 있음
Finding the mean at each interval
hello my 2 cents suggestion - see if for the empty intervals you prefer naN output (red dots) or you prefer interpolated data ...

29일 전 | 0

답변 있음
use of readtable to read unstructured data
why not this ? simply using the import tool you can ignaore the second variable if it's not meaningfull result : code : ...

30일 전 | 0

| 수락됨

답변 있음
How to graph a function that consists of summations?
hello I tried this code clc clearvars % g=[1;2;3]; g=[1]; % same curves - whatever g value is % T=(0.1:0.01:1); T=l...

30일 전 | 1

| 수락됨

답변 있음
I just need to get the numbers from this vector. The result must be a double. I need fast and clean code, as this operation is performed over and over again in my code.
hello try this alternative : vector = [{'G07'} {'G23'} {'G04'} {'G08'} {'G20'} {'G13'} {'G30'}]; % Calling the regexp() f...

30일 전 | 0

답변 있음
How to input noise during the audio transmission process ?
hello if you simply want to add some white noise you can do this [y,Fs]=audioread('water.wav'); y = y + 0.1*randn(size(y))...

30일 전 | 0

| 수락됨

답변 있음
Problems with my loop
hi I tried to guess what the intention was, and came to this suggestion, although I have no idea what the output should be ma...

30일 전 | 0

답변 있음
Merging multiple file excel
hello Rachele you can do this - I used natsortfile (from FEX : https://fr.mathworks.com/matlabcentral/fileexchange/47434-natu...

30일 전 | 0

| 수락됨

답변 있음
Merging multiple file excel

30일 전 | 0

답변 있음
Fitting gaussian curve on my data with same under curve area and start and end points
hello check this code (below) plot code clc clearvars load Data_X.mat load Data_Y.mat x = Data_X; y = Data_Y; ...

30일 전 | 0

| 수락됨

답변 있음
How to load data with segments
hello I copied / pasted your data in a txt file try this : %% read one file clc clearvars filename = 'mydata.txt'; da...

약 1달 전 | 0

| 수락됨

답변 있음
Interpolate/Resample to a specific decimal point
hello try this : x=[1 3 4 7 6 3 6]; out = my_resample(x) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function out = my_resam...

약 1달 전 | 1

답변 있음
Making a text file including variables
hello look at the attached files . I probably found that on FEX, but it seems to have disappeared

약 1달 전 | 0

| 수락됨

답변 있음
How to move line plot to be above a stacked bar chart?
hello this would be my 2 cents suggestion using ylim : code : indexValues = [repelem(6, 33), repelem(5,6), repelem(4,6),...

약 1달 전 | 0

| 수락됨

답변 있음
Index in position 2 exceeds array bounds (must not exceed 2)
hello just fixed minor issues on following two lines %%%SHOW ITERATION INFORMATION disp(['Iteration : ' num2str(it...

약 1달 전 | 0

답변 있음
How to change the color of my plots
hello I modified a bit your code to get this result : .code : close all clear all avalues=0.3:0.005:1; N=200; d=0.03...

약 1달 전 | 0

답변 있음
How to generate a sequence of acoustic levels (dB) of a particular frequency (let say 50 Hz) of an acoustic signal?
hello seems your looking for a tool doing spectral analysis check this : clc clearvars %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...

약 1달 전 | 0

| 수락됨

답변 있음
I have created a function that relies on a guess, and now I need to create a for loop for that function that plugs in the answer it gives back in to the "OLD" original guess.
hello yes , your "recursion" is not really working this works Once you're satisfied with the code , you can reùove / comme...

약 1달 전 | 0

| 수락됨

답변 있음
How to choose stopband ripple and passband ripple of filter for High pass filter
hello why not start with simpler filters like butterworth or bessel filters ? . If you don't have any specific requirement ...

약 1달 전 | 1

| 수락됨

답변 있음
How can I handle the signal of the data read from the serial port
hello if you are able to store the data in a file (txt or mat or ..) you can adapt this code I developped for audio processing...

약 1달 전 | 1

더로드