当前位置:网站首页>Matlab does not overwrite importing Excel
Matlab does not overwrite importing Excel
2022-07-28 15:37:00 【WHJ226】
matlab The parameters of independent variable and dependent variable are defined in , Every time the independent variable and dependent variable are changed , If you do not change the import excel The location of , The results of the next run will overwrite the results of the previous run , To solve the problem of not overwriting the import excel The problem of , This method is only used as a simple reference :
clc;clear;
x=4;% The independent variables
y1=2*x;% The dependent variable 1
y2=3*x;% The dependent variable 2
filename = 'D:\lx.xlsx';% File name ( The file will be saved to the current path , The path can be changed )
xlswrite(filename,{'x','y1','y2'},1,'A1');% In the first line, fill in the names of the respective variables and dependent variables
A = {x,y1,y2};% Import required excel Independent and dependent variables in
xlswrite(filename,A,1,'A2');%'A2' Indicates that the imported data is written from the second row
% Bear in mind !!! Second operation matlab when , That is, the position of data writing needs to be changed when the value of the independent variable changes , For example, the last run write 'A2', Next write 'A3'.
% for example :
% xlswrite(filename,A,1,'A3');%'A3' Indicates that the imported data is written from the third row 边栏推荐
- 800V高压系统
- 4. Main program and cumulative interrupt processing routine implementation code
- 关闭独立窗口对其他窗口同时关闭的问题
- 最小堆提升每次排序的效率
- The subst command mirrors a folder to a local disk
- Here comes the full open source free customer service system
- 10、相关数据累积任务实现
- 【删除指定数字——leetcode]
- Opencv - draw mask images of multiple instances
- 【通道注意力机制】SENet
猜你喜欢

Baidu proposes a dynamic self distillation method to realize dense paragraph retrieval by combining interactive model and double tower model

DataTables warning: table id=campaigntable - cannot reinitialize datatable. solve

Heap operation

Tencent interview -- please design a thread pool to implement sequential execution

机器学习的3大“疑难杂症”,因果学习是突破口 | 重庆大学刘礼

基于RSocket协议实现客户端与服务端通信

Crmeb Standard Version window+phpstudy8 installation tutorial (I)

MIT指出公开预训练模型不能乱用

有奖活动分享:使用WordPress搭建一个专属自己的博客后最高可领取iPhone13
![[delete specified number leetcode]](/img/16/b40492d8414a363a3a24f00b4afd47.png)
[delete specified number leetcode]
随机推荐
I heard that many merchants of crmeb have added the function of planting grass?
Stateflow逻辑系统建模
Ffmpeg notes
8、实时数据备份和实时时钟功能实现
ECCV 2022 | ssp: a new idea of small sample tasks with self-supporting matching
19、通道分配任务定义
Solve the problem of pycharm using PowerShell
Endnote 与word关联
手把手带你编写一个规范的字符设备驱动
Data synchronization of new version
分享一下一二线大厂HR面经分享
9、相关数据累积任务定义
Encapsulate the unified return object messageresult
Pycharm - output exception of program run and default comment of added function
最小堆提升每次排序的效率
Tencent interview -- please design a thread pool to implement sequential execution
Baidu proposes a dynamic self distillation method to realize dense paragraph retrieval by combining interactive model and double tower model
19. Channel assignment task definition
Canoe tutorial
Heap operation