Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Xls row and saving problems

2 vues (au cours des 30 derniers jours)
venkat ta
venkat ta le 10 Juil 2020
Clôturé : MATLAB Answer Bot le 20 Août 2021
I have data in the matrix and I want to save as below style to import in the analyser
I tried the code but it did not work
can you guide me for the first 4 rows to fill the same details and after datas
clc
clear
close all
load('displacement.mat')
freq(:,1)=exported_curves(1,:)';
Displacement(:,1)=exported_curves(2,:)';
% set log scale
f_interp=logspace(log10(20),log10(19999),200);
Displacement_interp = interp1(freq,Displacement,f_interp);
figure(1)
semilogx(freq,Displacement,'r','LineWidth',1.8);
hold on
semilogx(f_interp,Displacement_interp,'b--','LineWidth',1.8);
xlabel('Frequency [Hz]','FontSize',20)
ylabel('Xmax [mm]','FontSize',20)
set(gca,'FontSize',20);
set(gca,'xscale','log')
grid on
grid minor
g = title(Tyre Xmax Levels');set(g,'FontSize',20);g.Color = 'blue';
xlim([10 1000]); ylim([0 6]);
h = legend('LSD','LSD Inter','Max','location','northeast');
set(h,'FontSize',10);
x0=10;
y0=10;
width=1200;
height=300;
set(gcf,'position',[x0,y0,width,height])
output_target_Displacement=[f_interp' Displacement_interp'];
% dlmwrite(['Disp_target.csv'],output_target_Displacement,';');
filenamewrite1=['RMS Level -> Offset'];
sheet = 1;
xlRange = 'A5';
xlswrite(filenamewrite1,output_target_Displacement,sheet,xlRange)

Réponses (0)

Cette question est clôturée.

Tags

Produits


Version

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by